From b7fe972ee8ac1dcdeec469c12d8bb559204a9b10 Mon Sep 17 00:00:00 2001
From: Ronan Le Martret <ronan.lemartret@iot.bzh>
Date: Thu, 31 Oct 2019 14:40:59 +0000
Subject: [PATCH] Restrict smack dependency on coreutil to runtime

- avoid build cycle dependency in yocto zeus

Bug-AGL: SPEC-2932

Change-Id: Icfcc59d873cb75213a50547f5b7d70888dbe41bc
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
---
 meta-security/recipes-core/coreutils/coreutils_%.bbappend | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta-security/recipes-core/coreutils/coreutils_%.bbappend b/meta-security/recipes-core/coreutils/coreutils_%.bbappend
index ceaf6a29c..1b9b722ec 100644
--- a/meta-security/recipes-core/coreutils/coreutils_%.bbappend
+++ b/meta-security/recipes-core/coreutils/coreutils_%.bbappend
@@ -1,7 +1,7 @@
 # Smack patches are included in coreutils v8.22, we just need to enable them.
 # The default is not deterministic (enabled if libsmack found), so disable
 # explicitly otherwise.
-EXTRA_OECONF_SMACK = "--disable-libsmack"
-EXTRA_OECONF_SMACK_with-lsm-smack = "--enable-libsmack"
-EXTRA_OECONF_append = " ${EXTRA_OECONF_SMACK}"
-DEPENDS_append_with-lsm-smack = " smack"
+EXTRA_OECONF_SMACK_class-target = "--disable-libsmack"
+EXTRA_OECONF_SMACK_with-lsm-smack_class-target = "--enable-libsmack"
+EXTRA_OECONF_append_class-target = " ${EXTRA_OECONF_SMACK}"
+DEPENDS_append_with-lsm-smack_class-target = " smack"
-- 
2.16.6