From 60124f9c8b82f0dbcbe471749bb319d8d031bf51 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 18 Oct 2017 11:40:03 +0300 Subject: [PATCH] Fix %check section switch 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 --- Tizen:Base/_config | 2 +- Tizen:Common/_config | 2 +- Tizen:IVI/_config | 2 +- Tizen:Mobile/_config | 2 +- Tizen:TV/_config | 2 +- Tizen:Unified/_config | 2 +- Tizen:Wearable/_config | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Tizen:Base/_config b/Tizen:Base/_config index 2599b06..a21c7dd 100644 --- a/Tizen:Base/_config +++ b/Tizen:Base/_config @@ -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 diff --git a/Tizen:Common/_config b/Tizen:Common/_config index b82a1f4..bfee203 100644 --- a/Tizen:Common/_config +++ b/Tizen:Common/_config @@ -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 diff --git a/Tizen:IVI/_config b/Tizen:IVI/_config index b127395..8ce53e3 100644 --- a/Tizen:IVI/_config +++ b/Tizen:IVI/_config @@ -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 diff --git a/Tizen:Mobile/_config b/Tizen:Mobile/_config index c71a778..dce67d3 100755 --- a/Tizen:Mobile/_config +++ b/Tizen:Mobile/_config @@ -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 diff --git a/Tizen:TV/_config b/Tizen:TV/_config index 226c0b5..5215b7f 100755 --- a/Tizen:TV/_config +++ b/Tizen:TV/_config @@ -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 diff --git a/Tizen:Unified/_config b/Tizen:Unified/_config index 3682df4..f306c9e 100644 --- a/Tizen:Unified/_config +++ b/Tizen:Unified/_config @@ -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 diff --git a/Tizen:Wearable/_config b/Tizen:Wearable/_config index e39dfa4..b32a0d6 100755 --- a/Tizen:Wearable/_config +++ b/Tizen:Wearable/_config @@ -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 -- 2.7.4