Skip to contentSkip to conversation

iproute2: Remove undocumented bash runtime dependency, move to INC_PR and rework dir layout

PATCH New Marc Olzheim 1 participant 5 messages Nov 18, 2009

lore
Share & tools
lore
#0 lore raw

I noticed that iproute2 has a runtime dependency on bash in two of its scripts. Those dependencies are unneeded, so I removed them.

Before doing that though, I moved the recipes to INC_PR and changed the directory layout to prevent useless duplication of the patches in the directories.

I hope that this is the way to go.

Marc

#1 lore raw

PATCH 1/3 Move to INC_PR.

From: Marc Olzheim <[email protected]>

---
 recipes/iproute2/iproute2.inc       |    2 ++
 recipes/iproute2/iproute2_2.6.18.bb |    4 ++--
 recipes/iproute2/iproute2_2.6.20.bb |    3 ++-
 recipes/iproute2/iproute2_2.6.22.bb |    3 ++-
 recipes/iproute2/iproute2_2.6.29.bb |    2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)
recipes/iproute2/iproute2.inc +2 -0
index 8c8519f..2a887a2 100644
@@ -9,6 +9,8 @@ SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${P}-${DATE}.tar.gz"
 
 S = "${WORKDIR}/iproute2-${PV}-${DATE}"
 
+INC_PR = "r3"
+
 inherit update-alternatives
 
 EXTRA_OEMAKE = "CC='${CC}' \
recipes/iproute2/iproute2_2.6.18.bb +2 -2
index d442a09..cbe8f6e 100644
@@ -1,7 +1,7 @@
-PR = "r3"
-
 require iproute2.inc
 
+PR = "${INC_PR}"
+
 SRC_URI += "file://iproute2-2.6.15_no_strip.diff;patch=1;pnum=0 \
             file://new-flex-fix.patch;patch=1"
 
recipes/iproute2/iproute2_2.6.20.bb +2 -1
index e72dfcc..2dea62e 100644
@@ -1,6 +1,7 @@
 require iproute2.inc
 
-PR = "r2"
+PR = "${INC_PR}"
+
 DATE = "070313"
 
 SRC_URI_append = " file://new-flex-fix.patch;patch=1 \
recipes/iproute2/iproute2_2.6.22.bb +2 -1
index 1ee0ce7..6d06f64 100644
@@ -1,6 +1,7 @@
 require iproute2.inc
 
-PR = "r1"
+PR = "${INC_PR}"
+
 DATE = "070710"
 
 SRC_URI_append = " file://new-flex-fix.patch;patch=1 \
recipes/iproute2/iproute2_2.6.29.bb +1 -1
index d02573a..47ea720 100644
@@ -1,6 +1,6 @@
 require iproute2.inc
 
-PR = "r1"
+PR = "${INC_PR}"
 
 SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${P}.tar.bz2 \
 	   file://new-flex-fix.patch;patch=1 \
Signature · 1 line
1.6.3.3
#2 lore raw

PATCH 2/3 Move all patches to one directory to avoid duplication.

From: Marc Olzheim <[email protected]>

---
 recipes/iproute2/files/ip6tunnel.patch             |   12 +++
 .../iproute2/files/iproute2-2.6.15_no_strip.diff   |   25 ++++++
 .../files/iproute2-2.6.18_new-flex-fix.patch       |   83 ++++++++++++++++++++
 .../files/iproute2-2.6.20_new-flex-fix.patch       |   83 ++++++++++++++++++++
 recipes/iproute2/files/man-pages-fix.patch         |   13 +++
 .../iproute2/files/missing_linux_ip_header.patch   |   12 +++
 recipes/iproute2/files/no-strip.patch              |   36 +++++++++
 .../iproute2-2.6.18/iproute2-2.6.15_no_strip.diff  |   25 ------
 .../iproute2/iproute2-2.6.18/new-flex-fix.patch    |   83 --------------------
 recipes/iproute2/iproute2-2.6.20/ip6tunnel.patch   |   10 ---
 .../iproute2/iproute2-2.6.20/man-pages-fix.patch   |   13 ---
 .../iproute2/iproute2-2.6.20/new-flex-fix.patch    |   83 --------------------
 recipes/iproute2/iproute2-2.6.20/no-strip.patch    |   36 ---------
 recipes/iproute2/iproute2-2.6.22/ip6tunnel.patch   |   12 ---
 .../iproute2/iproute2-2.6.22/new-flex-fix.patch    |   83 --------------------
 recipes/iproute2/iproute2-2.6.22/no-strip.patch    |   36 ---------
 .../iproute2/iproute2-2.6.29/compilation-fix.patch |   12 ---
 .../iproute2/iproute2-2.6.29/new-flex-fix.patch    |   83 --------------------
 recipes/iproute2/iproute2_2.6.18.bb                |    4 +-
 recipes/iproute2/iproute2_2.6.20.bb                |    4 +-
 recipes/iproute2/iproute2_2.6.22.bb                |    4 +-
 recipes/iproute2/iproute2_2.6.29.bb                |    6 +-
 22 files changed, 273 insertions(+), 485 deletions(-)
 create mode 100644 recipes/iproute2/files/ip6tunnel.patch
 create mode 100644 recipes/iproute2/files/iproute2-2.6.15_no_strip.diff
 create mode 100644 recipes/iproute2/files/iproute2-2.6.18_new-flex-fix.patch
 create mode 100644 recipes/iproute2/files/iproute2-2.6.20_new-flex-fix.patch
 create mode 100644 recipes/iproute2/files/man-pages-fix.patch
 create mode 100644 recipes/iproute2/files/missing_linux_ip_header.patch
 create mode 100644 recipes/iproute2/files/no-strip.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.18/iproute2-2.6.15_no_strip.diff
 delete mode 100644 recipes/iproute2/iproute2-2.6.18/new-flex-fix.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.20/ip6tunnel.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.20/man-pages-fix.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.20/new-flex-fix.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.20/no-strip.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.22/ip6tunnel.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.22/new-flex-fix.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.22/no-strip.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.29/compilation-fix.patch
 delete mode 100644 recipes/iproute2/iproute2-2.6.29/new-flex-fix.patch
recipes/iproute2/files/ip6tunnel.patch new file +12 -0
new file mode 100644
index 0000000..a00a7e7
@@ -0,0 +1,12 @@
+This fix is needed when building with uclibc
+
+--- iproute-2.6.20-070313/ip/ip6tunnel.c	2007/03/17 03:44:27	1.1
++++ iproute-2.6.20-070313/ip/ip6tunnel.c	2007/03/17 03:43:14
+@@ -33,6 +33,7 @@
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <sys/ioctl.h>
++#include <linux/types.h>
+ #include <linux/ip.h>
+ #include <linux/if.h>
+ #include <linux/if_arp.h>
recipes/iproute2/files/iproute2-2.6.15_no_strip.diff new file +25 -0
new file mode 100644
index 0000000..4965069
@@ -0,0 +1,25 @@
+--- ip/Makefile	2006/02/23 21:22:18	1.1
++++ ip/Makefile	2006/02/23 21:22:27
+@@ -16,7 +16,7 @@
+ rtmon: $(RTMONOBJ) $(LIBNETLINK)
+ 
+ install: all
+-	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
++	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+ 	install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
+ 
+ clean:
+--- tc/Makefile	2006/02/23 21:23:52	1.1
++++ tc/Makefile	2006/02/23 21:23:57
+@@ -70,9 +70,9 @@
+ 
+ install: all
+ 	mkdir -p $(DESTDIR)/usr/lib/tc
+-	install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
++	install -m 0755 tc $(DESTDIR)$(SBINDIR)
+ 	for i in $(TCSO); \
+-	do install -m 755 -s $$i $(DESTDIR)/usr/lib/tc; \
++	do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
+ 	done
+ 
+ clean:
recipes/iproute2/files/iproute2-2.6.18_new-flex-fix.patch new file +83 -0

83 lines not on this page · raw message

recipes/iproute2/files/iproute2-2.6.20_new-flex-fix.patch new file +83 -0

83 lines not on this page · raw message

