[oe] [PATCH] Apply remove-bashisms patch for runtime and compile time bashisms in "configure".

Marc Olzheim zlo at zlo.nu
Wed Apr 28 15:36:46 UTC 2010


From: Marc Olzheim <marc at iphion.nl>

---
 .../remove-configure-bashisms.patch                |   47 ++++++++++++++++++++
 recipes/iproute2/iproute2_2.6.31.bb                |    4 +-
 2 files changed, 50 insertions(+), 1 deletions(-)
 create mode 100644 recipes/iproute2/iproute2-2.6.31/remove-configure-bashisms.patch

diff --git a/recipes/iproute2/iproute2-2.6.31/remove-configure-bashisms.patch b/recipes/iproute2/iproute2-2.6.31/remove-configure-bashisms.patch
new file mode 100644
index 0000000..941c26a
--- /dev/null
+++ b/recipes/iproute2/iproute2-2.6.31/remove-configure-bashisms.patch
@@ -0,0 +1,47 @@
+--- iproute2-2.6.31/configure	2009-12-26 19:26:44.000000000 +0100
++++ iproute2-2.6.31/configure	2010-04-28 17:29:12.000000000 +0200
+@@ -3,7 +3,7 @@
+ #
+ INCLUDE=${1:-"$PWD/include"}
+ 
+-function check_atm
++check_atm()
+ {
+ cat >/tmp/atmtest.c <<EOF
+ #include <atm.h>
+@@ -24,7 +24,7 @@
+ rm -f /tmp/atmtest.c /tmp/atmtest
+ }
+ 
+-function check_xt
++check_xt()
+ {
+ #check if we have xtables from iptables >= 1.4.5.
+ cat >/tmp/ipttest.c <<EOF
+@@ -55,7 +55,7 @@
+ rm -f /tmp/ipttest.c /tmp/ipttest
+ }
+ 
+-function check_xt_old
++check_xt_old()
+ {
+ # bail if previous XT checks has already succeded.
+ if grep TC_CONFIG_XT Config > /dev/null
+@@ -94,7 +94,7 @@
+ rm -f /tmp/ipttest.c /tmp/ipttest
+ }
+ 
+-function check_xt_old_internal_h
++check_xt_old_internal_h()
+ {
+ # bail if previous XT checks has already succeded.
+ if grep TC_CONFIG_XT Config > /dev/null
+@@ -134,7 +134,7 @@
+ rm -f /tmp/ipttest.c /tmp/ipttest
+ }
+ 
+-function check_ipt
++check_ipt()
+ {
+ 	if ! grep TC_CONFIG_XT Config > /dev/null
+ 	then
diff --git a/recipes/iproute2/iproute2_2.6.31.bb b/recipes/iproute2/iproute2_2.6.31.bb
index 543e1b1..2baed56 100644
--- a/recipes/iproute2/iproute2_2.6.31.bb
+++ b/recipes/iproute2/iproute2_2.6.31.bb
@@ -1,9 +1,11 @@
 require iproute2.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${P}.tar.bz2 \
 	   file://new-flex-fix.patch;patch=1 \
+	   file://remove-configure-bashisms.patch;patch=1 \
+	   file://remove-bashisms.patch;patch=1 \
 	  "
 
 S = "${WORKDIR}/iproute2-${PV}"
-- 
1.6.3.3





More information about the Openembedded-devel mailing list