Skip to contentSkip to conversation

iproute2: explicitly add 'bash' to its RDEPENDS]

PATCH Henning Heinold 1 participant 1 message Oct 31, 2013

lore
Share & tools
lore
#0 lore raw
Quoted 35 lines · On Wed, Oct 30, 2013 at 10:07:46AM +0800, [email protected] wrote:

From: Chen Qi <[email protected]>

If we build a minimal image with iproute2 installed, the following error will appear during rootfs.

error: Can't install iproute2-3.10.0-r0.0@i586: no package provides /bin/bash

The problem is that iproute2 has an implicit dependency on 'bash'. This dependency is from per-file dependency checking. But as 'bash' is not explicitly specified in the RDEPENDS in recipe, it's not built. This leads to the above error.

Fix this problem by explicitly adding 'bash' to the RDEPENDS.

[YOCTO #5415]

---
 meta/recipes-connectivity/iproute2/iproute2.inc |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-connectivity/iproute2/iproute2.inc +1 -0
index 3db21db..40f6a6c 100644
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
                     file://ip/ip.c;beginline=3;endline=8;md5=689d691d0410a4b64d3899f8d6e31817"
 
 DEPENDS = "flex-native bison-native iptables"
+RDEPENDS_${PN} = "bash"
 
 inherit update-alternatives
 
Signature · 1 line
1.7.9.5

Hi,

there is only one script rtpr which "needs" bash with the following content:

#! /bin/bash

exec tr "[\\\\]" "[
]"

So in my opinion it is not worth to include bash for that and there should be a simpler solution.

Bye Henning