recipes/iproute2/files/man-pages-fix.patch new file +13 -0
new file mode 100644
index 0000000..924d0ed
@@ -0,0 +1,13 @@
+--- iproute-2.6.20-070313/Makefile	2007/03/17 04:24:45	1.1
++++ iproute-2.6.20-070313/Makefile	2007/03/17 04:27:39
+@@ -52,8 +52,8 @@
+ 	install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
+ 	install -m 0755 -d $(DESTDIR)$(MANDIR)/man8
+ 	install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8
+-	ln -sf tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-bfifo.8
+-	ln -sf tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
++	ln -sf tc-bfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
++	ln -sf tc-bfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pbfifo.8
+ 	install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
+ 	install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3
+ 
recipes/iproute2/files/missing_linux_ip_header.patch new file +12 -0
new file mode 100644
index 0000000..2012807
@@ -0,0 +1,12 @@
+Index: iproute2-2.6.29/ip/link_gre.c
+===================================================================
+--- iproute2-2.6.29.orig/ip/link_gre.c	2009-06-22 11:10:24.212963299 +0400
++++ iproute2-2.6.29/ip/link_gre.c	2009-06-22 11:10:33.940691491 +0400
+@@ -12,6 +12,7 @@
+ 
+ #include <string.h>
+ #include <net/if.h>
++#include <linux/ip.h>
+ #include <linux/if_tunnel.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
recipes/iproute2/files/no-strip.patch new file +36 -0
new file mode 100644
index 0000000..6490dad
@@ -0,0 +1,36 @@
+--- iproute-2.6.20-070313/ip/Makefile	2007/03/17 05:17:30	1.1
++++ iproute-2.6.20-070313/ip/Makefile	2007/03/17 05:17:37
+@@ -16,7 +16,7 @@
+ rtmon: $(RTMONOBJ) $(LIBNETLINK)
+ 
+ install: all
+-	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
++	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+ 	install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
+ 
+ clean:
+--- iproute-2.6.20-070313/misc/Makefile	2007/03/17 05:18:20	1.1
++++ iproute-2.6.20-070313/misc/Makefile	2007/03/17 05:18:26
+@@ -27,7 +27,7 @@
+ lnstat: $(LNSTATOBJ)
+ 
+ install: all
+-	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
++	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+ 	ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
+ 	ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
+ 
+--- iproute-2.6.20-070313/tc/Makefile	2007/03/17 05:17:42	1.1
++++ iproute-2.6.20-070313/tc/Makefile	2007/03/17 05:17:54
+@@ -70,9 +70,9 @@
+ 
+ install: all
+ 	mkdir -p $(DESTDIR)/usr/lib/tc
+-	install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
++	install -m 0755 tc $(DESTDIR)$(SBINDIR)
+ 	for i in $(TCSO); \
+-	do install -m 755 -s $$i $(DESTDIR)/usr/lib/tc; \
++	do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
+ 	done
+ 
+ clean:
recipes/iproute2/iproute2-2.6.18/iproute2-2.6.15_no_strip.diff deleted +0 -25
deleted file mode 100644
index 4965069..0000000
@@ -1,25 +0,0 @@
---- ip/Makefile	2006/02/23 21:22:18	1.1
-+++ ip/Makefile	2006/02/23 21:22:27
-@@ -16,7 +16,7 @@
- rtmon: $(RTMONOBJ) $(LIBNETLINK)
- 
- install: all
--	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
-+	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
- 	install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
- 
- clean:
---- tc/Makefile	2006/02/23 21:23:52	1.1
-+++ tc/Makefile	2006/02/23 21:23:57
-@@ -70,9 +70,9 @@
- 
- install: all
- 	mkdir -p $(DESTDIR)/usr/lib/tc
--	install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
-+	install -m 0755 tc $(DESTDIR)$(SBINDIR)
- 	for i in $(TCSO); \
--	do install -m 755 -s $$i $(DESTDIR)/usr/lib/tc; \
-+	do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
- 	done
- 
- clean:
recipes/iproute2/iproute2-2.6.18/new-flex-fix.patch deleted +0 -83

83 lines not on this page · raw message

recipes/iproute2/iproute2-2.6.20/ip6tunnel.patch deleted +0 -10
deleted file mode 100644
index 371de01..0000000
@@ -1,10 +0,0 @@
---- iproute-2.6.20-070313/ip/ip6tunnel.c	2007/03/17 03:44:27	1.1
-+++ iproute-2.6.20-070313/ip/ip6tunnel.c	2007/03/17 03:43:14
-@@ -33,6 +33,7 @@
- #include <sys/socket.h>
- #include <arpa/inet.h>
- #include <sys/ioctl.h>
-+#include <linux/types.h>
- #include <linux/ip.h>
- #include <linux/if.h>
- #include <linux/if_arp.h>
recipes/iproute2/iproute2-2.6.20/man-pages-fix.patch deleted +0 -13
deleted file mode 100644
index 924d0ed..0000000
@@ -1,13 +0,0 @@
---- iproute-2.6.20-070313/Makefile	2007/03/17 04:24:45	1.1
-+++ iproute-2.6.20-070313/Makefile	2007/03/17 04:27:39
-@@ -52,8 +52,8 @@
- 	install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
- 	install -m 0755 -d $(DESTDIR)$(MANDIR)/man8
- 	install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8
--	ln -sf tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-bfifo.8
--	ln -sf tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
-+	ln -sf tc-bfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
-+	ln -sf tc-bfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pbfifo.8
- 	install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
- 	install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3
- 
recipes/iproute2/iproute2-2.6.20/new-flex-fix.patch deleted +0 -83

83 lines not on this page · raw message

recipes/iproute2/iproute2-2.6.20/no-strip.patch deleted +0 -36
deleted file mode 100644
index 6490dad..0000000
@@ -1,36 +0,0 @@
---- iproute-2.6.20-070313/ip/Makefile	2007/03/17 05:17:30	1.1
-+++ iproute-2.6.20-070313/ip/Makefile	2007/03/17 05:17:37
-@@ -16,7 +16,7 @@
- rtmon: $(RTMONOBJ) $(LIBNETLINK)
- 
- install: all
--	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
-+	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
- 	install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
- 
- clean:
---- iproute-2.6.20-070313/misc/Makefile	2007/03/17 05:18:20	1.1
-+++ iproute-2.6.20-070313/misc/Makefile	2007/03/17 05:18:26
-@@ -27,7 +27,7 @@
- lnstat: $(LNSTATOBJ)
- 
- install: all
--	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
-+	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
- 	ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
- 	ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
- 
---- iproute-2.6.20-070313/tc/Makefile	2007/03/17 05:17:42	1.1
-+++ iproute-2.6.20-070313/tc/Makefile	2007/03/17 05:17:54
-@@ -70,9 +70,9 @@
- 
- install: all
- 	mkdir -p $(DESTDIR)/usr/lib/tc
--	install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
-+	install -m 0755 tc $(DESTDIR)$(SBINDIR)
- 	for i in $(TCSO); \
--	do install -m 755 -s $$i $(DESTDIR)/usr/lib/tc; \
-+	do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
- 	done
- 
- clean:
recipes/iproute2/iproute2-2.6.22/ip6tunnel.patch deleted +0 -12
deleted file mode 100644
index a00a7e7..0000000
@@ -1,12 +0,0 @@
-This fix is needed when building with uclibc
-
---- iproute-2.6.20-070313/ip/ip6tunnel.c	2007/03/17 03:44:27	1.1
-+++ iproute-2.6.20-070313/ip/ip6tunnel.c	2007/03/17 03:43:14
-@@ -33,6 +33,7 @@
- #include <sys/socket.h>
- #include <arpa/inet.h>
- #include <sys/ioctl.h>
-+#include <linux/types.h>
- #include <linux/ip.h>
- #include <linux/if.h>
- #include <linux/if_arp.h>
recipes/iproute2/iproute2-2.6.22/new-flex-fix.patch deleted +0 -83

83 lines not on this page · raw message

recipes/iproute2/iproute2-2.6.22/no-strip.patch deleted +0 -36
deleted file mode 100644
index 6490dad..0000000
@@ -1,36 +0,0 @@
---- iproute-2.6.20-070313/ip/Makefile	2007/03/17 05:17:30	1.1
-+++ iproute-2.6.20-070313/ip/Makefile	2007/03/17 05:17:37
-@@ -16,7 +16,7 @@
- rtmon: $(RTMONOBJ) $(LIBNETLINK)
- 
- install: all
--	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
-+	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
- 	install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
- 
- clean:
---- iproute-2.6.20-070313/misc/Makefile	2007/03/17 05:18:20	1.1
-+++ iproute-2.6.20-070313/misc/Makefile	2007/03/17 05:18:26
-@@ -27,7 +27,7 @@
- lnstat: $(LNSTATOBJ)
- 
- install: all
--	install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
-+	install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
- 	ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
- 	ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
- 
---- iproute-2.6.20-070313/tc/Makefile	2007/03/17 05:17:42	1.1
-+++ iproute-2.6.20-070313/tc/Makefile	2007/03/17 05:17:54
-@@ -70,9 +70,9 @@
- 
- install: all
- 	mkdir -p $(DESTDIR)/usr/lib/tc
--	install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
-+	install -m 0755 tc $(DESTDIR)$(SBINDIR)
- 	for i in $(TCSO); \
--	do install -m 755 -s $$i $(DESTDIR)/usr/lib/tc; \
-+	do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
- 	done
- 
- clean:
recipes/iproute2/iproute2-2.6.29/compilation-fix.patch deleted +0 -12
deleted file mode 100644
index 2012807..0000000
@@ -1,12 +0,0 @@
-Index: iproute2-2.6.29/ip/link_gre.c
-===================================================================
---- iproute2-2.6.29.orig/ip/link_gre.c	2009-06-22 11:10:24.212963299 +0400
-+++ iproute2-2.6.29/ip/link_gre.c	2009-06-22 11:10:33.940691491 +0400
-@@ -12,6 +12,7 @@
- 
- #include <string.h>
- #include <net/if.h>
-+#include <linux/ip.h>
- #include <linux/if_tunnel.h>
- #include <sys/types.h>
- #include <sys/socket.h>
recipes/iproute2/iproute2-2.6.29/new-flex-fix.patch deleted +0 -83

83 lines not on this page · raw message

recipes/iproute2/iproute2_2.6.18.bb +2 -2
index cbe8f6e..42af5f4 100644
@@ -1,8 +1,8 @@
 require iproute2.inc
 
-PR = "${INC_PR}"
+PR = "${INC_PR}.0"
 
 SRC_URI += "file://iproute2-2.6.15_no_strip.diff;patch=1;pnum=0 \
-            file://new-flex-fix.patch;patch=1"
+            file://iproute2-2.6.18_new-flex-fix.patch;patch=1"
 
 DATE = "061002"
recipes/iproute2/iproute2_2.6.20.bb +2 -2
index 2dea62e..2509f36 100644
@@ -1,10 +1,10 @@
 require iproute2.inc
 
-PR = "${INC_PR}"
+PR = "${INC_PR}.0"
 
 DATE = "070313"
 
-SRC_URI_append = " file://new-flex-fix.patch;patch=1 \
+SRC_URI_append = " file://iproute2-2.6.20_new-flex-fix.patch;patch=1 \
                    file://ip6tunnel.patch;patch=1 \
                    file://man-pages-fix.patch;patch=1 \
                    file://no-strip.patch;patch=1"
recipes/iproute2/iproute2_2.6.22.bb +2 -2
index 6d06f64..fe13d6c 100644
@@ -1,10 +1,10 @@
 require iproute2.inc
 
-PR = "${INC_PR}"
+PR = "${INC_PR}.0"
 
 DATE = "070710"
 
-SRC_URI_append = " file://new-flex-fix.patch;patch=1 \
+SRC_URI_append = " file://iproute2-2.6.20_new-flex-fix.patch;patch=1 \
                    file://ip6tunnel.patch;patch=1 \
                    file://no-strip.patch;patch=1"
 
recipes/iproute2/iproute2_2.6.29.bb +3 -3
index 47ea720..0554d6b 100644
@@ -1,10 +1,10 @@
 require iproute2.inc
 
-PR = "${INC_PR}"
+PR = "${INC_PR}.0"
 
 SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${P}.tar.bz2 \
-	   file://new-flex-fix.patch;patch=1 \
-	   file://compilation-fix.patch;patch=1 \
+	   file://iproute2-2.6.20_new-flex-fix.patch;patch=1 \
+	   file://missing_linux_ip_header.patch;patch=1 \
 	  "
 
 S = "${WORKDIR}/iproute2-${PV}"
Signature · 1 line
1.6.3.3
#3 lore raw

PATCH 3/3 Remove unneeded bash dependency.

From: Marc Olzheim <[email protected]>

Even though the recipes did not list it in REDEPENDS, two scripts in this package depended on bash. Since this was unneeded, I removed that dependency. (Upstream notified)

---
 recipes/iproute2/files/remove-bashisms.patch |   59 ++++++++++++++++++++++++++
 recipes/iproute2/iproute2_2.6.20.bb          |    3 +-
 recipes/iproute2/iproute2_2.6.22.bb          |    3 +-
 recipes/iproute2/iproute2_2.6.29.bb          |    3 +-
 4 files changed, 65 insertions(+), 3 deletions(-)
 create mode 100644 recipes/iproute2/files/remove-bashisms.patch
