Skip to contentSkip to conversation

mcstrans: define SBINDIR to ${D}/${base_sbindir}

PATCH New [email protected] 1 participant 1 message Aug 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mcstrans: define SBINDIR to ${D}/${base_sbindir}

From: Mingli Yu <[email protected]>

Add SBINDIR=${D}/${base_sbindir} to EXTRA_OEMAKE
to fix below error when usrmerge enabled in
DISTRO_FEATURES.

ERROR: QA Issue: mcstrans-dbg package is not obeying usrmerge distro feature. /sbin should be relocated to /usr. [usrmerge]

---
 recipes-security/selinux/mcstrans.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/selinux/mcstrans.inc +1 -1
index 590e6d2..996e8d0 100644
@@ -14,7 +14,7 @@ inherit systemd update-rc.d
 
 DEPENDS += "libsepol libselinux libcap"
 
-EXTRA_OEMAKE += "SYSTEMDDIR=${D}${systemd_unitdir}"
+EXTRA_OEMAKE += "SYSTEMDDIR=${D}${systemd_unitdir} SBINDIR=${D}/${base_sbindir}"
 do_install_append() {
     install -d ${D}${sbindir}
     install -m 755 utils/untranscon ${D}${sbindir}/
Signature · 1 line
2.7.4