Source: tcp-wrappers
Version: 7.6.q-30
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

glibc split out libnsl-dev and tcp-wrappers uses it. This puts
bootstrappers in a difficult situation. The unstaged glibc packages have
a transitional dependency libc6-dev -> libnsl-dev to make this
transparent to downstreams. Quite obviously, this dependency cannot work
in staged builds as there would be no way to build libnsl or libtirpc or
krb5 or anything in their dependency chains. Therefore the staged glibc
builds don't depend on libnsl-dev. When building tcp-wrappers with such
a staged build, it fails finding libnsl as it is one of the few packages
actually using libnsl. So what we need here is that this dependency of
tcp-wrappers becomes explicit for bootstrapping. Please add it now. I'm
attaching a patch for your convenience and it also documents the
relevant glibc version in a dependency alternative for backporters.

Helmut
diff --minimal -Nru tcp-wrappers-7.6.q/debian/changelog 
tcp-wrappers-7.6.q/debian/changelog
--- tcp-wrappers-7.6.q/debian/changelog 2019-11-27 15:06:53.000000000 +0100
+++ tcp-wrappers-7.6.q/debian/changelog 2020-10-14 06:11:52.000000000 +0200
@@ -1,3 +1,10 @@
+tcp-wrappers (7.6.q-30.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add missing build dependency on libnsl-dev. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 14 Oct 2020 06:11:52 +0200
+
 tcp-wrappers (7.6.q-30) unstable; urgency=medium
 
   * Restored the support for cross building, thanks to Helmut Grohne.
diff --minimal -Nru tcp-wrappers-7.6.q/debian/control 
tcp-wrappers-7.6.q/debian/control
--- tcp-wrappers-7.6.q/debian/control   2019-11-24 23:24:56.000000000 +0100
+++ tcp-wrappers-7.6.q/debian/control   2020-10-14 06:11:36.000000000 +0200
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Marco d'Itri <m...@linux.it>
-Build-Depends: debhelper-compat (= 12)
+Build-Depends: debhelper-compat (= 12), libnsl-dev | libc6-dev (<< 2.31-4)
 Standards-Version: 4.4.1.1
 Rules-Requires-Root: no
 Vcs-Git: https://salsa.debian.org/md/tcp-wrappers.git

Reply via email to