Skip to contentSkip to conversation

ifupdown: bump to version 0.8.8

PATCH New Gustavo Zacarias 3 participants 5 messages Jan 21, 2016 – Feb 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ifupdown: bump to version 0.8.8

Also add a kludge switching the explicit invocation of the ip binary from /bin to /sbin since that's where buildroot installs it.

---
 package/ifupdown/ifupdown.hash |  4 ++--
 package/ifupdown/ifupdown.mk   | 13 +++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)
package/ifupdown/ifupdown.hash +2 -2
index 02dfd2b..c5a4189 100644
@@ -1,2 +1,2 @@
-# From http://ftp.de.debian.org/debian/pool/main/i/ifupdown/ifupdown_0.8.2.dsc
-sha256	edb08f935fea9bc376c3faa0140c04c7a4d4ef5f22fd280ec4060386a75df10b	ifupdown_0.8.2.tar.xz
+# From http://ftp.de.debian.org/debian/pool/main/i/ifupdown/ifupdown_0.8.8.dsc
+sha256	180edaaa6de99e4e74de7229481edf74361b8e8468462842618a42a952a26c0e	ifupdown_0.8.8.tar.xz
package/ifupdown/ifupdown.mk +11 -2
index 7fbd003..37aaf5d 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-IFUPDOWN_VERSION = 0.8.2
+IFUPDOWN_VERSION = 0.8.8
 IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz
-IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20151205T042642Z/pool/main/i/ifupdown
+IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160113T035819Z/pool/main/i/ifupdown
 IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
 IFUPDOWN_LICENSE = GPLv2+
 IFUPDOWN_LICENSE_FILES = COPYING
@@ -23,4 +23,13 @@ define IFUPDOWN_INSTALL_TARGET_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) BASEDIR=$(TARGET_DIR) -C $(@D) install
 endef
 
+# We need to switch from /bin/ip to /sbin/ip
+IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta
+define IFUPDOWN_MAKE_IP_IN_SBIN
+	for f in $(IFUPDOWN_DEFN_FILES) ; do \
+		$(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \
+	done
+endef
+IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN
+
 $(eval $(generic-package))
Signature · 1 line
2.4.10
#1 lore raw

PATCH 1/1 ifupdown: bump to version 0.8.8

Gustavo,

Quoted 10 lines · Gustavo Zacarias
package/ifupdown/ifupdown.mk +2 -2
-IFUPDOWN_VERSION = 0.8.2
+IFUPDOWN_VERSION = 0.8.8
 IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz
-IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20151205T042642Z/pool/main/i/ifupdown
+IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160113T035819Z/pool/main/i/ifupdown
 IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
 IFUPDOWN_LICENSE = GPLv2+
 IFUPDOWN_LICENSE_FILES = COPYING
@@ -23,4 +23,13 @@ define IFUPDOWN_INSTALL_TARGET_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) BASEDIR=$(TARGET_DIR) -C $(@D) install

package/ifupdown/ifupdown.mk define IFUPDOWN_INSTALL_TARGET_CMDS · line 33

Quoted 10 lines
package/ifupdown/ifupdown.mk +8 -0
 endef
 
+# We need to switch from /bin/ip to /sbin/ip
+IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta
+define IFUPDOWN_MAKE_IP_IN_SBIN
+	for f in $(IFUPDOWN_DEFN_FILES) ; do \
+		$(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \
+	done
+endef
+IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN

For this kind of things, I think my personal preference would be to have a real patch rather than a post patch hook.

Peter ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 ifupdown: bump to version 0.8.8

Quoted 12 lines · Thomas Petazzoni

package/ifupdown/ifupdown.mk define IFUPDOWN_INSTALL_TARGET_CMDS · line 33

Quoted 8 lines
package/ifupdown/ifupdown.mk +8 -0
+# We need to switch from /bin/ip to /sbin/ip
+IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta
+define IFUPDOWN_MAKE_IP_IN_SBIN
+	for f in $(IFUPDOWN_DEFN_FILES) ; do \
+		$(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \
+	done
+endef
+IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN

For this kind of things, I think my personal preference would be to have a real patch rather than a post patch hook.

Quoted 3 lines

Peter ?

Thomas

Hi Thomas.

$ grep /bin/ip *.defn|wc -l
56

Patch would be bigger, and maybe not too version-portable.

Regards.

#3 lore raw

PATCH 1/1 ifupdown: bump to version 0.8.8

In reply to Thomas Petazzoni
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Gustavo,

Quoted 12 lines · Gustavo Zacarias
package/ifupdown/ifupdown.mk +1 -1
-IFUPDOWN_VERSION = 0.8.2
+IFUPDOWN_VERSION = 0.8.8

IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz

package/ifupdown/ifupdown.mk +1 -1
-IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20151205T042642Z/pool/main/i/ifupdown
+IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160113T035819Z/pool/main/i/ifupdown

IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) IFUPDOWN_LICENSE = GPLv2+
IFUPDOWN_LICENSE_FILES = COPYING

(quoted diff) +0 -0
@@ -23,4 +23,13 @@ define IFUPDOWN_INSTALL_TARGET_CMDS

$(TARGET_MAKE_ENV) $(MAKE) BASEDIR=$(TARGET_DIR) -C $(@D) install endef

Quoted 11 lines

package/ifupdown/ifupdown.mk define IFUPDOWN_INSTALL_TARGET_CMDS · line 33

Quoted 8 lines
package/ifupdown/ifupdown.mk +8 -0
+# We need to switch from /bin/ip to /sbin/ip
+IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta
+define IFUPDOWN_MAKE_IP_IN_SBIN
+	for f in $(IFUPDOWN_DEFN_FILES) ; do \
+		$(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \
+	done
+endef
+IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN

For this kind of things, I think my personal preference would be to have a real patch rather than a post patch hook.

I also generally dislike the combination of patches AND sed replacements, but like Gustavoz says it's a bit painful to patch as there's so many instances of it.

And I guess we won't be able to upstream such as patch as Debian has /bin/ip (and a /sbin/ip symlink) because of bug reports like this:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=134812

And if busybox would change to /bin/ip, a bunch of scripts would probably break, so that's not going to happen either.

So I'm not sure what the best option really is :/ Perhaps just the sed.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#4 lore raw

PATCH 1/1 ifupdown: bump to version 0.8.8

In reply to Gustavo Zacarias

Dear Gustavo Zacarias,

Quoted 8 lines · Gustavo Zacarias

Also add a kludge switching the explicit invocation of the ip binary from /bin to /sbin since that's where buildroot installs it.

---
 package/ifupdown/ifupdown.hash |  4 ++--
 package/ifupdown/ifupdown.mk   | 13 +++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com