Skip to contentSkip to conversation

busybox: fix usrmerge install

PATCH Superseded Ioan-Adrian Ratiu 1 participant 1 message Jul 20, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: fix usrmerge install

If DISTRO_FEATURES contains usrmerge then busybox binaries are installed under /usr/bin not /bin so use ${base_bindir} to support both paths and avoid QA errors.

---
 recipes-core/busybox/busybox_selinux.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-core/busybox/busybox_selinux.inc +3 -3
index 3f20815..c38672b 100644
@@ -46,10 +46,10 @@ python create_sh_wrapper_reset_alternative_vars () {
         return
 
     if os.path.exists('%s/etc/busybox.links' % (dvar)):
-        create_sh_alternative_vars("/etc/busybox.links", "/bin/busybox", 0o0755)
+        create_sh_alternative_vars("/etc/busybox.links", "${base_bindir}/busybox", 0o0755)
     else:
-        create_sh_alternative_vars("/etc/busybox.links.nosuid", "/bin/busybox.nosuid", 0o0755)
-        create_sh_alternative_vars("/etc/busybox.links.suid", "/bin/busybox.suid", 0o4755)
+        create_sh_alternative_vars("/etc/busybox.links.nosuid", "${base_bindir}/busybox.nosuid", 0o0755)
+        create_sh_alternative_vars("/etc/busybox.links.suid", "${base_bindir}/busybox.suid", 0o4755)
 }
 
 # Add to PACKAGEBUILDPKGD so it could override the alternatives, which are set in
Signature · 1 line
2.18.0