Skip to contentSkip to conversation

package/heimdal: host package needs host-libxcrypt

PATCH In review Thomas Petazzoni 4 participants 4 messages Feb 8, 2025 – Feb 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/heimdal: host package needs host-libxcrypt

The host-heimdal package has always needed a crypt library, but now that libcrypt is no longer part of glibc, we're seeing build failures on machines with recent host glibc versions. To fix this, we add host-libxcrypt to the dependencies, and ensure host-heimdal links with it.

Fixes:

http://autobuild.buildroot.net/results/864003e1005fcd847b4ec3bd94316638f8f56553/
https://gitlab.com/buildroot.org/buildroot/-/issues/86

---
 package/heimdal/heimdal.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/heimdal/heimdal.mk +2 -2
index 786d94a1aa..155cb66e1f 100644
@@ -6,7 +6,7 @@
 
 HEIMDAL_VERSION = f4faaeaba371fff3f8d1bc14389f5e6d70ca8e17
 HEIMDAL_SITE = $(call github,heimdal,heimdal,$(HEIMDAL_VERSION))
-HOST_HEIMDAL_DEPENDENCIES = host-e2fsprogs host-ncurses host-pkgconf
+HOST_HEIMDAL_DEPENDENCIES = host-e2fsprogs host-ncurses host-pkgconf host-libxcrypt
 HOST_HEIMDAL_AUTORECONF = YES
 HEIMDAL_INSTALL_STAGING = YES
 # static because of -fPIC issues with e2fsprogs on x86_64 host
@@ -29,7 +29,7 @@ HOST_HEIMDAL_CONF_OPTS = \
 	--disable-heimdal-documentation
 
 # Don't use compile_et from e2fsprogs as it raises a build failure with samba4
-HOST_HEIMDAL_CONF_ENV = ac_cv_prog_COMPILE_ET=no MAKEINFO=true
+HOST_HEIMDAL_CONF_ENV = ac_cv_prog_COMPILE_ET=no MAKEINFO=true LIBS=-lcrypt
 HEIMDAL_LICENSE = BSD-3-Clause
 HEIMDAL_LICENSE_FILES = LICENSE
 HEIMDAL_CPE_ID_VALID = YES
Signature · 6 lines
2.48.1

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

PATCH 2/2 package/heimdal: add missing dependencies on flex/bison

As host-heimdal is only used by samba4, and samba4 already depends on host-flex and host-bison, the build issue fixed by this commit is not directly visible, but can be reproduced by doing "make host-heimdal" for example in our official Buildroot Docker container:

/home/thomas/projets/buildroot/outputs/foo/build/host-heimdal-f4faaeaba371fff3f8d1bc14389f5e6d70ca8e17/missing: line 81: flex: command not found
WARNING: 'flex' is missing on your system.
You should only need it if you modified a '.l' file.
You may want to install the Fast Lexical Analyzer package:
<https://github.com/westes/flex>
make[4]: *** [Makefile:753: lex.c] Error 127

[...]

updating lex.yylex.c
../../ylwrap: line 176: -d: command not found
make[4]: *** [Makefile:756: parse.c] Error 127

Fix this by adding the missing dependencies.

---
 package/heimdal/heimdal.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/heimdal/heimdal.mk +1 -1
index 155cb66e1f..f6c52f63aa 100644
@@ -6,7 +6,7 @@
 
 HEIMDAL_VERSION = f4faaeaba371fff3f8d1bc14389f5e6d70ca8e17
 HEIMDAL_SITE = $(call github,heimdal,heimdal,$(HEIMDAL_VERSION))
-HOST_HEIMDAL_DEPENDENCIES = host-e2fsprogs host-ncurses host-pkgconf host-libxcrypt
+HOST_HEIMDAL_DEPENDENCIES = host-e2fsprogs host-ncurses host-pkgconf host-libxcrypt host-flex host-bison
 HOST_HEIMDAL_AUTORECONF = YES
 HEIMDAL_INSTALL_STAGING = YES
 # static because of -fPIC issues with e2fsprogs on x86_64 host
Signature · 6 lines
2.48.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Thomas Petazzoni
Quoted 6 lines · Thomas Petazzoni

The host-heimdal package has always needed a crypt library, but now that libcrypt is no longer part of glibc, we're seeing build failures on machines with recent host glibc versions. To fix this, we add host-libxcrypt to the dependencies, and ensure host-heimdal links with it.

Quoted 7 lines

Fixes:

http://autobuild.buildroot.net/results/864003e1005fcd847b4ec3bd94316638f8f56553/
https://gitlab.com/buildroot.org/buildroot/-/issues/86

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Julien" == Julien Olivain <[email protected]> writes:

Quoted 9 lines · Thomas Petazzoni

The host-heimdal package has always needed a crypt library, but now that libcrypt is no longer part of glibc, we're seeing build failures on machines with recent host glibc versions. To fix this, we add host-libxcrypt to the dependencies, and ensure host-heimdal links with it.
Fixes:
http://autobuild.buildroot.net/results/864003e1005fcd847b4ec3bd94316638f8f56553/
https://gitlab.com/buildroot.org/buildroot/-/issues/86

Quoted 1 line

Series applied to master, thanks.

And to 2024.02.x / 2024.11.x as well, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot