package/libxml-parser-perl: add host-libxcrypt dependency
PATCH 1/1 package/libxml-parser-perl: add host-libxcrypt dependency
host-libxml-parser-perl compiles XS modules against the system perl headers, which #include <crypt.h>. On build hosts without libcrypt-dev installed, the build fails:
.../CORE/reentr.h:126:16: fatal error: crypt.h: No such file or directory
Declaring host-libxcrypt ensures crypt.h is present in the per-package host sysroot before the build.
package/libxml-parser-perl/libxml-parser-perl.mk +1 -1
@@ -7,7 +7,7 @@ LIBXML_PARSER_PERL_VERSION = 2.47 LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz LIBXML_PARSER_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDR -HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat +HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat host-libxcrypt LIBXML_PARSER_PERL_LICENSE = Artistic or GPL-1.0+ LIBXML_PARSER_PERL_LICENSE_FILES = README LIBXML_PARSER_PERL_RUN_PERL = `which perl`
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · Adam Ford
host-libxml-parser-perl compiles XS modules against the system perl headers, which #include <
crypt.h>. On build hosts without libcrypt-dev installed, the build fails:
Quoted 8 lines
.../CORE/reentr.h:126:16: fatal error: crypt.h: No such file ordirectory
Declaring host-libxcrypt ensures
crypt.his present in the per-package host sysroot before the build.Signed-off-by Adam Ford <[email protected]>
Gentle nudge on this.
Quoted 17 lines
package/libxml-parser-perl/libxml-parser-perl.mk +0
-0@@ -7,7 +7,7 @@ LIBXML_PARSER_PERL_VERSION = 2.47 LIBXML_PARSER_PERL_SOURCE =XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz
LIBXML_PARSER_PERL_SITE= $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDRpackage/libxml-parser-perl/libxml-parser-perl.mk +1
-2-HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat +HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat host-libxcrypt LIBXML_PARSER_PERL_LICENSE = Artistic or GPL-1.0+ LIBXML_PARSER_PERL_LICENSE_FILES = README LIBXML_PARSER_PERL_RUN_PERL = `which perl` --
Quoted 3 lines
2.53.0
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 10 lines · Adam Ford
host-libxml-parser-perl compiles XS modules against the system perl headers, which #include <
crypt.h>. On build hosts without libcrypt-dev installed, the build fails:
.../CORE/reentr.h:126:16: fatal error:crypt.h: No such file or directoryDeclaring host-libxcrypt ensures
crypt.his present in the per-package host sysroot before the build.Signed-off-by Adam Ford <[email protected]>
Sorry for the delay in getting back to you. Could you provide some details on the environment/distribution where crypt.h is not available on the host? I've tried but on Fedora or Ubuntu, as soon as glibc-devel (or equivalent) is installed, it pulls in libxcrypt-devel. On Archlinux, /usr/include/crypt.h is also present.
Thanks for the additional information that you'll provide on this topic!
Best regards,
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
Le 24/08/2026 à 19:15, Thomas Petazzoni via buildroot a écrit :
Quoted 14 lines
Hello,
Quoted 10 lines · Adam Ford
host-libxml-parser-perl compiles XS modules against the system perl headers, which #include <
crypt.h>. On build hosts without libcrypt-dev installed, the build fails:
.../CORE/reentr.h:126:16: fatal error:crypt.h: No such file or directoryDeclaring host-libxcrypt ensures
crypt.his present in the per-package host sysroot before the build.Signed-off-by Adam Ford <[email protected]>
Quoted 8 lines
Sorry for the delay in getting back to you. Could you provide some details on the environment/distribution where
crypt.his not available on the host? I've tried but on Fedora or Ubuntu, as soon as glibc-devel (or equivalent) is installed, it pulls in libxcrypt-devel. On Archlinux,/usr/include/crypt.his also present.Thanks for the additional information that you'll provide on this topic!
Not the author but in Debian Forky (testing) and Sid, libc6-dev no longer depends on libcrypt-dev, the provider of crypt.h. libcrypt-dev now only have these reverse dependencies:
gauche-dev, guile-3.0-dev, heimdal-multidev, libapr1-dev, libidzebra-2.0-dev, libperl-dev, libuser1-dev, sa-compile
None of which would be typically present on a developer or builder system.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Nicolas,
Quoted 8 lines · Nicolas Cavallari
Not the author but in Debian Forky (testing) and Sid, libc6-dev no longer depends on libcrypt-dev, the provider of
crypt.h. libcrypt-dev now only have these reverse dependencies:gauche-dev, guile-3.0-dev, heimdal-multidev, libapr1-dev, libidzebra-2.0-dev, libperl-dev, libuser1-dev, sa-compile
None of which would be typically present on a developer or builder system.
Thanks for this additional information! With this, I was able to reproduce the build issue, so I applied the patch to our master branch.
Thanks a lot!
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
Hello,
Quoted 10 lines · Adam Ford
host-libxml-parser-perl compiles XS modules against the system perl headers, which #include <
crypt.h>. On build hosts without libcrypt-dev installed, the build fails:
.../CORE/reentr.h:126:16: fatal error:crypt.h: No such file or directoryDeclaring host-libxcrypt ensures
crypt.his present in the per-package host sysroot before the build.Signed-off-by Adam Ford <[email protected]>
Thanks a lot, applied to master!
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
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 11 lines
host-libxml-parser-perl compiles XS modules against the system perl headers, which #include <
crypt.h>. On build hosts without libcrypt-dev installed, the build fails:
.../CORE/reentr.h:126:16: fatal error:crypt.h: No such file or directoryDeclaring host-libxcrypt ensures
crypt.his present in the per-package host sysroot before the build.Signed-off-by Adam Ford <[email protected]>
Applied to 2025.02.x & 2026.05.x. Thanks
Quoted 20 lines
package/libxml-parser-perl/libxml-parser-perl.mk +1
-1@@ -7,7 +7,7 @@ LIBXML_PARSER_PERL_VERSION = 2.47 LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz LIBXML_PARSER_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDR -HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat +HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat host-libxcrypt LIBXML_PARSER_PERL_LICENSE = Artistic or GPL-1.0+ LIBXML_PARSER_PERL_LICENSE_FILES = README LIBXML_PARSER_PERL_RUN_PERL = `which perl`Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot