Skip to contentSkip to conversation

Andreas Oberritter : procps: use update-alternatives for pwdx, pgrep and watch

oe-commits Martin Jansa 2 participants 2 messages Mar 24, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20120323175301.787D61032F@opal

#1 lore raw
Quoted 9 lines · On Fri, Mar 23, 2012 at 05:53:01PM +0000, [email protected] wrote:
Module: openembedded-core.git
Branch: master
Commit: 68dc2a3fa30c03a196d650de34d0c657a7b85454
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=68dc2a3fa30c03a196d650de34d0c657a7b85454
Author: Andreas Oberritter <[email protected]>
Date:   Fri Mar 23 17:37:36 2012 +0100

procps: use update-alternatives for pwdx, pgrep and watch

Good intention but results in this error in opkg upgrade:

update-alternatives: Error: cannot register alternative watch to /usr/bin/watch since it is already registered to /bin/watch

can you move one of them or move alternative?

fwiw: gentoo also has procps's watch in bindir and busybox's in base_bindir

Cheers,

Quoted 37 lines

* pwdx, pgrep and watch may be provided by busybox.
* Use update-alternatives to avoid conflict.

---

 meta/recipes-extended/procps/procps_3.2.8.bb |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-extended/procps/procps_3.2.8.bb +3 -2
index 27d2b5c..683badc 100644
@@ -1,11 +1,12 @@
 require procps.inc
 
-PR = "r5"
+PR = "r6"
 
 inherit update-alternatives
 
 ALTERNATIVE_LINKS = "${bindir}/top ${bindir}/uptime ${bindir}/free ${bindir}/pkill ${bindir}/pmap \
-                     ${base_bindir}/kill ${base_sbindir}/sysctl ${base_bindir}/ps"
+                     ${base_bindir}/kill ${base_sbindir}/sysctl ${base_bindir}/ps \
+                     ${bindir}/pgrep ${bindir}/pwdx ${bindir}/watch"
 ALTERNATIVE_PRIORITY = "110"
 
 SRC_URI += "file://procmodule.patch \

_______________________________________________
Openembedded-commits mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 13 lines · Martin Jansa
Quoted 9 lines · On Fri, Mar 23, 2012 at 05:53:01PM +0000, [email protected] wrote:
Module: openembedded-core.git
Branch: master
Commit: 68dc2a3fa30c03a196d650de34d0c657a7b85454
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=68dc2a3fa30c03a196d650de34d0c657a7b85454
Author: Andreas Oberritter <[email protected]>
Date:   Fri Mar 23 17:37:36 2012 +0100

procps: use update-alternatives for pwdx, pgrep and watch

Good intention but results in this error in opkg upgrade:

Quoted 7 lines

update-alternatives: Error: cannot register alternative watch to /usr/bin/watch since it is already registered to /bin/watch

can you move one of them or move alternative?

fwiw: gentoo also has procps's watch in bindir and busybox's in base_bindir

Sorry, I didn't notice, because I disabled watch in my busybox config. I'm going to send a patch to move busybox' watch to /usr/bin.

Regards,
Andreas