summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>2018-07-20 15:19:52 +0300
committerJoe MacDonald <joe_macdonald@mentor.com>2018-08-13 11:20:32 -0400
commit64122293d28bf9bfa3fa953354f768d350d02d24 (patch)
tree087954a062fba655238cef13e740fd5baa16690a
parent78eca8242ea5397c4dc0654d62244453b4260151 (diff)
downloadmeta-selinux-64122293d28bf9bfa3fa953354f768d350d02d24.tar.gz
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. Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-core/busybox/busybox_selinux.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes-core/busybox/busybox_selinux.inc b/recipes-core/busybox/busybox_selinux.inc
index 3f20815..df7c117 100644
--- a/recipes-core/busybox/busybox_selinux.inc
+++ b/recipes-core/busybox/busybox_selinux.inc
@@ -8,6 +8,7 @@ python create_sh_wrapper_reset_alternative_vars () {
8 8
9 dvar = d.getVar('D', True) 9 dvar = d.getVar('D', True)
10 pn = d.getVar('PN', True) 10 pn = d.getVar('PN', True)
11 base_bindir = d.getVar('base_bindir', True)
11 12
12 def create_sh_alternative_vars(links, target, mode): 13 def create_sh_alternative_vars(links, target, mode):
13 import shutil 14 import shutil
@@ -46,10 +47,10 @@ python create_sh_wrapper_reset_alternative_vars () {
46 return 47 return
47 48
48 if os.path.exists('%s/etc/busybox.links' % (dvar)): 49 if os.path.exists('%s/etc/busybox.links' % (dvar)):
49 create_sh_alternative_vars("/etc/busybox.links", "/bin/busybox", 0o0755) 50 create_sh_alternative_vars("/etc/busybox.links", "%s/busybox" % base_bindir, 0o0755)
50 else: 51 else:
51 create_sh_alternative_vars("/etc/busybox.links.nosuid", "/bin/busybox.nosuid", 0o0755) 52 create_sh_alternative_vars("/etc/busybox.links.nosuid", "%s/busybox.nosuid" % base_bindir, 0o0755)
52 create_sh_alternative_vars("/etc/busybox.links.suid", "/bin/busybox.suid", 0o4755) 53 create_sh_alternative_vars("/etc/busybox.links.suid", "%s/busybox.suid" % base_bindir, 0o4755)
53} 54}
54 55
55# Add to PACKAGEBUILDPKGD so it could override the alternatives, which are set in 56# Add to PACKAGEBUILDPKGD so it could override the alternatives, which are set in