ifupdown: bump to 0.8.41
PATCH v2 1/1 ifupdown: bump to 0.8.41
From: Martin Hundeboll <[email protected]>
MUSL support is patched by defining FNM_EXTMATCH to zero, which omits GNU-only extended pattern matching.
---
Change since v1:
- Added patch to support MUSL without GNU extended pattern matching, instead of disabling MUSL support entirely.
...e-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch | 41 +++++++++++++++++++ package/ifupdown/ifupdown.hash | 4 +- package/ifupdown/ifupdown.mk | 5 ++- 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch
package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch new file +41 -0
@@ -0,0 +1,41 @@ +From e27fe4b483194ee57736c228b7a6c56696ae8a06 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 16 Mar 2023 09:29:20 +0100 +Subject: [PATCH] archcommon: define GNU-only FNM_EXTMATCH to zero on non-glibc +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +FNM_EXTMATCH is a GNU extension that enables extended pattern matching +for fnmatch(3). Defining it to zero on non-glibc builds makes ifupdown +usable, albeit with a sligthy reduced pattern matching feature set. + +Signed-off-by: Martin Hundebøll <[email protected]> +Upstream-status: Denied [https://salsa.debian.org/debian/ifupdown/-/merge_requests/5] +--- + archcommon.h | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/archcommon.h b/archcommon.h +index 818b0b6..981e84f 100644 +--- a/archcommon.h ++++ b/archcommon.h +@@ -1,5 +1,15 @@ + #include "header.h" + ++/* ++ * FNM_EXTMATCH is a GNU extension, so it isn't available when compiling ++ * with MUSL. Defining FNM_EXTMATCH to zero is safe, as the flag merely ++ * enables extended pattern matching, which MUSL users should be able to ++ * live without. ++ */ ++#ifndef FNM_EXTMATCH ++#define FNM_EXTMATCH 0 ++#endif ++ + bool execable(const char *); + + #define iface_is_link() (!_iface_has(ifd->real_iface, ":.")) +-- +2.39.2 +
package/ifupdown/ifupdown.hash +2 -2
@@ -1,4 +1,4 @@ -# From http://ftp.de.debian.org/debian/pool/main/i/ifupdown/ifupdown_0.8.16.dsc -sha256 601416c12e39ac29022951a2867aed5c607f732ac57fd51517bfba92a4cc4fb0 ifupdown_0.8.16.tar.xz +# From http://snapshot.debian.org/archive/debian/20230222T205615Z/pool/main/i/ifupdown/ifupdown_0.8.41.dsc +sha256 222c5bef313a9e71d9be4b946c73c8606c98f9e0229153191d9c6d8fb9b3599c ifupdown_0.8.41.tar.xz # Locally computed sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
package/ifupdown/ifupdown.mk +3 -2
@@ -4,9 +4,9 @@ # ################################################################################ -IFUPDOWN_VERSION = 0.8.16 +IFUPDOWN_VERSION = 0.8.41 IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz -IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160922T165503Z/pool/main/i/ifupdown +IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20230222T205615Z/pool/main/i/ifupdown IFUPDOWN_LICENSE = GPL-2.0+ IFUPDOWN_LICENSE_FILES = COPYING IFUPDOWN_CPE_ID_VENDOR = debian
@@ -14,6 +14,7 @@ IFUPDOWN_CPE_ID_VENDOR = debian define IFUPDOWN_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -D'IFUPDOWN_VERSION=\"$(IFUPDOWN_VERSION)\"'" \ + ARCH=linux \ -C $(@D) endef
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines · On Thu, 16 Mar 2023 10:45:15 +0100 Martin Hundebøll <[email protected]> wrote:
From: Martin Hundeboll <[email protected]>
MUSL support is patched by defining
FNM_EXTMATCHto zero, which omits GNU-only extended pattern matching.Signed-off-by Martin Hundebøll <[email protected]>
Thanks, I've applied. One comment below though.
package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch line 14
Quoted 2 lines
package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch new file +2
-0+Signed-off-by: Martin Hundebøll <[email protected]> +Upstream-status: Denied [https://salsa.debian.org/debian/ifupdown/-/merge_requests/5]
Isn't the feedback from upstream completely bogus here? They say "Note that this would only hide the problem by turning a build failure into a misbehaving program.", which I don't think is correct. Did you try to argue with them?
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines · Thomas Petazzoni
Quoted 3 lines
(quoted diff) +2
-0+Signed-off-by: Martin Hundebøll <[email protected]> +Upstream-status: Denied[https://salsa.debian.org/debian/ifupdown/-/merge_requests/5]
Isn't the feedback from upstream completely bogus here? They say "Note
that this would only hide the problem by turning a build failure into a
misbehaving program.", which I don't think is correct. Did you try to argue with them?
No, I did not.
I'll give it a shot next week!
// Martin
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot