package/shadow: Fix yescrypt-only build
PATCH 1/1 package/shadow: Fix yescrypt-only build
Fixes:
http://autobuild.buildroot.net/results/afd/afd5d59f94986593cd697148f4cce2bf70e4d81b/
--- .../shadow/0001-Fix-yescrypt-support.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/shadow/0001-Fix-yescrypt-support.patch
package/shadow/0001-Fix-yescrypt-support.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 7a63017b3c873a59e3482322b7824160a8c8ca67 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +Date: Sun, 9 Jul 2023 10:55:03 +0200 +Subject: [PATCH] Fix yescrypt support + +Fixes build error: +newusers.c: In function 'update_passwd': +newusers.c:433:21: error: 'sflg' undeclared (first use in this function); did you mean 'rflg'? + +introduced by +https://github.com/shadow-maint/shadow/commit/5cd04d03f94622c12220d4a6352824af081b8531 +which forgot to define sflg for these configure options: + +--without-sha-crypt --without-bcrypt --with-yescrypt + +Upstream: https://github.com/shadow-maint/shadow/pull/748 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/newusers.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/newusers.c b/src/newusers.c +index 7cb8434b..08f79798 100644 +--- a/src/newusers.c ++++ b/src/newusers.c +@@ -60,7 +60,7 @@ static bool rflg = false; /* create a system account */ + #ifndef USE_PAM + static /*@null@*//*@observer@*/char *crypt_method = NULL; + #define cflg (NULL != crypt_method) +-#if defined(USE_SHA_CRYPT) || defined(USE_BCRYPT) ++#if defined(USE_SHA_CRYPT) || defined(USE_BCRYPT) || defined(USE_YESCRYPT) + static bool sflg = false; + #endif + #ifdef USE_SHA_CRYPT +-- +2.39.2 +
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Bernd,
I created a similar patch, but did not try to make it upstream.
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
On my side, it looks good. Unfortunately, I do not have permission to merge it ;).
Thanks,
Raphael Pavlidis
Quoted 43 lines · Bernd Kuhls
Fixes:
http://autobuild.buildroot.net/results/afd/afd5d59f94986593cd697148f4cce2bf70e4d81b/Signed-off-by Bernd Kuhls <[email protected]>--- .../shadow/0001-Fix-yescrypt-support.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+)create mode 100644
package/shadow/0001-Fix-yescrypt-support.patchpackage/shadow/0001-Fix-yescrypt-support.patch new file +28
-0@@ -0,0 +1,38 @@ +From 7a63017b3c873a59e3482322b7824160a8c8ca67 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +Date: Sun, 9 Jul 2023 10:55:03 +0200 +Subject: [PATCH] Fix yescrypt support + +Fixes build error: +newusers.c: In function 'update_passwd': +newusers.c:433:21: error: 'sflg' undeclared (first use in this function); did you mean 'rflg'? + +introduced by +https://github.com/shadow-maint/shadow/commit/5cd04d03f94622c12220d4a6352824af081b8531 +which forgot to define sflg for these configure options: + +--without-sha-crypt --without-bcrypt --with-yescrypt + +Upstream: https://github.com/shadow-maint/shadow/pull/748 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/newusers.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/newusers.c b/src/newusers.c +index 7cb8434b..08f79798 100644 +--- a/src/newusers.c ++++ b/src/newusers.c +@@ -60,7 +60,7 @@ static bool rflg = false; /* create a system account */ + #ifndef USE_PAM
package/shadow/0001-Fix-yescrypt-support.patch line 38
Quoted 10 lines
package/shadow/0001-Fix-yescrypt-support.patch new file +10
-0+ static /*@null@*//*@observer@*/char *crypt_method = NULL; + #define cflg (NULL != crypt_method) +-#if defined(USE_SHA_CRYPT) || defined(USE_BCRYPT) ++#if defined(USE_SHA_CRYPT) || defined(USE_BCRYPT) || defined(USE_YESCRYPT) + static bool sflg = false; + #endif + #ifdef USE_SHA_CRYPT +-- +2.39.2 +
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 8 lines · On Sun, 9 Jul 2023 11:16:22 +0200 Bernd Kuhls <[email protected]> wrote:
Fixes:
http://autobuild.buildroot.net/results/afd/afd5d59f94986593cd697148f4cce2bf70e4d81b/Signed-off-by Bernd Kuhls <[email protected]>--- .../shadow/0001-Fix-yescrypt-support.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/shadow/0001-Fix-yescrypt-support.patch
Applied to master after updating the Upstream: tag to point to the final upstream commit, as it has been merged. Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Fixes:
http://autobuild.buildroot.net/results/afd/afd5d59f94986593cd697148f4cce2bf70e4d81b/Signed-off-by Bernd Kuhls <[email protected]>
Committed to 2023.05.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot