Skip to contentSkip to conversation

package/shadow: only yescrypt build

PATCH In review Raphael Pavlidis 3 participants 6 messages Mar 25, 2023 – Jul 29, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/shadow: only yescrypt build

Add a patch to fix the build if only yescrypt is enabled.

Fixes:
- http://autobuild.buildroot.net/results/df6a16a55bf02cf2d7377f9636913f0b3bca574f
- http://autobuild.buildroot.net/results/758d4fd297fbd77ef846d3a3d4c207021f866752

---
 ...-sflg-for-USE_YESCRYPT-in-newusers.c.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch
package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch new file +29 -0
new file mode 100644
index 0000000000..6c2a15d898
@@ -0,0 +1,29 @@
+From 8f7d5e8adae3aa16c0e3a4cb5db34d6764aa0495 Mon Sep 17 00:00:00 2001
+From: Raphael Pavlidis <[email protected]>
+Date: Thu, 23 Mar 2023 19:16:12 +0100
+Subject: [PATCH v1 1/1] Define sflg for USE_YESCRYPT in newusers.c
+
+If only yescrypt is used then the boolean sflg is not defined, but it is
+access. Therefore, it causes a build error.
+
+Signed-off-by: Raphael Pavlidis <[email protected]>
+---
+ src/newusers.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/newusers.c b/src/newusers.c
+index dd6b4421..9c2a626a 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
#1 lore raw
Quoted 17 lines · On Sat, 25 Mar 2023 18:58:15 +0100 Raphael Pavlidis…

Add a patch to fix the build if only yescrypt is enabled.

Fixes:
- http://autobuild.buildroot.net/results/df6a16a55bf02cf2d7377f9636913f0b3bca574f
- http://autobuild.buildroot.net/results/758d4fd297fbd77ef846d3a3d4c207021f866752

---
 ...-sflg-for-USE_YESCRYPT-in-newusers.c.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch
package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch new file +0 -0
new file mode 100644
index 0000000000..6c2a15d898

package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch line 9

Quoted 9 lines
package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch new file +9 -0
@@ -0,0 +1,29 @@
+From 8f7d5e8adae3aa16c0e3a4cb5db34d6764aa0495 Mon Sep 17 00:00:00 2001
+From: Raphael Pavlidis <[email protected]>
+Date: Thu, 23 Mar 2023 19:16:12 +0100
+Subject: [PATCH v1 1/1] Define sflg for USE_YESCRYPT in newusers.c
+
+If only yescrypt is used then the boolean sflg is not defined, but it is
+access. Therefore, it causes a build error.
+
+Signed-off-by: Raphael Pavlidis <[email protected]>

Thanks for fixing this! Has this patch been submitted to the upstream shadow project?

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hi Thomas,

[SNIP]

Quoted 5 lines
Quoted 5 lines

Thanks for fixing this! Has this patch been submitted to the upstream shadow project?

It seems that shadow is hosted on GitHub. Currently, I do not have a GitHub account and do not want one. Feel free (and everybody else) to take the patch and make a PR.

[SNIP]

Thanks,
Raphael Pavlidis
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

A message that is not in the archive (sent off-list or not yet received): eb8cf642-62ed-3f32-a32e-f7d28fd6998f__26834.4457073667$1685128600$gmane$org@gmail.com

#5 lore raw

Am Fri, 26 May 2023 21:16:11 +0200 schrieb Raphael Pavlidis:

Quoted 3 lines

It seems that shadow is hosted on GitHub. Currently, I do not have a GitHub account and do not want one. Feel free (and everybody else) to take the patch and make a PR.

Hi Raphael,

sorry, i did not see your patch when I created mine.

Upstream in the meantime committed my patch
https://github.com/shadow-maint/shadow/commit/
29da702491eea314b915ea9c7a83c9af80cf5797

Regards, Bernd

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw
In reply to Raphael Pavlidis
Quoted 10 lines · On Sat, 25 Mar 2023 18:58:15 +0100 Raphael Pavlidis…

Add a patch to fix the build if only yescrypt is enabled.

Fixes:
- http://autobuild.buildroot.net/results/df6a16a55bf02cf2d7377f9636913f0b3bca574f
- http://autobuild.buildroot.net/results/758d4fd297fbd77ef846d3a3d4c207021f866752

---
 ...-sflg-for-USE_YESCRYPT-in-newusers.c.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/shadow/0001-Define-sflg-for-USE_YESCRYPT-in-newusers.c.patch

I have applied Bernd's patch instead, which has been accepted upstream.

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