summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ifupdown
diff options
context:
space:
mode:
authorOleksandr Kravchuk <open.source@oleksandr-kravchuk.com>2019-07-02 22:29:09 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-03 17:00:57 +0100
commit9431fb44bdcbcbb242b29a34bb851da73f90dc0f (patch)
tree05db4777d1813bfa2c7abb2f7a2d7e6a2cc0999e /meta/recipes-core/ifupdown
parenta02eab8d89e68e1bb5d89c85c1d1d9e12ed0e51c (diff)
downloadpoky-9431fb44bdcbcbb242b29a34bb851da73f90dc0f.tar.gz
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>
Diffstat (limited to 'meta/recipes-core/ifupdown')
-rw-r--r--meta/recipes-core/ifupdown/files/0001-Define-FNM_EXTMATCH-for-musl.patch47
-rw-r--r--meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch8
-rw-r--r--meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch45
-rw-r--r--meta/recipes-core/ifupdown/ifupdown_0.8.22.bb (renamed from meta/recipes-core/ifupdown/ifupdown_0.8.16.bb)3
4 files changed, 74 insertions, 29 deletions
diff --git a/meta/recipes-core/ifupdown/files/0001-Define-FNM_EXTMATCH-for-musl.patch b/meta/recipes-core/ifupdown/files/0001-Define-FNM_EXTMATCH-for-musl.patch
new file mode 100644
index 0000000000..7bf02ea536
--- /dev/null
+++ b/meta/recipes-core/ifupdown/files/0001-Define-FNM_EXTMATCH-for-musl.patch
@@ -0,0 +1,47 @@
1From ff714d6461569d69b253089110ec659e4ebec248 Mon Sep 17 00:00:00 2001
2From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
3Date: Tue, 2 Jul 2019 20:10:42 +0200
4Subject: [PATCH] Define FNM_EXTMATCH for musl
5
6Fixes the following compilation errors with musl that does not have
7FNM_EXTMATCH defined:
8
9| main.c: In function 'expand_matches':
10| main.c:700:40: error: 'FNM_EXTMATCH' undeclared (first use in this
11function); did you mean 'FNM_NOMATCH'?
12| 700 | if(fnmatch(pattern, ifa->ifa_name, FNM_EXTMATCH))
13| | ^~~~~~~~~~~~
14| | FNM_NOMATCH
15
16and
17
18| archlinux.c:40:28: error: 'FNM_EXTMATCH' undeclared (first use in this
19function); did you mean 'FNM_NOMATCH'?
20| 40 | if(fnmatch(pattern, buf, FNM_EXTMATCH) == 0) {
21| | ^~~~~~~~~~~~
22| | FNM_NOMATCH
23
24Upstream-Status: Submitted [https://salsa.debian.org/debian/ifupdown/merge_requests/5]
25
26Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
27---
28 archcommon.h | 4 ++++
29 1 file changed, 4 insertions(+)
30
31diff --git a/archcommon.h b/archcommon.h
32index fe99950..f257f9d 100644
33--- a/archcommon.h
34+++ b/archcommon.h
35@@ -1,5 +1,9 @@
36 #include "header.h"
37
38+#if !defined(FNM_EXTMATCH)
39+#define FNM_EXTMATCH 0
40+#endif
41+
42 bool execable(const char *);
43
44 #define iface_is_link() (!_iface_has(ifd->real_iface, ":."))
45--
462.17.1
47
diff --git a/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch b/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch
index a24b8cda66..d1c3d260ed 100644
--- a/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch
+++ b/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch
@@ -1,4 +1,4 @@
1From 7af9db748974cb3a2c6ef8f9e03d7db1f9f8ee16 Mon Sep 17 00:00:00 2001 1From 40257d65b338b6e2ed9d89d6fa7c7b8701a4c311 Mon Sep 17 00:00:00 2001
2From: Paul Gortmaker <paul.gortmaker@windriver.com> 2From: Paul Gortmaker <paul.gortmaker@windriver.com>
3Date: Wed, 6 Aug 2014 14:54:12 -0400 3Date: Wed, 6 Aug 2014 14:54:12 -0400
4Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch 4Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch
@@ -19,7 +19,7 @@ Upstream-Status: Pending
19 2 files changed, 6 insertions(+), 6 deletions(-) 19 2 files changed, 6 insertions(+), 6 deletions(-)
20 20
21diff --git a/defn2c.pl b/defn2c.pl 21diff --git a/defn2c.pl b/defn2c.pl
22index c449de2f3d1c..38845e374c76 100755 22index 8798dc2..f2551c7 100755
23--- a/defn2c.pl 23--- a/defn2c.pl
24+++ b/defn2c.pl 24+++ b/defn2c.pl
25@@ -2,9 +2,9 @@ 25@@ -2,9 +2,9 @@
@@ -36,7 +36,7 @@ index c449de2f3d1c..38845e374c76 100755
36 # declarations 36 # declarations
37 my $address_family = ""; 37 my $address_family = "";
38diff --git a/defn2man.pl b/defn2man.pl 38diff --git a/defn2man.pl b/defn2man.pl
39index 6ddcfdd4fe68..c9c4dd046597 100755 39index 6ddcfdd..c9c4dd0 100755
40--- a/defn2man.pl 40--- a/defn2man.pl
41+++ b/defn2man.pl 41+++ b/defn2man.pl
42@@ -2,9 +2,9 @@ 42@@ -2,9 +2,9 @@
@@ -53,5 +53,5 @@ index 6ddcfdd4fe68..c9c4dd046597 100755
53 # declarations 53 # declarations
54 my $line; 54 my $line;
55-- 55--
561.9.1 562.17.1
57 57
diff --git a/meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch b/meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch
index 37a61c9bc1..5b0d51d736 100644
--- a/meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch
+++ b/meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch
@@ -1,7 +1,7 @@
1From 7efe4676747e4e4a056b9bfb4e9424c8354e9996 Mon Sep 17 00:00:00 2001 1From 6fce99c9e42cbacde1855473b745ca1fded3fbf7 Mon Sep 17 00:00:00 2001
2From: "Maxin B. John" <maxin.john@intel.com> 2From: "Maxin B. John" <maxin.john@intel.com>
3Date: Wed, 21 Dec 2016 15:32:07 +0200 3Date: Wed, 21 Dec 2016 15:32:07 +0200
4Subject: [PATCH] inet[6].defn: fix inverted checks for loopback 4Subject: [PATCH 2/2] inet[6].defn: fix inverted checks for loopback
5 5
6Compared to the hurd link.defn for loopback, we see these 6Compared to the hurd link.defn for loopback, we see these
7are inverted, meaning that you would only be able to configure 7are inverted, meaning that you would only be able to configure
@@ -37,11 +37,11 @@ Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
37Signed-off-by: Maxin B. John <maxin.john@intel.com> 37Signed-off-by: Maxin B. John <maxin.john@intel.com>
38Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 38Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
39--- 39---
40 inet.defn | 140 +++++++++++++++++++++++++++++++------------------------------- 40 inet.defn | 134 +++++++++++++++++++++++++++---------------------------
41 1 file changed, 70 insertions(+), 70 deletions(-) 41 1 file changed, 67 insertions(+), 67 deletions(-)
42 42
43diff --git a/inet.defn b/inet.defn 43diff --git a/inet.defn b/inet.defn
44index 75e6744..23c7756 100644 44index 182b56b..31067bc 100644
45--- a/inet.defn 45--- a/inet.defn
46+++ b/inet.defn 46+++ b/inet.defn
47@@ -6,10 +6,10 @@ method loopback 47@@ -6,10 +6,10 @@ method loopback
@@ -103,9 +103,9 @@ index 75e6744..23c7756 100644
103 103
104 up 104 up
105- [[/bin/ip link set dev %iface% address %hwaddress%]] 105- [[/bin/ip link set dev %iface% address %hwaddress%]]
106- /sbin/dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \ 106- /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% \
107+ [[ip link set dev %iface% address %hwaddress%]] 107+ [[ip link set dev %iface% address %hwaddress%]]
108+ dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \ 108+ dhclient -4 -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
109 [[-e IF_METRIC=%metric%]] \ 109 [[-e IF_METRIC=%metric%]] \
110 if (execable("/sbin/dhclient")) 110 if (execable("/sbin/dhclient"))
111- /sbin/pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \ 111- /sbin/pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \
@@ -122,14 +122,13 @@ index 75e6744..23c7756 100644
122 elsif (1) 122 elsif (1)
123 123
124 down 124 down
125- /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% \ 125- /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% \
126+ dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \ 126+ 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% \
127 if (execable("/sbin/dhclient")) 127 if (execable("/sbin/dhclient"))
128- /sbin/pump -i %iface% -r \ 128- /sbin/pump -i %iface% -r \
129+ pump -i %iface% -r \ 129+ pump -i %iface% -r \
130 elsif (execable("/sbin/pump")) 130 elsif (execable("/sbin/pump"))
131- 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 \ 131 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 \
132+ if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(cat /run/udhcpc.%iface%.pid); kill -TERM $(cat /run/udhcpc.%iface%.pid); fi \
133 elsif (execable("/sbin/udhcpc")) 132 elsif (execable("/sbin/udhcpc"))
134- /sbin/dhcpcd -k %iface% \ 133- /sbin/dhcpcd -k %iface% \
135+ dhcpcd -k %iface% \ 134+ dhcpcd -k %iface% \
@@ -252,9 +251,9 @@ index 75e6744..23c7756 100644
252 251
253 up 252 up
254- [[/sbin/ifconfig %iface% link %hwaddress%]] 253- [[/sbin/ifconfig %iface% link %hwaddress%]]
255- /sbin/dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \ 254- /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% \
256+ [[ifconfig %iface% link %hwaddress%]] 255+ [[ifconfig %iface% link %hwaddress%]]
257+ dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \ 256+ dhclient -4 -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
258 [[-e IF_METRIC=%metric%]] \ 257 [[-e IF_METRIC=%metric%]] \
259 if (execable("/sbin/dhclient")) 258 if (execable("/sbin/dhclient"))
260- /sbin/udhcpc -n -p /run/udhcpc.%iface%.pid -i %iface% [[-H %hostname%]] \ 259- /sbin/udhcpc -n -p /run/udhcpc.%iface%.pid -i %iface% [[-H %hostname%]] \
@@ -269,11 +268,10 @@ index 75e6744..23c7756 100644
269 elsif (1) 268 elsif (1)
270 269
271 down 270 down
272- /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% \ 271- /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% \
273+ dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases -I -df /var/lib/dhcp/dhclient6.%iface%.leases %iface% \ 272+ 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% \
274 if (execable("/sbin/dhclient")) 273 if (execable("/sbin/dhclient"))
275- 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 \ 274 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 \
276+ if test -f /run/udhcpc.%iface%.pid; then kill -USR2 $(cat /run/udhcpc.%iface%.pid); kill -TERM $(cat /run/udhcpc.%iface%.pid); fi \
277 elsif (execable("/sbin/udhcpc")) 275 elsif (execable("/sbin/udhcpc"))
278- /sbin/dhcpcd -k %iface% \ 276- /sbin/dhcpcd -k %iface% \
279+ dhcpcd -k %iface% \ 277+ dhcpcd -k %iface% \
@@ -341,8 +339,8 @@ index 75e6744..23c7756 100644
341 339
342 up 340 up
343 [[Warning: Option hwaddress: %hwaddress% not yet supported]] 341 [[Warning: Option hwaddress: %hwaddress% not yet supported]]
344- /sbin/dhclient -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \ 342- /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% \
345+ dhclient -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \ 343+ dhclient -4 -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \
346 if (execable("/sbin/dhclient")) 344 if (execable("/sbin/dhclient"))
347- /sbin/udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \ 345- /sbin/udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
348+ udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \ 346+ udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
@@ -356,11 +354,10 @@ index 75e6744..23c7756 100644
356 elsif (1) 354 elsif (1)
357 355
358 down 356 down
359- /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% \ 357- /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% \
360+ dhclient -v -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases -I -df /var/lib/dhcp/dhclient6.%iface///.%.leases %iface% \ 358+ 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% \
361 if (execable("/sbin/dhclient")) 359 if (execable("/sbin/dhclient"))
362- 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 \ 360 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 \
363+ if test -f /run/udhcpc.%iface///.%.pid; then kill -USR2 $(cat /run/udhcpc.%iface///.%.pid); kill -TERM $(cat /run/udhcpc.%iface///.%.pid); fi \
364 elsif (execable("/sbin/udhcpc")) 361 elsif (execable("/sbin/udhcpc"))
365- /sbin/dhcpcd -k %iface% \ 362- /sbin/dhcpcd -k %iface% \
366+ dhcpcd -k %iface% \ 363+ dhcpcd -k %iface% \
@@ -402,5 +399,5 @@ index 75e6744..23c7756 100644
402- /usr/sbin/avahi-autoipd --kill %iface% 399- /usr/sbin/avahi-autoipd --kill %iface%
403+ avahi-autoipd --kill %iface% 400+ avahi-autoipd --kill %iface%
404-- 401--
4052.7.4 4022.17.1
406 403
diff --git a/meta/recipes-core/ifupdown/ifupdown_0.8.16.bb b/meta/recipes-core/ifupdown/ifupdown_0.8.22.bb
index e9f3a2aee9..bd0989e885 100644
--- a/meta/recipes-core/ifupdown/ifupdown_0.8.16.bb
+++ b/meta/recipes-core/ifupdown/ifupdown_0.8.22.bb
@@ -10,8 +10,9 @@ SRC_URI = "git://salsa.debian.org/debian/ifupdown.git;protocol=https \
10 file://defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch \ 10 file://defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch \
11 file://inet-6-.defn-fix-inverted-checks-for-loopback.patch \ 11 file://inet-6-.defn-fix-inverted-checks-for-loopback.patch \
12 file://99_network \ 12 file://99_network \
13 file://0001-Define-FNM_EXTMATCH-for-musl.patch \
13 " 14 "
14SRCREV = "11b9f99f7ecc7052497e6786156cfed531f11823" 15SRCREV = "ab5a0f464e53e172316a5ca8b5dcdc49e8848999"
15 16
16S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
17 18