[DRE-maint] Bug#1102979: ruby3.1: depend on libcrypt-dev explicitly
Helmut Grohne
helmut at subdivi.de
Sun Apr 13 14:04:17 BST 2025
Source: ruby3.1
Version: 3.1.2-8.5
Tags: patch
User: helmutg at debian.org
Usertags: libcrypt-pkgconf
ruby3.1 uses libxcrypt during build, but it also exposes this header to
its downstreams by including -lcrypt in its pkgconf .pc. There is an
effort[1] to drop libcrypt-dev from the build-essential package set.
This will not happen during the trixie freeze, but some months into the
forky cycle. Once dropped, ruby3.1 and reverse dependencies of
ruby3.1-dev will fail to build from source. While looking into it, I
noticed that the .pc file also contains -lz without a matching
dependency. I'm attaching a patch to make these dependencies explicit.
It is safe for inclusion into trixie, but it does not warrant an upload
of its own at this time of the freeze.
Helmut
-------------- next part --------------
diff -Nru ruby3.1-3.1.2/debian/changelog ruby3.1-3.1.2/debian/changelog
--- ruby3.1-3.1.2/debian/changelog 2025-01-10 15:56:56.000000000 +0100
+++ ruby3.1-3.1.2/debian/changelog 2025-04-13 14:58:40.000000000 +0200
@@ -1,3 +1,10 @@
+ruby3.1 (3.1.2-8.6) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Explicitly depend on libcrypt-dev. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Sun, 13 Apr 2025 14:58:40 +0200
+
ruby3.1 (3.1.2-8.5) unstable; urgency=medium
* Non-maintainer upload.
diff -Nru ruby3.1-3.1.2/debian/control ruby3.1-3.1.2/debian/control
--- ruby3.1-3.1.2/debian/control 2024-08-26 15:00:57.000000000 +0200
+++ ruby3.1-3.1.2/debian/control 2025-04-13 14:58:32.000000000 +0200
@@ -10,6 +10,7 @@
debhelper-compat (= 13),
dpkg-dev (>= 1.22.6),
file,
+ libcrypt-dev,
libffi-dev,
libgdbm-compat-dev,
libgdbm-dev,
@@ -79,8 +80,10 @@
Package: ruby3.1-dev
Multi-Arch: same
Architecture: any
-Depends: libgmp-dev,
+Depends: libcrypt-dev,
+ libgmp-dev,
libruby3.1t64 (= ${binary:Version}),
+ zlib1g-dev,
${misc:Depends},
${shlibs:Depends}
Recommends: ruby3.1-doc
More information about the Pkg-ruby-extras-maintainers
mailing list