diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-10-11 11:40:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:48:46 +0100 |
commit | 90a03db51bbcdccd57d37548d811d45527b92e6f (patch) | |
tree | 77b4a0238eb05eabcf9ba5eedf3cb27af3d321b1 /meta/recipes-extended | |
parent | 266d5bdb10e199298b8e003c6f6ddbf240c7a501 (diff) | |
download | poky-90a03db51bbcdccd57d37548d811d45527b92e6f.tar.gz |
sudo: update 1.9.7p2 -> 1.9.8p1
Drop specialhandling for mksig items; issue fixed upstream.
(From OE-Core rev: c5226a62fe90ff6b24d5063f1ecefd656b3494a3)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch | 25 | ||||
-rw-r--r-- | meta/recipes-extended/sudo/sudo.inc | 16 | ||||
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.9.8p1.bb (renamed from meta/recipes-extended/sudo/sudo_1.9.7p2.bb) | 3 |
3 files changed, 34 insertions, 10 deletions
diff --git a/meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch b/meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch new file mode 100644 index 0000000000..e7875c96f7 --- /dev/null +++ b/meta/recipes-extended/sudo/files/0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From f993c5c88faacc43971899aae2168ffb3e34dc80 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Fri, 24 Sep 2021 13:36:24 +0200 | ||
4 | Subject: [PATCH] lib/util/mksigname.c: correctly include header for out of | ||
5 | tree builds | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
9 | --- | ||
10 | lib/util/mksigname.c | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/lib/util/mksigname.c b/lib/util/mksigname.c | ||
14 | index de8b1ad..0a69e7e 100644 | ||
15 | --- a/lib/util/mksigname.c | ||
16 | +++ b/lib/util/mksigname.c | ||
17 | @@ -36,7 +36,7 @@ main(int argc, char *argv[]) | ||
18 | { | ||
19 | unsigned int i; | ||
20 | |||
21 | -#include "mksigname.h" | ||
22 | +#include "lib/util/mksigname.h" | ||
23 | |||
24 | printf("const char *const sudo_sys_signame[] = {\n"); | ||
25 | for (i = 0; i < nitems(sudo_sys_signame); i++) { | ||
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc index 6a18609adc..82040de8aa 100644 --- a/meta/recipes-extended/sudo/sudo.inc +++ b/meta/recipes-extended/sudo/sudo.inc | |||
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.sudo.ws" | |||
4 | BUGTRACKER = "http://www.sudo.ws/bugs/" | 4 | BUGTRACKER = "http://www.sudo.ws/bugs/" |
5 | SECTION = "admin" | 5 | SECTION = "admin" |
6 | LICENSE = "ISC & BSD-3-Clause & BSD-2-Clause & Zlib" | 6 | LICENSE = "ISC & BSD-3-Clause & BSD-2-Clause & Zlib" |
7 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=fdff64d4fd19126330aa81b94d167173 \ | 7 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=b969d389e79703121cbffc9f3ea18a8b \ |
8 | file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \ | 8 | file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \ |
9 | file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \ | 9 | file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \ |
10 | file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \ | 10 | file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \ |
@@ -30,15 +30,13 @@ EXTRA_OECONF = "--with-editor=${base_bindir}/vi --with-env-editor" | |||
30 | 30 | ||
31 | EXTRA_OECONF:append:libc-musl = " --disable-hardening " | 31 | EXTRA_OECONF:append:libc-musl = " --disable-hardening " |
32 | 32 | ||
33 | # mksigname/mksiglist are used on build host to generate source files | ||
34 | do_compile:prepend () { | 33 | do_compile:prepend () { |
35 | # Remove build host references from sudo_usage.h | 34 | # Remove build host references from sudo_usage.h |
36 | sed -i \ | 35 | sed -i \ |
37 | -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ | 36 | -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ |
38 | -e 's,--build=${BUILD_SYS},,g' \ | 37 | -e 's,--build=${BUILD_SYS},,g' \ |
39 | -e 's,--host=${HOST_SYS},,g' \ | 38 | -e 's,--host=${HOST_SYS},,g' \ |
40 | ${B}/src/sudo_usage.h | 39 | ${B}/src/sudo_usage.h |
41 | oe_runmake SSP_CFLAGS="" SSP_LDFLAGS="" CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}" -C lib/util mksigname mksiglist | ||
42 | } | 40 | } |
43 | 41 | ||
44 | # Explicitly create ${localstatedir}/lib before do_install to ensure | 42 | # Explicitly create ${localstatedir}/lib before do_install to ensure |
diff --git a/meta/recipes-extended/sudo/sudo_1.9.7p2.bb b/meta/recipes-extended/sudo/sudo_1.9.8p1.bb index 9b5b2f3c69..4545d8766e 100644 --- a/meta/recipes-extended/sudo/sudo_1.9.7p2.bb +++ b/meta/recipes-extended/sudo/sudo_1.9.8p1.bb | |||
@@ -3,11 +3,12 @@ require sudo.inc | |||
3 | SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \ | 3 | SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \ |
4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ | 4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ |
5 | file://0001-sudo.conf.in-fix-conflict-with-multilib.patch \ | 5 | file://0001-sudo.conf.in-fix-conflict-with-multilib.patch \ |
6 | file://0001-lib-util-mksigname.c-correctly-include-header-for-ou.patch \ | ||
6 | " | 7 | " |
7 | 8 | ||
8 | PAM_SRC_URI = "file://sudo.pam" | 9 | PAM_SRC_URI = "file://sudo.pam" |
9 | 10 | ||
10 | SRC_URI[sha256sum] = "28b5ee725dbf89a7852f42f309ca877d2810a9531b4eecfe59f3a84b6b4afca8" | 11 | SRC_URI[sha256sum] = "0939ee24df7095a92e0ca4aa3bd53b2a10965a7b921d51a26ab70cdd24388d69" |
11 | 12 | ||
12 | DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 13 | DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
13 | RDEPENDS:${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | 14 | RDEPENDS:${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" |