Bug#1102978: libperl-dev: depend on libcrypt-dev explicitly

Helmut Grohne helmut at subdivi.de
Sun Apr 13 14:25:30 BST 2025


Package: libperl-dev
Version: 5.40.1-2
Tags: patch
User: helmutg at debian.org
Usertags: libcrypt-pkgconf

Hi,

a Perl core header /usr/lib/<TRIPLET>/perl/<VERSION>/CORE/reentr.h 
#includes <crypt.h>. This header was provided by glibc for a long time, 
but it has now been split into libcrypt-dev built from libxcrypt. For 
the time being, libc6-dev depends on libcrypt-dev, but we want to get 
rid[1] of this dependency. This is not going to happen in trixie, but 
some months into the forky cycle. Whilst the aforementioned header is 
part of libperlVER, for actually building a Perl extension module one 
typically installs libperl-dev (via perl-xs-dev). Most Perl extension 
modules carry this dependency already (thanks gregor) and for the 
remaining ones bugs have been filed. libperl-dev also issues the 
dependency on libc6-dev that formerly ensured presence of crypt.h. I 
propose adding libcrypt-dev as a dependency there to address most of the 
fallout of having libc6-dev drop its dependency on libcrypt-dev. Perl is 
by some margin one of the biggest user of libcrypt-dev.

I'm attaching a patch for your convenience and consider it safe for 
inclusion in trixie. However, as Perl is an essential package and we're 
progressing into the trixie freeze. I do not think it would be 
appropriate to upload Perl for this change. I appreciate if you could 
confirm this report as we cannot move forward on the glibc side before 
this has been fixed.

Note that the usertag mentions pkgconf despite Perl not using pkgconf. 
This is not an accident. I'm widening the category of that usertag a bit 
to capture similar cases.

Helmut

[1] https://lists.debian.org/debian-devel/2025/04/msg00113.html
-------------- next part --------------
diff -Nru perl-5.40.1/debian/changelog perl-5.40.1/debian/changelog
--- perl-5.40.1/debian/changelog	2025-02-16 16:16:32.000000000 +0100
+++ perl-5.40.1/debian/changelog	2025-04-13 15:13:53.000000000 +0200
@@ -1,3 +1,10 @@
+perl (5.40.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add libcrypt-dev to libperl-dev's Depends. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 13 Apr 2025 15:13:53 +0200
+
 perl (5.40.1-2) unstable; urgency=medium
 
   * Refresh cross support files with 5.40.1-1 results.
diff -Nru perl-5.40.1/debian/control perl-5.40.1/debian/control
--- perl-5.40.1/debian/control	2025-01-18 23:25:59.000000000 +0100
+++ perl-5.40.1/debian/control	2025-04-13 15:13:52.000000000 +0200
@@ -179,7 +179,7 @@
 Provides: perl-xs-dev
 Multi-Arch: same
 Depends: perl:any (= ${binary:Version}), libperl5.40 (= ${binary:Version}),
- ${misc:Depends}, libc6-dev | libc-dev
+ ${misc:Depends}, libc6-dev | libc-dev, libcrypt-dev
 Description: Perl library: development files
  Files for developing applications which embed a Perl interpreter.
 


More information about the Perl-maintainers mailing list