Fix %check section switch 13/156413/1
authorSlava Barinov <v.barinov@samsung.com>
Wed, 18 Oct 2017 08:40:03 +0000 (11:40 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 18 Oct 2017 08:40:03 +0000 (11:40 +0300)
Using '%define %check exit 0' is an error since it redefines the rpm section
name as a macro.

This leads to including the contents of %check section into previously defined
section (e.g. %install) and therefore not only it breaks the build script in
the middle of execution by injecting 'exit 0', but also prevents
%__spec_install_post from running. This forbids execution of rpm post-scripts
which generate debug info, locale information, cleans up install dir and so on.

Setting up %__spec_check_pre variable will only disable the %check section.

Change-Id: Ifb6a847e298416c702409759457cdc03d0d563e2
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Tizen:Base/_config
Tizen:Common/_config
Tizen:IVI/_config
Tizen:Mobile/_config
Tizen:TV/_config
Tizen:Unified/_config
Tizen:Wearable/_config

index 2599b06..a21c7dd 100644 (file)
@@ -39,7 +39,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2
index b82a1f4..bfee203 100644 (file)
@@ -53,7 +53,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2
index b127395..8ce53e3 100644 (file)
@@ -39,7 +39,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2
index c71a778..dce67d3 100755 (executable)
@@ -41,7 +41,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2
index 226c0b5..5215b7f 100755 (executable)
@@ -40,7 +40,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2
index 3682df4..f306c9e 100644 (file)
@@ -34,7 +34,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2
index e39dfa4..b32a0d6 100755 (executable)
@@ -41,7 +41,7 @@ Macros:
 %_vendor tizen
 %_with_tizen 1
 
-%check exit 0
+%__spec_check_pre exit 0
 %run_check_section 0
 %opensuse_bs 1
 %_default_patch_fuzz   2