control: tag -1 + patch

Hi,

On 2025-05-29 22:53, Aurelien Jarno wrote:
> Package: libcap2
> Version: 1:2.75-6
> Severity: serious
> Justification: Policy 7.8
> 
> Dear maintainer,
> 
> The libcap2 package provides the following files which are statically
> linked against glibc:
> 
> /usr/lib/x86_64-linux-gnu/libcap2/tests/test_pam_cap
> /usr/lib/x86_64-linux-gnu/libcap2/tests/tcapsh-static
> /usr/lib/x86_64-linux-gnu/libcap2/tests/noop
> 
> glibc is mostly is mostly licensed under the LGPL, which requires that
> the full source code of the incorporating binary package be made
> available. According to Debian Policy ยง7.8 [1] such a binary package
> MUST list the glibc source package (and possibly others) in the
> Built-Using: field.

Please find attached a patch to fix that.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                     http://aurel32.net
--- libcap2-2.75/debian/control
+++ libcap2-2.75/debian/control
@@ -48,6 +48,7 @@
 Section: libdevel
 Architecture: linux-any
 Multi-Arch: same
+Built-Using: ${misc:Built-Using}
 Depends: libcap2 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 Suggests: manpages-dev
 Provides: libcap2-dev
--- libcap2-2.75/debian/rules
+++ libcap2-2.75/debian/rules
@@ -120,3 +120,6 @@
 
 execute_after_dh_auto_build-indep:
 	dh_auto_build -B_build -O--buildsystem=golang
+
+override_dh_gencontrol:
+	dh_gencontrol -- -Vmisc:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W libc-dev-bin)"

Reply via email to