* [Buildroot] [PATCHv2] ifupdown: bump to 0.8.41
@ 2023-03-16 9:45 Martin Hundebøll
2023-03-19 16:43 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Martin Hundebøll @ 2023-03-16 9:45 UTC (permalink / raw)
To: Thomas Petazzoni, buildroot; +Cc: Martin Hundeboll
From: Martin Hundeboll <martin@geanix.com>
MUSL support is patched by defining FNM_EXTMATCH to zero, which omits
GNU-only extended pattern matching.
Signed-off-by: Martin Hundebøll <martin@geanix.com>
---
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
diff --git a/package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch b/package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch
new file mode 100644
index 0000000000..b1b58f1e7e
--- /dev/null
+++ b/package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch
@@ -0,0 +1,41 @@
+From e27fe4b483194ee57736c228b7a6c56696ae8a06 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <martin@geanix.com>
+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 <martin@geanix.com>
+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
+
diff --git a/package/ifupdown/ifupdown.hash b/package/ifupdown/ifupdown.hash
index f8844a60a6..f5c2d2d34c 100644
--- a/package/ifupdown/ifupdown.hash
+++ b/package/ifupdown/ifupdown.hash
@@ -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
diff --git a/package/ifupdown/ifupdown.mk b/package/ifupdown/ifupdown.mk
index e62c2a79c5..14c36db0db 100644
--- a/package/ifupdown/ifupdown.mk
+++ b/package/ifupdown/ifupdown.mk
@@ -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
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCHv2] ifupdown: bump to 0.8.41
2023-03-16 9:45 [Buildroot] [PATCHv2] ifupdown: bump to 0.8.41 Martin Hundebøll
@ 2023-03-19 16:43 ` Thomas Petazzoni via buildroot
2023-03-19 17:21 ` Martin Hundebøll
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-19 16:43 UTC (permalink / raw)
To: Martin Hundebøll; +Cc: buildroot
On Thu, 16 Mar 2023 10:45:15 +0100
Martin Hundebøll <martin@geanix.com> wrote:
> From: Martin Hundeboll <martin@geanix.com>
>
> MUSL support is patched by defining FNM_EXTMATCH to zero, which omits
> GNU-only extended pattern matching.
>
> Signed-off-by: Martin Hundebøll <martin@geanix.com>
Thanks, I've applied. One comment below though.
> +Signed-off-by: Martin Hundebøll <martin@geanix.com>
> +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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCHv2] ifupdown: bump to 0.8.41
2023-03-19 16:43 ` Thomas Petazzoni via buildroot
@ 2023-03-19 17:21 ` Martin Hundebøll
0 siblings, 0 replies; 3+ messages in thread
From: Martin Hundebøll @ 2023-03-19 17:21 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
On Sun, 2023-03-19 at 17:43 +0100, Thomas Petazzoni wrote:
> > +Signed-off-by: Martin Hundebøll <martin@geanix.com>
> > +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
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-19 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 9:45 [Buildroot] [PATCHv2] ifupdown: bump to 0.8.41 Martin Hundebøll
2023-03-19 16:43 ` Thomas Petazzoni via buildroot
2023-03-19 17:21 ` Martin Hundebøll
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).