* Re: [oe-commits] Andreas Oberritter : procps: use update-alternatives for pwdx, pgrep and watch
[not found] <20120323175301.787D61032F@opal>
@ 2012-03-24 1:41 ` Martin Jansa
2012-03-24 16:46 ` Andreas Oberritter
0 siblings, 1 reply; 2+ messages in thread
From: Martin Jansa @ 2012-03-24 1:41 UTC (permalink / raw)
To: openembedded-core; +Cc: openembedded-commits
[-- Attachment #1: Type: text/plain, Size: 2247 bytes --]
On Fri, Mar 23, 2012 at 05:53:01PM +0000, git@git.openembedded.org 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 <obi@opendreambox.org>
> 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,
>
> * pwdx, pgrep and watch may be provided by busybox.
> * Use update-alternatives to avoid conflict.
>
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> ---
>
> meta/recipes-extended/procps/procps_3.2.8.bb | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-extended/procps/procps_3.2.8.bb b/meta/recipes-extended/procps/procps_3.2.8.bb
> index 27d2b5c..683badc 100644
> --- a/meta/recipes-extended/procps/procps_3.2.8.bb
> +++ b/meta/recipes-extended/procps/procps_3.2.8.bb
> @@ -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
> Openembedded-commits@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread