浏览代码

netcat: add forced dependence on BusyBox

It may be necessary if packages become built in parallel, leading to a
race condition on the creation of the "nc" link.

Of course this still leaves a race conditon if other netcat competitors
but we must assume thet the user is a grown-up person who knows what is
doing.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
[Arnout: Don't force-remove the existing nc, not needed according to
         Romain.]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Carlos Santos 7 年之前
父节点
当前提交
2da613a7d9
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      package/netcat/netcat.mk

+ 6 - 0
package/netcat/netcat.mk

@@ -9,4 +9,10 @@ NETCAT_SITE = http://downloads.sourceforge.net/project/netcat/netcat/$(NETCAT_VE
 NETCAT_LICENSE = GPL-2.0+
 NETCAT_LICENSE = GPL-2.0+
 NETCAT_LICENSE_FILES = COPYING
 NETCAT_LICENSE_FILES = COPYING
 
 
+# Ensure Busybox gets built/installed before, so that this package overrides
+# Busybox nc.
+ifeq ($(BR2_PACKAGE_BUSYBOX),y)
+NETCAT_DEPENDENCIES += busybox
+endif
+
 $(eval $(autotools-package))
 $(eval $(autotools-package))