diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2023-05-17 21:01:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:49 +0100 |
commit | 2c60b8119d8ddd47225eacb1f0db80d7953e2006 (patch) | |
tree | 39afee433136ff0195315fe686237a9aba62ab2e /meta/recipes-connectivity | |
parent | e3ac99049d813fc9e268b74b01c2a2c4b174c915 (diff) | |
download | poky-2c60b8119d8ddd47225eacb1f0db80d7953e2006.tar.gz |
dhcpcd: upgrade to v10.0.1
Changes:
Update license checksum: change in copyright year.
Rebase patches for upstream changes.
Remove upstream applied patches.
(From OE-Core rev: d6e1f0d5eb22c94ad1ec5eef719db00deb1fb263)
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/dhcpcd_10.0.1.bb (renamed from meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb) | 9 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch | 4 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch | 30 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch | 34 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/0002-privsep-Allow-newfstatat-syscall-as-well.patch | 31 |
5 files changed, 5 insertions, 103 deletions
diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.0.1.bb index 21b2eebbd8..de007a6e6c 100644 --- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb +++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.0.1.bb | |||
@@ -7,20 +7,17 @@ DESCRIPTION = "dhcpcd runs on your machine and silently configures your \ | |||
7 | HOMEPAGE = "http://roy.marples.name/projects/dhcpcd/" | 7 | HOMEPAGE = "http://roy.marples.name/projects/dhcpcd/" |
8 | 8 | ||
9 | LICENSE = "BSD-2-Clause" | 9 | LICENSE = "BSD-2-Clause" |
10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d148485768fe85b9f1072b186a7e9b4d" | 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ba9c7e534853aaf3de76c905b2410ffd" |
11 | 11 | ||
12 | SRC_URI = "git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=dhcpcd-9 \ | 12 | SRC_URI = "git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=master \ |
13 | file://0001-remove-INCLUDEDIR-to-prevent-build-issues.patch \ | 13 | file://0001-remove-INCLUDEDIR-to-prevent-build-issues.patch \ |
14 | file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \ | 14 | file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \ |
15 | file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \ | ||
16 | file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \ | ||
17 | file://0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch \ | ||
18 | file://dhcpcd.service \ | 15 | file://dhcpcd.service \ |
19 | file://dhcpcd@.service \ | 16 | file://dhcpcd@.service \ |
20 | file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \ | 17 | file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \ |
21 | " | 18 | " |
22 | 19 | ||
23 | SRCREV = "3c458fc7fa4146029a1e4f9e98cd7e7adf03081a" | 20 | SRCREV = "5d9bf80c26b4b7dc9d8aa175d96d5a24e75b4d48" |
24 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
25 | 22 | ||
26 | inherit pkgconfig autotools-brokensep systemd useradd | 23 | inherit pkgconfig autotools-brokensep systemd useradd |
diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch b/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch index 6f90c88249..8d1ed6671a 100644 --- a/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch +++ b/meta/recipes-connectivity/dhcpcd/files/0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch | |||
@@ -27,7 +27,7 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | |||
27 | 1 file changed, 13 insertions(+), 4 deletions(-) | 27 | 1 file changed, 13 insertions(+), 4 deletions(-) |
28 | 28 | ||
29 | diff --git a/hooks/20-resolv.conf b/hooks/20-resolv.conf | 29 | diff --git a/hooks/20-resolv.conf b/hooks/20-resolv.conf |
30 | index 504a6c53..eb6e5845 100644 | 30 | index 7c29e276..becc019f 100644 |
31 | --- a/hooks/20-resolv.conf | 31 | --- a/hooks/20-resolv.conf |
32 | +++ b/hooks/20-resolv.conf | 32 | +++ b/hooks/20-resolv.conf |
33 | @@ -11,8 +11,12 @@ nocarrier_roaming_dir="$state_dir/roaming" | 33 | @@ -11,8 +11,12 @@ nocarrier_roaming_dir="$state_dir/roaming" |
@@ -35,7 +35,7 @@ index 504a6c53..eb6e5845 100644 | |||
35 | " | 35 | " |
36 | : ${resolvconf:=resolvconf} | 36 | : ${resolvconf:=resolvconf} |
37 | +resolvconf_from_systemd=false | 37 | +resolvconf_from_systemd=false |
38 | if type "$resolvconf" >/dev/null 2>&1; then | 38 | if command -v "$resolvconf" >/dev/null 2>&1; then |
39 | have_resolvconf=true | 39 | have_resolvconf=true |
40 | + if [ $(basename $(readlink -f $(which $resolvconf))) = resolvectl ]; then | 40 | + if [ $(basename $(readlink -f $(which $resolvconf))) = resolvectl ]; then |
41 | + resolvconf_from_systemd=true | 41 | + resolvconf_from_systemd=true |
diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch deleted file mode 100644 index 68ab93416a..0000000000 --- a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From c6cdf0aee71ab4126d36b045f02428ee3c6ec50b Mon Sep 17 00:00:00 2001 | ||
2 | From: Roy Marples <roy@marples.name> | ||
3 | Date: Fri, 26 Aug 2022 09:08:36 +0100 | ||
4 | Subject: [PATCH 1/2] privsep: Allow getrandom sysctl for newer glibc | ||
5 | |||
6 | Fixes #120 | ||
7 | |||
8 | Upstream-Status: Backport [c6cdf0aee71ab4126d36b045f02428ee3c6ec50b] | ||
9 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
10 | --- | ||
11 | src/privsep-linux.c | 3 +++ | ||
12 | 1 file changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/src/privsep-linux.c b/src/privsep-linux.c | ||
15 | index b238644b..479a1d82 100644 | ||
16 | --- a/src/privsep-linux.c | ||
17 | +++ b/src/privsep-linux.c | ||
18 | @@ -300,6 +300,9 @@ static struct sock_filter ps_seccomp_filter[] = { | ||
19 | #ifdef __NR_getpid | ||
20 | SECCOMP_ALLOW(__NR_getpid), | ||
21 | #endif | ||
22 | +#ifdef __NR_getrandom | ||
23 | + SECCOMP_ALLOW(__NR_getrandom), | ||
24 | +#endif | ||
25 | #ifdef __NR_getsockopt | ||
26 | /* For route socket overflow */ | ||
27 | SECCOMP_ALLOW_ARG(__NR_getsockopt, 1, SOL_SOCKET), | ||
28 | -- | ||
29 | 2.17.1 | ||
30 | |||
diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch deleted file mode 100644 index 1c514f9b8c..0000000000 --- a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 7a2d9767585ed2c407d4985bd2d81552034fb90a Mon Sep 17 00:00:00 2001 | ||
2 | From: CHEN Xiangyu <xiangyu.chen@aol.com> | ||
3 | Date: Thu, 9 Feb 2023 18:41:52 +0800 | ||
4 | Subject: [PATCH] privsep-linux: fix SECCOMP_AUDIT_ARCH missing ppc64le (#181) | ||
5 | |||
6 | when dhcpcd running on ppc64le platform, it would be killed by SIGSYS. | ||
7 | |||
8 | Upstream-Status: Backport [7a2d9767585ed2c407d4985bd2d81552034fb90a] | ||
9 | |||
10 | Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> | ||
11 | --- | ||
12 | src/privsep-linux.c | 6 +++++- | ||
13 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/privsep-linux.c b/src/privsep-linux.c | ||
16 | index 7372d26b..6a301950 100644 | ||
17 | --- a/src/privsep-linux.c | ||
18 | +++ b/src/privsep-linux.c | ||
19 | @@ -232,7 +232,11 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg) | ||
20 | #elif defined(__or1k__) | ||
21 | # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_OPENRISC | ||
22 | #elif defined(__powerpc64__) | ||
23 | -# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64 | ||
24 | +# if (BYTE_ORDER == LITTLE_ENDIAN) | ||
25 | +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE | ||
26 | +# else | ||
27 | +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64 | ||
28 | +# endif | ||
29 | #elif defined(__powerpc__) | ||
30 | # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC | ||
31 | #elif defined(__riscv) | ||
32 | -- | ||
33 | 2.34.1 | ||
34 | |||
diff --git a/meta/recipes-connectivity/dhcpcd/files/0002-privsep-Allow-newfstatat-syscall-as-well.patch b/meta/recipes-connectivity/dhcpcd/files/0002-privsep-Allow-newfstatat-syscall-as-well.patch deleted file mode 100644 index c5d2cba305..0000000000 --- a/meta/recipes-connectivity/dhcpcd/files/0002-privsep-Allow-newfstatat-syscall-as-well.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 7625a555797f587a89dc2447fd9d621024d5165c Mon Sep 17 00:00:00 2001 | ||
2 | From: Roy Marples <roy@marples.name> | ||
3 | Date: Fri, 26 Aug 2022 09:24:50 +0100 | ||
4 | Subject: [PATCH 2/2] privsep: Allow newfstatat syscall as well | ||
5 | |||
6 | Allows newer glibc variants to work apparently. | ||
7 | As reported in #84 and #89. | ||
8 | |||
9 | Upstream-Status: Backport [7625a555797f587a89dc2447fd9d621024d5165c] | ||
10 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
11 | --- | ||
12 | src/privsep-linux.c | 3 +++ | ||
13 | 1 file changed, 3 insertions(+) | ||
14 | |||
15 | diff --git a/src/privsep-linux.c b/src/privsep-linux.c | ||
16 | index 479a1d82..6327b1bc 100644 | ||
17 | --- a/src/privsep-linux.c | ||
18 | +++ b/src/privsep-linux.c | ||
19 | @@ -328,6 +328,9 @@ static struct sock_filter ps_seccomp_filter[] = { | ||
20 | #ifdef __NR_nanosleep | ||
21 | SECCOMP_ALLOW(__NR_nanosleep), /* XXX should use ppoll instead */ | ||
22 | #endif | ||
23 | +#ifdef __NR_newfstatat | ||
24 | + SECCOMP_ALLOW(__NR_newfstatat), | ||
25 | +#endif | ||
26 | #ifdef __NR_ppoll | ||
27 | SECCOMP_ALLOW(__NR_ppoll), | ||
28 | #endif | ||
29 | -- | ||
30 | 2.17.1 | ||
31 | |||