summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/busybox/busybox.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index f4efeb8323..99d4e997b1 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -171,7 +171,7 @@ do_install () {
171 install -m 0755 "0_lib/$NAME" "${D}$FILE.${BPN}" 171 install -m 0755 "0_lib/$NAME" "${D}$FILE.${BPN}"
172 done 172 done
173 # add suid bit where needed 173 # add suid bit where needed
174 for i in `grep -E "APPLET.*_BB_SUID_((MAYBE|REQUIRE))" include/applets.h | grep -v _BB_SUID_DROP | cut -f 3 -d '(' | cut -f 1 -d ','`; do 174 for i in `grep -E "APPLET.*BB_SUID_((MAYBE|REQUIRE))" include/applets.h | grep -v _BB_SUID_DROP | cut -f 3 -d '(' | cut -f 1 -d ','`; do
175 find ${D} -name $i.${BPN} -exec chmod a+s {} \; 175 find ${D} -name $i.${BPN} -exec chmod a+s {} \;
176 done 176 done
177 install -m 0755 0_lib/libbusybox.so.${PV} ${D}${libdir}/libbusybox.so.${PV} 177 install -m 0755 0_lib/libbusybox.so.${PV} ${D}${libdir}/libbusybox.so.${PV}
@@ -242,8 +242,6 @@ ALTERNATIVE_TARGET[syslog-init] = "${sysconfdir}/init.d/syslog.${BPN}"
242ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf" 242ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf"
243ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${BPN}" 243ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${BPN}"
244 244
245ALTERNATIVE_TARGET = "/bin/busybox"
246
247python do_package_prepend () { 245python do_package_prepend () {
248 # We need to load the full set of busybox provides from the /etc/busybox.links 246 # We need to load the full set of busybox provides from the /etc/busybox.links
249 # Use this to see the update-alternatives with the right information 247 # Use this to see the update-alternatives with the right information
@@ -252,6 +250,9 @@ python do_package_prepend () {
252 pn = d.getVar('PN', True) 250 pn = d.getVar('PN', True)
253 f = open('%s/etc/busybox.links' % (dvar), 'r') 251 f = open('%s/etc/busybox.links' % (dvar), 'r')
254 252
253 if os.path.exists('%s/bin/busybox' % (dvar)):
254 d.setVar('ALTERNATIVE_TARGET', "/bin/busybox")
255
255 for alt_link_name in f: 256 for alt_link_name in f:
256 alt_link_name = alt_link_name.strip() 257 alt_link_name = alt_link_name.strip()
257 alt_name = os.path.basename(alt_link_name) 258 alt_name = os.path.basename(alt_link_name)