lsof: add busybox tweaks
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 26 Apr 2012 00:15:24 +0000 (00:15 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 29 Apr 2012 08:52:39 +0000 (10:52 +0200)
Since busybox 1.20+ includes a lsof applet make sure lsof gets built
after busybox so that we get the full-blown version if both are enabled.
Also hide the lsof package unless BUSYBOX_SHOW_OTHERS is true.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/lsof/lsof.mk

index a3101467f673234d79ed5faae4ffb5d3b720c701..34570beb1cb405971310ec911f7fa59cf461939d 100644 (file)
@@ -24,7 +24,9 @@ source "package/dmalloc/Config.in"
 source "package/kexec/Config.in"
 source "package/latencytop/Config.in"
 source "package/lmbench/Config.in"
+if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/lsof/Config.in"
+endif
 source "package/ltp-testsuite/Config.in"
 source "package/lttng-babeltrace/Config.in"
 source "package/lttng-modules/Config.in"
index c07fb2da36a2d8dbcb3049ce5c5259a6f1d963f9..7bc22c01d939b2b5178275f384dd683311b8729c 100644 (file)
@@ -8,6 +8,9 @@ LSOF_VERSION = 4.85
 LSOF_SOURCE = lsof_$(LSOF_VERSION).tar.bz2
 LSOF_SITE = ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
 
+# Make certain full-blown lsof gets built after the busybox version (1.20+)
+LSOF_DEPENDENCIES += $(if $(BR2_PACKAGE_BUSYBOX),busybox)
+
 BR2_LSOF_CFLAGS =
 ifeq ($(BR2_LARGEFILE),)
 BR2_LSOF_CFLAGS += -U_FILE_OFFSET_BITS