mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
ifupdown: update to 0.8.22
(From OE-Core rev: 57e472c2c86cf23732cd7babc48beeef07b0882d) Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a02eab8d89
commit
9431fb44bd
@@ -0,0 +1,47 @@
|
|||||||
|
From ff714d6461569d69b253089110ec659e4ebec248 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
|
||||||
|
Date: Tue, 2 Jul 2019 20:10:42 +0200
|
||||||
|
Subject: [PATCH] Define FNM_EXTMATCH for musl
|
||||||
|
|
||||||
|
Fixes the following compilation errors with musl that does not have
|
||||||
|
FNM_EXTMATCH defined:
|
||||||
|
|
||||||
|
| main.c: In function 'expand_matches':
|
||||||
|
| main.c:700:40: error: 'FNM_EXTMATCH' undeclared (first use in this
|
||||||
|
function); did you mean 'FNM_NOMATCH'?
|
||||||
|
| 700 | if(fnmatch(pattern, ifa->ifa_name, FNM_EXTMATCH))
|
||||||
|
| | ^~~~~~~~~~~~
|
||||||
|
| | FNM_NOMATCH
|
||||||
|
|
||||||
|
and
|
||||||
|
|
||||||
|
| archlinux.c:40:28: error: 'FNM_EXTMATCH' undeclared (first use in this
|
||||||
|
function); did you mean 'FNM_NOMATCH'?
|
||||||
|
| 40 | if(fnmatch(pattern, buf, FNM_EXTMATCH) == 0) {
|
||||||
|
| | ^~~~~~~~~~~~
|
||||||
|
| | FNM_NOMATCH
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://salsa.debian.org/debian/ifupdown/merge_requests/5]
|
||||||
|
|
||||||
|
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
|
||||||
|
---
|
||||||
|
archcommon.h | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/archcommon.h b/archcommon.h
|
||||||
|
index fe99950..f257f9d 100644
|
||||||
|
--- a/archcommon.h
|
||||||
|
+++ b/archcommon.h
|
||||||
|
@@ -1,5 +1,9 @@
|
||||||
|
#include "header.h"
|
||||||
|
|
||||||
|
+#if !defined(FNM_EXTMATCH)
|
||||||
|
+#define FNM_EXTMATCH 0
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
bool execable(const char *);
|
||||||
|
|
||||||
|
#define iface_is_link() (!_iface_has(ifd->real_iface, ":."))
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
From 7af9db748974cb3a2c6ef8f9e03d7db1f9f8ee16 Mon Sep 17 00:00:00 2001
|
From 40257d65b338b6e2ed9d89d6fa7c7b8701a4c311 Mon Sep 17 00:00:00 2001
|
||||||
From: Paul Gortmaker <paul.gortmaker@windriver.com>
|
From: Paul Gortmaker <paul.gortmaker@windriver.com>
|
||||||
Date: Wed, 6 Aug 2014 14:54:12 -0400
|
Date: Wed, 6 Aug 2014 14:54:12 -0400
|
||||||
Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch
|
Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch
|
||||||
@@ -19,7 +19,7 @@ Upstream-Status: Pending
|
|||||||
2 files changed, 6 insertions(+), 6 deletions(-)
|
2 files changed, 6 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
diff --git a/defn2c.pl b/defn2c.pl
|
diff --git a/defn2c.pl b/defn2c.pl
|
||||||
index c449de2f3d1c..38845e374c76 100755
|
index 8798dc2..f2551c7 100755
|
||||||
--- a/defn2c.pl
|
--- a/defn2c.pl
|
||||||
+++ b/defn2c.pl
|
+++ b/defn2c.pl
|
||||||
@@ -2,9 +2,9 @@
|
@@ -2,9 +2,9 @@
|
||||||
@@ -36,7 +36,7 @@ index c449de2f3d1c..38845e374c76 100755
|
|||||||
# declarations
|
# declarations
|
||||||
my $address_family = "";
|
my $address_family = "";
|
||||||
diff --git a/defn2man.pl b/defn2man.pl
|
diff --git a/defn2man.pl b/defn2man.pl
|
||||||
index 6ddcfdd4fe68..c9c4dd046597 100755
|
index 6ddcfdd..c9c4dd0 100755
|
||||||
--- a/defn2man.pl
|
--- a/defn2man.pl
|
||||||
+++ b/defn2man.pl
|
+++ b/defn2man.pl
|
||||||
@@ -2,9 +2,9 @@
|
@@ -2,9 +2,9 @@
|
||||||
@@ -53,5 +53,5 @@ index 6ddcfdd4fe68..c9c4dd046597 100755
|
|||||||
# declarations
|
# declarations
|
||||||
my $line;
|
my $line;
|
||||||
--
|
--
|
||||||
1.9.1
|
2.17.1
|
||||||
|
|
||||||
|
|||||||
+21
-24
@@ -1,7 +1,7 @@
|
|||||||
From 7efe4676747e4e4a056b9bfb4e9424c8354e9996 Mon Sep 17 00:00:00 2001
|
From 6fce99c9e42cbacde1855473b745ca1fded3fbf7 Mon Sep 17 00:00:00 2001
|
||||||
From: "Maxin B. John" <maxin.john@intel.com>
|
From: "Maxin B. John" <maxin.john@intel.com>
|
||||||
Date: Wed, 21 Dec 2016 15:32:07 +0200
|
Date: Wed, 21 Dec 2016 15:32:07 +0200
|
||||||
Subject: [PATCH] inet[6].defn: fix inverted checks for loopback
|
Subject: [PATCH 2/2] inet[6].defn: fix inverted checks for loopback
|
||||||
|
|
||||||
Compared to the hurd link.defn for loopback, we see these
|
Compared to the hurd link.defn for loopback, we see these
|
||||||
are inverted, meaning that you would only be able to configure
|
are inverted, meaning that you would only be able to configure
|
||||||
@@ -37,11 +37,11 @@ Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
|
|||||||
Signed-off-by: Maxin B. John <maxin.john@intel.com>
|
Signed-off-by: Maxin B. John <maxin.john@intel.com>
|
||||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||||
---
|
---
|
||||||
inet.defn | 140 +++++++++++++++++++++++++++++++-------------------------------
|
inet.defn | 134 +++++++++++++++++++++++++++---------------------------
|
||||||
1 file changed, 70 insertions(+), 70 deletions(-)
|
1 file changed, 67 insertions(+), 67 deletions(-)
|
||||||
|
|
||||||
diff --git a/inet.defn b/inet.defn
|
diff --git a/inet.defn b/inet.defn
|
||||||
index 75e6744..23c7756 100644
|
index 182b56b..31067bc 100644
|
||||||
--- a/inet.defn
|
--- a/inet.defn
|
||||||
+++ b/inet.defn
|
+++ b/inet.defn
|
||||||
@@ -6,10 +6,10 @@ method loopback
|
@@ -6,10 +6,10 @@ method loopback
|
||||||
@@ -103,9 +103,9 @@ index 75e6744..23c7756 100644
|
|||||||
|
|
||||||
up
|
up
|
||||||
- [[/bin/ip link set dev %iface% address %hwaddress%]]
|
- [[/bin/ip link set dev %iface% address %hwaddress%]]
|
||||||
- /sbin/dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
- /sbin/dhclient -4 -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
+ [[ip link set dev %iface% address %hwaddress%]]
|
+ [[ip link set dev %iface% address %hwaddress%]]
|
||||||
+ dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
+ dhclient -4 -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
[[-e IF_METRIC=%metric%]] \
|
[[-e IF_METRIC=%metric%]] \
|
||||||
if (execable("/sbin/dhclient"))
|
if (execable("/sbin/dhclient"))
|
||||||
- /sbin/pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \
|
- /sbin/pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \
|
||||||
@@ -122,14 +122,13 @@ index 75e6744..23c7756 100644
|
|||||||
elsif (1)
|
elsif (1)
|
||||||
|
|
||||||
down
|
down
|
||||||
- /sbin/dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
- /sbin/dhclient -4 -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
+ dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
+ dhclient -4 -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
if (execable("/sbin/dhclient"))
|
if (execable("/sbin/dhclient"))
|
||||||
- /sbin/pump -i %iface% -r \
|
- /sbin/pump -i %iface% -r \
|
||||||
+ pump -i %iface% -r \
|
+ pump -i %iface% -r \
|
||||||
elsif (execable("/sbin/pump"))
|
elsif (execable("/sbin/pump"))
|
||||||
- if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(/bin/cat /run/udhcpc.%iface%.pid); kill -TERM $(/bin/cat /run/udhcpc.%iface%.pid); fi \
|
if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(/bin/cat /run/udhcpc.%iface%.pid); kill -TERM $(/bin/cat /run/udhcpc.%iface%.pid); fi \
|
||||||
+ if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(cat /run/udhcpc.%iface%.pid); kill -TERM $(cat /run/udhcpc.%iface%.pid); fi \
|
|
||||||
elsif (execable("/sbin/udhcpc"))
|
elsif (execable("/sbin/udhcpc"))
|
||||||
- /sbin/dhcpcd -k %iface% \
|
- /sbin/dhcpcd -k %iface% \
|
||||||
+ dhcpcd -k %iface% \
|
+ dhcpcd -k %iface% \
|
||||||
@@ -252,9 +251,9 @@ index 75e6744..23c7756 100644
|
|||||||
|
|
||||||
up
|
up
|
||||||
- [[/sbin/ifconfig %iface% link %hwaddress%]]
|
- [[/sbin/ifconfig %iface% link %hwaddress%]]
|
||||||
- /sbin/dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
- /sbin/dhclient -4 -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
+ [[ifconfig %iface% link %hwaddress%]]
|
+ [[ifconfig %iface% link %hwaddress%]]
|
||||||
+ dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
+ dhclient -4 -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
[[-e IF_METRIC=%metric%]] \
|
[[-e IF_METRIC=%metric%]] \
|
||||||
if (execable("/sbin/dhclient"))
|
if (execable("/sbin/dhclient"))
|
||||||
- /sbin/udhcpc -n -p /run/udhcpc.%iface%.pid -i %iface% [[-H %hostname%]] \
|
- /sbin/udhcpc -n -p /run/udhcpc.%iface%.pid -i %iface% [[-H %hostname%]] \
|
||||||
@@ -269,11 +268,10 @@ index 75e6744..23c7756 100644
|
|||||||
elsif (1)
|
elsif (1)
|
||||||
|
|
||||||
down
|
down
|
||||||
- /sbin/dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
- /sbin/dhclient -4 -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
+ dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
+ dhclient -4 -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
|
||||||
if (execable("/sbin/dhclient"))
|
if (execable("/sbin/dhclient"))
|
||||||
- if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(/bin/cat /run/udhcpc.%iface%.pid); kill -TERM $(/bin/cat /run/udhcpc.%iface%.pid); fi \
|
if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(/bin/cat /run/udhcpc.%iface%.pid); kill -TERM $(/bin/cat /run/udhcpc.%iface%.pid); fi \
|
||||||
+ if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(cat /run/udhcpc.%iface%.pid); kill -TERM $(cat /run/udhcpc.%iface%.pid); fi \
|
|
||||||
elsif (execable("/sbin/udhcpc"))
|
elsif (execable("/sbin/udhcpc"))
|
||||||
- /sbin/dhcpcd -k %iface% \
|
- /sbin/dhcpcd -k %iface% \
|
||||||
+ dhcpcd -k %iface% \
|
+ dhcpcd -k %iface% \
|
||||||
@@ -341,8 +339,8 @@ index 75e6744..23c7756 100644
|
|||||||
|
|
||||||
up
|
up
|
||||||
[[Warning: Option hwaddress: %hwaddress% not yet supported]]
|
[[Warning: Option hwaddress: %hwaddress% not yet supported]]
|
||||||
- /sbin/dhclient -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
- /sbin/dhclient -4 -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
||||||
+ dhclient -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
+ dhclient -4 -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
||||||
if (execable("/sbin/dhclient"))
|
if (execable("/sbin/dhclient"))
|
||||||
- /sbin/udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
|
- /sbin/udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
|
||||||
+ udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
|
+ udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
|
||||||
@@ -356,11 +354,10 @@ index 75e6744..23c7756 100644
|
|||||||
elsif (1)
|
elsif (1)
|
||||||
|
|
||||||
down
|
down
|
||||||
- /sbin/dhclient -v -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
- /sbin/dhclient -4 -v -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
||||||
+ dhclient -v -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
+ dhclient -4 -v -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
|
||||||
if (execable("/sbin/dhclient"))
|
if (execable("/sbin/dhclient"))
|
||||||
- if test -f /run/udhcpc.%iface///.%.pid; then kill -USR2 $(/bin/cat /run/udhcpc.%iface///.%.pid); kill -TERM $(/bin/cat /run/udhcpc.%iface///.%.pid); fi \
|
if test -f /run/udhcpc.%iface///.%.pid; then kill -USR2 $(/bin/cat /run/udhcpc.%iface///.%.pid); kill -TERM $(/bin/cat /run/udhcpc.%iface///.%.pid); fi \
|
||||||
+ if test -f /run/udhcpc.%iface///.%.pid; then kill -USR2 $(cat /run/udhcpc.%iface///.%.pid); kill -TERM $(cat /run/udhcpc.%iface///.%.pid); fi \
|
|
||||||
elsif (execable("/sbin/udhcpc"))
|
elsif (execable("/sbin/udhcpc"))
|
||||||
- /sbin/dhcpcd -k %iface% \
|
- /sbin/dhcpcd -k %iface% \
|
||||||
+ dhcpcd -k %iface% \
|
+ dhcpcd -k %iface% \
|
||||||
@@ -402,5 +399,5 @@ index 75e6744..23c7756 100644
|
|||||||
- /usr/sbin/avahi-autoipd --kill %iface%
|
- /usr/sbin/avahi-autoipd --kill %iface%
|
||||||
+ avahi-autoipd --kill %iface%
|
+ avahi-autoipd --kill %iface%
|
||||||
--
|
--
|
||||||
2.7.4
|
2.17.1
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -10,8 +10,9 @@ SRC_URI = "git://salsa.debian.org/debian/ifupdown.git;protocol=https \
|
|||||||
file://defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch \
|
file://defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch \
|
||||||
file://inet-6-.defn-fix-inverted-checks-for-loopback.patch \
|
file://inet-6-.defn-fix-inverted-checks-for-loopback.patch \
|
||||||
file://99_network \
|
file://99_network \
|
||||||
|
file://0001-Define-FNM_EXTMATCH-for-musl.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "11b9f99f7ecc7052497e6786156cfed531f11823"
|
SRCREV = "ab5a0f464e53e172316a5ca8b5dcdc49e8848999"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
Reference in New Issue
Block a user