busybox: move watch to /usr/bin for compatibility with procps
PATCH 1/1 busybox: move watch to /usr/bin for compatibility with procps
Commit 68dc2a3fa30c03a196d650de34d0c657a7b85454 broke opkg upgrade:
| update-alternatives: Error: cannot register alternative watch to | /usr/bin/watch since it is already registered to /bin/watch
---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.
.../busybox/busybox-1.19.4/watch.in.usr-bin.patch | 29 ++++++++++++++++++++ meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +- 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch
meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch new file +29 -0
@@ -0,0 +1,29 @@ +Upstream-Status: Inappropriate [configuration] + +From f2372ab626a395d067704f4c318180fb6039de15 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter <[email protected]> +Date: Sat, 24 Mar 2012 17:36:48 +0100 +Subject: [PATCH] watch: move from /bin to /usr/bin for compatibility with + procps + +Signed-off-by: Andreas Oberritter <[email protected]> +--- + include/applets.src.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/applets.src.h b/include/applets.src.h +index 87d9cbb..c148a8c 100644 +--- a/include/applets.src.h ++++ b/include/applets.src.h +@@ -404,7 +404,7 @@ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) + /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */ + IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) +-IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) ++IF_WATCH(APPLET(watch, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) + IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) +-- +1.7.5.4 +
meta/recipes-core/busybox/busybox_1.19.4.bb +2 -1
@@ -1,5 +1,5 @@ require busybox.inc -PR = "r0" +PR = "r1" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \
@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ + file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ file://find-touchscreen.sh \ file://busybox-cron \
Signature · 1 line
1.7.5.4
Quoted 10 lines · Andreas Oberritter
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.
Maybe it does for 2nd and later upgrades, but for some reason I now get the same error from busybox upgrade too, probably because old u-a for watch is removed only in busybox's prerm and not during upgrade.
SHR root@Nokia-N900 / $ ll /usr/bin/watch*
lrwxrwxrwx 1 root root 17 Mar 26 09:13 /usr/bin/watch ->
../../bin/busybox
-r-xr-xr-x 1 root root 9508 Mar 26 08:48 /usr/bin/watch.procps SHR root@Nokia-N900 / $ ls -l /bin/watch
lrwxrwxrwx 1 root root 7 Mar 23 16:06 /bin/watch -> busybox
SHR root@Nokia-N900 / $ cat /etc/busybox.links | grep watch /usr/bin/watch
SHR root@Nokia-N900 / $ cat /var/lib/opkg/alternatives/watch /bin/watch
busybox 50
And also busybox is upgraded after procps so even with old alternative removed it would take 2 opkg upgrades to get it sorted.. but that's quite common issue :/. e.g. u-a for runlevel causes many postinst issues because update-rc.d assumes that runlevel is available during upgrade, but if sysvinit (as runlevel provider) is configured after e.g. dbus you get:
Configuring dbus-1.
Cannot create link over existing -/etc/resolv.conf-. /usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring busybox-syslog.
update-alternatives: Linking //etc/init.d/syslog to syslog.busybox
update-alternatives: Linking //etc/syslog-startup.conf to syslog-startup.conf.busybox /usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring busybox-udhcpc./usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring sysvinit.
update-alternatives: Linking //bin/mountpoint to mountpoint.sysvinit
update-alternatives: Linking //sbin/halt to halt.sysvinit
update-alternatives: Linking //sbin/reboot to reboot.sysvinit
update-alternatives: Linking //sbin/runlevel to runlevel.sysvinit
update-alternatives: Linking //sbin/shutdown to shutdown.sysvinit
update-alternatives: Linking //sbin/poweroff to poweroff.sysvinit
update-alternatives: Linking //usr/bin/last to last.sysvinit
update-alternatives: Linking //usr/bin/mesg to mesg.sysvinit
update-alternatives: Linking //usr/bin/wall to wall.sysvinit
update-alternatives: Linking //sbin/init to /sbin/init.sysvinit
And dbus-1. busybox-syslog. busybox-udhcpc. postinsts are fine on 2nd run.
So this patch looks good, but there are still issues with u-a calls in postinst.
Cheers,
Quoted 68 lines
.../busybox/busybox-1.19.4/watch.in.usr-bin.patch | 29 ++++++++++++++++++++ meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +- 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patchmeta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch new file +29
-0@@ -0,0 +1,29 @@ +Upstream-Status: Inappropriate [configuration] + +From f2372ab626a395d067704f4c318180fb6039de15 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter <[email protected]> +Date: Sat, 24 Mar 2012 17:36:48 +0100 +Subject: [PATCH] watch: move from /bin to /usr/bin for compatibility with + procps + +Signed-off-by: Andreas Oberritter <[email protected]> +--- + include/applets.src.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/applets.src.h b/include/applets.src.h +index 87d9cbb..c148a8c 100644 +--- a/include/applets.src.h ++++ b/include/applets.src.h +@@ -404,7 +404,7 @@ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) + /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */ + IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) +-IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) ++IF_WATCH(APPLET(watch, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) + IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) +-- +1.7.5.4 +meta/recipes-core/busybox/busybox_1.19.4.bb +2
-1@@ -1,5 +1,5 @@ require busybox.inc -PR = "r0" +PR = "r1" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ + file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ file://find-touchscreen.sh \ file://busybox-cron \Signature · 7 lines
1.7.5.4 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 63 lines · Martin Jansa
Quoted 10 lines · Andreas Oberritter
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.Maybe it does for 2nd and later upgrades, but for some reason I now get the same error from busybox upgrade too, probably because old u-a for watch is removed only in busybox's prerm and not during upgrade.
SHR root@Nokia-N900 / $ ll
/usr/bin/watch*
lrwxrwxrwx 1 root root 17 Mar 26 09:13/usr/bin/watch->
../../bin/busybox
-r-xr-xr-x 1 root root 9508 Mar 26 08:48/usr/bin/watch.procpsSHR root@Nokia-N900 / $ ls -l/bin/watch
lrwxrwxrwx 1 root root 7 Mar 23 16:06/bin/watch-> busyboxSHR root@Nokia-N900 / $ cat
/etc/busybox.links| grep watch/usr/bin/watch
SHR root@Nokia-N900 / $ cat/var/lib/opkg/alternatives/watch/bin/watch
busybox 50And also busybox is upgraded after procps so even with old alternative removed it would take 2 opkg upgrades to get it sorted.. but that's quite common issue :/. e.g. u-a for runlevel causes many postinst issues because update-rc.d assumes that runlevel is available during upgrade, but if sysvinit (as runlevel provider) is configured after e.g. dbus you get:
Configuring dbus-1.
Cannot create link over existing -/etc/resolv.conf-./usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring busybox-syslog.
update-alternatives: Linking //etc/init.d/syslog to syslog.busybox
update-alternatives: Linking //etc/syslog-startup.conf to syslog-startup.conf.busybox/usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring busybox-udhcpc./usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring sysvinit.
update-alternatives: Linking //bin/mountpoint to mountpoint.sysvinit
update-alternatives: Linking //sbin/halt to halt.sysvinit
update-alternatives: Linking //sbin/reboot to reboot.sysvinit
update-alternatives: Linking //sbin/runlevel to runlevel.sysvinit
update-alternatives: Linking //sbin/shutdown to shutdown.sysvinit
update-alternatives: Linking //sbin/poweroff to poweroff.sysvinit
update-alternatives: Linking //usr/bin/last to last.sysvinit
update-alternatives: Linking //usr/bin/mesg to mesg.sysvinit
update-alternatives: Linking //usr/bin/wall to wall.sysvinit
update-alternatives: Linking //sbin/init to/sbin/init.sysvinit
Quoted 3 lines
And dbus-1. busybox-syslog. busybox-udhcpc. postinsts are fine on 2nd run.
So this patch looks good, but there are still issues with u-a calls in postinst.
I'll merge the patch but we should probably open a bug about these u-a issues so we can properly fix it at some point.
Cheers,
Richard
Quoted 64 lines · Richard Purdie
Quoted 63 lines · Martin Jansa
Quoted 10 lines · Andreas Oberritter
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.Maybe it does for 2nd and later upgrades, but for some reason I now get the same error from busybox upgrade too, probably because old u-a for watch is removed only in busybox's prerm and not during upgrade.
SHR root@Nokia-N900 / $ ll
/usr/bin/watch*
lrwxrwxrwx 1 root root 17 Mar 26 09:13/usr/bin/watch->
../../bin/busybox
-r-xr-xr-x 1 root root 9508 Mar 26 08:48/usr/bin/watch.procpsSHR root@Nokia-N900 / $ ls -l/bin/watch
lrwxrwxrwx 1 root root 7 Mar 23 16:06/bin/watch-> busyboxSHR root@Nokia-N900 / $ cat
/etc/busybox.links| grep watch/usr/bin/watch
SHR root@Nokia-N900 / $ cat/var/lib/opkg/alternatives/watch/bin/watch
busybox 50And also busybox is upgraded after procps so even with old alternative removed it would take 2 opkg upgrades to get it sorted.. but that's quite common issue :/. e.g. u-a for runlevel causes many postinst issues because update-rc.d assumes that runlevel is available during upgrade, but if sysvinit (as runlevel provider) is configured after e.g. dbus you get:
Configuring dbus-1.
Cannot create link over existing -/etc/resolv.conf-./usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring busybox-syslog.
update-alternatives: Linking //etc/init.d/syslog to syslog.busybox
update-alternatives: Linking //etc/syslog-startup.conf to syslog-startup.conf.busybox/usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring busybox-udhcpc./usr/sbin/update-rc.d: line 173: runlevel: not found
Unable to determine current runlevel
...
Configuring sysvinit.
update-alternatives: Linking //bin/mountpoint to mountpoint.sysvinit
update-alternatives: Linking //sbin/halt to halt.sysvinit
update-alternatives: Linking //sbin/reboot to reboot.sysvinit
update-alternatives: Linking //sbin/runlevel to runlevel.sysvinit
update-alternatives: Linking //sbin/shutdown to shutdown.sysvinit
update-alternatives: Linking //sbin/poweroff to poweroff.sysvinit
update-alternatives: Linking //usr/bin/last to last.sysvinit
update-alternatives: Linking //usr/bin/mesg to mesg.sysvinit
update-alternatives: Linking //usr/bin/wall to wall.sysvinit
update-alternatives: Linking //sbin/init to/sbin/init.sysvinit
Quoted 5 lines
Quoted 3 lines
And dbus-1. busybox-syslog. busybox-udhcpc. postinsts are fine on 2nd run.
So this patch looks good, but there are still issues with u-a calls in postinst.
I'll merge the patch but we should probably open a bug about these u-a
yes please it improves situation for people with reflashed image.. other need just rm /var/lib/opkg/alternatives/watch to fix upgrade path
Quoted 1 line
issues so we can properly fix it at some point.
Fixing this issue will be a bit problematic, because for busybox when you use -force-reinstall it can remove some required commands you need to install it after it's removed.
So e.g. you need standalone wget and sed to be able to use opkg install -force-reinstall, but -force-reinstall also doesn't resolve this watch issue completely, because after first upgrade there is new /usr/bin/watch path in /etc/busybox.links so prerm also doesn't remove stalled /bin/watch alternative :/.
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Ping
Op 24 mrt. 2012, om 20:46 heeft Andreas Oberritter het volgende geschreven:
Quoted 78 lines
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.
.../busybox/busybox-1.19.4/watch.in.usr-bin.patch| 29 ++++++++++++++++++++
meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +-2 files changed, 31 insertions(+), 1 deletions(-)create mode 100644
meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patchmeta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch new file +29
-0@@ -0,0 +1,29 @@ +Upstream-Status: Inappropriate [configuration] + +From f2372ab626a395d067704f4c318180fb6039de15 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter <[email protected]> +Date: Sat, 24 Mar 2012 17:36:48 +0100 +Subject: [PATCH] watch: move from /bin to /usr/bin for compatibility with + procps + +Signed-off-by: Andreas Oberritter <[email protected]> +--- + include/applets.src.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/applets.src.h b/include/applets.src.h +index 87d9cbb..c148a8c 100644 +--- a/include/applets.src.h ++++ b/include/applets.src.h +@@ -404,7 +404,7 @@ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) + /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */ + IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) +-IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) ++IF_WATCH(APPLET(watch, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) + IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) +-- +1.7.5.4 +meta/recipes-core/busybox/busybox_1.19.4.bb +0
-0@@ -1,5 +1,5 @@require busybox.inc
meta/recipes-core/busybox/busybox_1.19.4.bb +1
-1-PR = "r0" +PR = "r1"SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \meta/recipes-core/busybox/busybox_1.19.4.bb +1
-0@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ + file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ file://find-touchscreen.sh \ file://busybox-cron \Signature · 7 lines
1.7.5.4 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 1 line · Koen Kooi
Ping
It merged three weeks ago:
http://git.openembedded.org/openembedded-core/commit/?id=fa8b2d2bed63fa4fc2af45f094998b0f9e69d272
?
Cheers,
Richard
Quoted 87 lines
Op 24 mrt. 2012, om 20:46 heeft Andreas Oberritter het volgende geschreven:
Quoted 78 lines
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.
.../busybox/busybox-1.19.4/watch.in.usr-bin.patch| 29 ++++++++++++++++++++
meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +-2 files changed, 31 insertions(+), 1 deletions(-)create mode 100644
meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patchmeta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch new file +29
-0@@ -0,0 +1,29 @@ +Upstream-Status: Inappropriate [configuration] + +From f2372ab626a395d067704f4c318180fb6039de15 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter <[email protected]> +Date: Sat, 24 Mar 2012 17:36:48 +0100 +Subject: [PATCH] watch: move from /bin to /usr/bin for compatibility with + procps + +Signed-off-by: Andreas Oberritter <[email protected]> +--- + include/applets.src.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/applets.src.h b/include/applets.src.h +index 87d9cbb..c148a8c 100644 +--- a/include/applets.src.h ++++ b/include/applets.src.h +@@ -404,7 +404,7 @@ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) + /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */ + IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) +-IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) ++IF_WATCH(APPLET(watch, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) + IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) +-- +1.7.5.4 +meta/recipes-core/busybox/busybox_1.19.4.bb +0
-0@@ -1,5 +1,5 @@require busybox.inc
meta/recipes-core/busybox/busybox_1.19.4.bb +1
-1-PR = "r0" +PR = "r1"SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \meta/recipes-core/busybox/busybox_1.19.4.bb +1
-0@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ + file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ file://find-touchscreen.sh \ file://busybox-cron \Signature · 7 lines
1.7.5.4 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Op 17 apr. 2012, om 12:44 heeft Richard Purdie het volgende geschreven:
Quoted 6 lines · Koen Kooi
Quoted 1 line
Ping
It merged three weeks ago:
http://git.openembedded.org/openembedded-core/commit/?id=fa8b2d2bed63fa4fc2af45f094998b0f9e69d272
Weird, I still get the opkg errors about /bin/watch, but that's probably a bug in opkg :(
regards,
Koen
Quoted 102 lines
?
Cheers,
Richard
Quoted 76 lines
Op 24 mrt. 2012, om 20:46 heeft Andreas Oberritter het volgende geschreven:
Quoted 74 lines
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.
.../busybox/busybox-1.19.4/watch.in.usr-bin.patch| 29 ++++++++++++++++++++
meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +-2 files changed, 31 insertions(+), 1 deletions(-)create mode 100644
meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patchmeta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch new file +29
-0@@ -0,0 +1,29 @@ +Upstream-Status: Inappropriate [configuration] + +From f2372ab626a395d067704f4c318180fb6039de15 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter <[email protected]> +Date: Sat, 24 Mar 2012 17:36:48 +0100 +Subject: [PATCH] watch: move from /bin to /usr/bin for compatibility with + procps + +Signed-off-by: Andreas Oberritter <[email protected]> +--- + include/applets.src.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/applets.src.h b/include/applets.src.h +index 87d9cbb..c148a8c 100644 +--- a/include/applets.src.h ++++ b/include/applets.src.h +@@ -404,7 +404,7 @@ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) + /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */ + IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) +-IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) ++IF_WATCH(APPLET(watch, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) + IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) +-- +1.7.5.4 +meta/recipes-core/busybox/busybox_1.19.4.bb +0
-0@@ -1,5 +1,5 @@require busybox.inc
meta/recipes-core/busybox/busybox_1.19.4.bb +1
-1-PR = "r0" +PR = "r1"SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \meta/recipes-core/busybox/busybox_1.19.4.bb +1
-0@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ + file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ file://find-touchscreen.sh \ file://busybox-cron \Signature · 1 line
1.7.5.4Quoted 11 lines
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 4 lines · Koen Kooi
Op 17 apr. 2012, om 12:44 heeft Richard Purdie het volgende geschreven:
Quoted 1 line · Koen Kooi
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Ping
It merged three weeks ago:
http://git.openembedded.org/openembedded-core/commit/?id=fa8b2d2bed63fa4fc2af45f094998b0f9e69d272
Weird, I still get the opkg errors about
/bin/watch, but that's probably a bug in opkg :(
see
http://permalink.gmane.org/gmane.comp.handhelds.openembedded.core/17867
Quoted 113 lines
regards,
Koen
Quoted 98 lines
?
Cheers,
Richard
Quoted 76 lines
Op 24 mrt. 2012, om 20:46 heeft Andreas Oberritter het volgende geschreven:
Quoted 74 lines
Commit
68dc2a3fa30c03a196d650de34d0c657a7b85454broke opkg upgrade:| update-alternatives: Error: cannot register alternative watch to |
/usr/bin/watchsince it is already registered to/bin/watchSigned-off-by Andreas Oberritter <[email protected]>---
* Martin, can you please verify whether this really helps? I've built a rootfs with both busybox watch and procps installed. I didn't actually do an opkg upgrade.
.../busybox/busybox-1.19.4/watch.in.usr-bin.patch| 29 ++++++++++++++++++++
meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +-2 files changed, 31 insertions(+), 1 deletions(-)create mode 100644
meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patchmeta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch new file +29
-0@@ -0,0 +1,29 @@ +Upstream-Status: Inappropriate [configuration] + +From f2372ab626a395d067704f4c318180fb6039de15 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter <[email protected]> +Date: Sat, 24 Mar 2012 17:36:48 +0100 +Subject: [PATCH] watch: move from /bin to /usr/bin for compatibility with + procps + +Signed-off-by: Andreas Oberritter <[email protected]> +--- + include/applets.src.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/applets.src.h b/include/applets.src.h +index 87d9cbb..c148a8c 100644 +--- a/include/applets.src.h ++++ b/include/applets.src.h +@@ -404,7 +404,7 @@ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) + /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */ + IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) +-IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) ++IF_WATCH(APPLET(watch, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) + IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) +-- +1.7.5.4 +meta/recipes-core/busybox/busybox_1.19.4.bb +0
-0@@ -1,5 +1,5 @@require busybox.inc
meta/recipes-core/busybox/busybox_1.19.4.bb +1
-1-PR = "r0" +PR = "r1"SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \meta/recipes-core/busybox/busybox_1.19.4.bb +1
-0@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ + file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ file://find-touchscreen.sh \ file://busybox-cron \Signature · 1 line
1.7.5.4Quoted 11 lines
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-coreQuoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]