recipes/iproute2/files/remove-bashisms.patch new file +59 -0
new file mode 100644
index 0000000..f90149a
@@ -0,0 +1,59 @@
+From ddf7948f9a088f26e7ed9ba01479029cd4e6f060 Mon Sep 17 00:00:00 2001
+From: Marc Olzheim <[email protected]>
+Date: Wed, 18 Nov 2009 10:43:53 +0100
+Subject: [PATCH] Get rid of bashisms.
+
+---
+ ip/ifcfg |   12 ++++++------
+ ip/rtpr  |    2 +-
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/ip/ifcfg b/ip/ifcfg
+index 083d9df..cd78d61 100644
+--- a/ip/ifcfg
++++ b/ip/ifcfg
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#! /bin/sh
+ 
+ CheckForwarding () {
+   local sbase fwd
+@@ -6,7 +6,7 @@ CheckForwarding () {
+   fwd=0
+   if [ -d $sbase ]; then
+     for dir in $sbase/*/forwarding; do
+-      fwd=$[$fwd + `cat $dir`]
++      fwd=$(($fwd + `cat $dir`))
+     done
+   else
+     fwd=2
+@@ -127,12 +127,12 @@ fi
+ arping -q -A -c 1 -I $dev $ipaddr
+ noarp=$?
+ ( sleep 2 ;
+-  arping -q -U -c 1 -I $dev $ipaddr ) >& /dev/null </dev/null &
++  arping -q -U -c 1 -I $dev $ipaddr ) >/dev/null 2>&1 </dev/null &
+ 
+-ip route add unreachable 224.0.0.0/24 >& /dev/null
+-ip route add unreachable 255.255.255.255 >& /dev/null
++ip route add unreachable 224.0.0.0/24 >/dev/null 2>&1
++ip route add unreachable 255.255.255.255 >/dev/null 2>&1
+ if [ `ip link ls $dev | grep -c MULTICAST` -ge 1 ]; then
+-  ip route add 224.0.0.0/4 dev $dev scope global >& /dev/null
++  ip route add 224.0.0.0/4 dev $dev scope global >/dev/null 2>&1
+ fi
+ 
+ if [ $fwd -eq 0 ]; then
+diff --git a/ip/rtpr b/ip/rtpr
+index c3629fd..674198d 100644
+--- a/ip/rtpr
++++ b/ip/rtpr
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#! /bin/sh
+ 
+ exec tr "[\\\\]" "[
+ ]"
+-- 
+1.6.3.3
+
recipes/iproute2/iproute2_2.6.20.bb +2 -1
index 2509f36..920e24d 100644
@@ -1,12 +1,13 @@
 require iproute2.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 DATE = "070313"
 
 SRC_URI_append = " file://iproute2-2.6.20_new-flex-fix.patch;patch=1 \
                    file://ip6tunnel.patch;patch=1 \
                    file://man-pages-fix.patch;patch=1 \
+                   file://remove-bashisms.patch;patch=1 \
                    file://no-strip.patch;patch=1"
 
 S = "${WORKDIR}/iproute-${PV}-${DATE}"
recipes/iproute2/iproute2_2.6.22.bb +2 -1
index fe13d6c..0904517 100644
@@ -1,11 +1,12 @@
 require iproute2.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 DATE = "070710"
 
 SRC_URI_append = " file://iproute2-2.6.20_new-flex-fix.patch;patch=1 \
                    file://ip6tunnel.patch;patch=1 \
+                   file://remove-bashisms.patch;patch=1 \
                    file://no-strip.patch;patch=1"
 
 S = "${WORKDIR}"
recipes/iproute2/iproute2_2.6.29.bb +2 -1
index 0554d6b..491f23c 100644
@@ -1,9 +1,10 @@
 require iproute2.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${P}.tar.bz2 \
 	   file://iproute2-2.6.20_new-flex-fix.patch;patch=1 \
+	   file://remove-bashisms.patch;patch=1 \
 	   file://missing_linux_ip_header.patch;patch=1 \
 	  "
 
Signature · 1 line
1.6.3.3
#4 lore raw
In reply to Marc Olzheim
Quoted 6 lines · Marc Olzheim

I noticed that iproute2 has a runtime dependency on bash in two of its scripts. Those dependencies are unneeded, so I removed them.

Before doing that though, I moved the recipes to INC_PR and changed the directory layout to prevent useless duplication of the patches in the directories.

For some reason the commit messages of patch 1 and 2 are not in the output of git send-email...

They were:

---
Move to INC_PR.
---

and

---
Move all patches to one directory to avoid duplication.
---

Marc