Bug 2557 - busybox sets incorrect link on /etc/syslog-startup.conf
Summary: busybox sets incorrect link on /etc/syslog-startup.conf
Status: VERIFIED DUPLICATE of bug 2535
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: High major
Target Milestone: 1.3 M2
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-06-07 22:04 UTC by Gary Thomas
Modified: 2012-07-24 17:27 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Thomas 2012-06-07 22:04:41 UTC
Since this change (poky master):
commit 92482cb4962fd79a07078f0fea372fdc200ed76c
Author: Mark Hatle <mark.hatle@windriver.com>
Date:   Tue May 15 18:34:17 2012 -0500

    busybox: use new update-alternatives

    (From OE-Core rev: fbbc96aed5086f853a1179f1478ccd252af24094)

    Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

The file /etc/syslog-startup.conf is incorrect:

# ls -l /etc/syslog*
lrwxrwxrwx 1 root root  14 Jun  6 21:03 /etc/syslog-startup.conf -> ../bin/busybox
-rw-r--r-- 1 root root 506 Jun  6 16:28 /etc/syslog-startup.conf.busybox

This should really be:

# ls -l /etc/syslog*
lrwxrwxrwx 1 root root  14 Jun  6 21:03 /etc/syslog-startup.conf -> syslog-startup.conf.busybox
-rw-r--r-- 1 root root 506 Jun  6 16:28 /etc/syslog-startup.conf.busybox
Comment 1 Mark Hatle 2012-06-14 16:43:08 UTC
Possible fix.. in testing:


diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/b
index 5b83d32..18970ca 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -212,6 +212,7 @@ ALTERNATIVE_LINK_NAME[syslog-init] = "${sysconfdir}/init.d/s
 ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf
 
 ALTERNATIVE_TARGET = "/bin/busybox"
+ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${
 
 python do_package_prepend () {
        # We need to load the full set of busybox provides from the /etc/busybox
diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/bus
index 0717075..5b3f356 100644
--- a/meta/recipes-core/busybox/busybox_1.19.4.bb
+++ b/meta/recipes-core/busybox/busybox_1.19.4.bb
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball 
            file://B921600.patch \
Comment 2 Mark Hatle 2012-06-14 19:43:04 UTC
Patch has been sent to oe-core mailing list.
Comment 3 Jiajun Xu 2012-06-17 12:43:15 UTC
Duplicate of bu 2535

*** This bug has been marked as a duplicate of bug 2535 ***
Comment 4 Laurentiu Serban 2012-07-24 17:27:26 UTC
Verified in 315d52934693b14f08b62f3f5f361d834484e180