[oe-commits] Chen Qi : procps: make the 'watch' command register to /bin/watch
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 2 11:26:07 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 9e6e2aee21ff59687ddfd0e23fd0add9ee81d397
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9e6e2aee21ff59687ddfd0e23fd0add9ee81d397
Author: Chen Qi <Qi.Chen at windriver.com>
Date: Wed Jan 22 10:39:49 2014 +0800
procps: make the 'watch' command register to /bin/watch
This solves the integration problem with busybox.
Previously, there was a patch in busybox to move 'watch' to /usr/bin.
Such patch is not accepted by upsteam and really not necessary as
our ALTERNATIVE system can easily solve such intergration problem.
Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/procps/procps.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-extended/procps/procps.inc b/meta/recipes-extended/procps/procps.inc
index 6ee4a04..20d5fc2 100644
--- a/meta/recipes-extended/procps/procps.inc
+++ b/meta/recipes-extended/procps/procps.inc
@@ -15,6 +15,10 @@ SRC_URI = "http://procps.sourceforge.net/procps-${PV}.tar.gz \
inherit autotools update-alternatives
+do_install_append() {
+ mv ${D}${bindir}/watch ${D}${bindir}/watch.${BPN}
+}
+
FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so"
FILES_SOLIBSDEV = ""
@@ -22,4 +26,6 @@ ALTERNATIVE_${PN} = "top uptime free pkill pmap kill sysctl ps pgrep pwdx watch"
ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill"
ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl"
ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps"
+ALTERNATIVE_LINK_NAME[watch] = "${base_bindir}/watch"
+ALTERNATIVE_TARGET[watch] = "${bindir}/watch.${BPN}"
ALTERNATIVE_PRIORITY = "110"
More information about the Openembedded-commits
mailing list