Source: libmaus2
Version: 2.0.768+dfsg-1
Severity: serious
Tags: patch
Justification: Policy 7.8

Greetings,

I recalled about libsecrecy being a headers only library, and
that it was inlined in libmaus2.  The libmaus2 is for the most
part a GPL-3+ software.  This means the full source code to
build the libmaus2 must be made available, including the exact
version of the libsecrecy used for constructing the following
binary packages:

  * libmaus2-2, which embeds shared objects built using
    libsecrecy headers,
  * and libmaus2-dev, which offers among other things, the
    corresponding static libraries.

To be able to rebuild these packages, one would have to know
they have been built using the current version of libsecrecy,
presently 0.0.2+dfsg-2.  This needs to be documented throught
the following Built-Using field applied against control files of
the two binary package:

        Built-Using: libsecrecy (= 0.0.2+dfsg-2)

Following the model in use for SIMDe[1], I intend to apply the
patch in attachment and upload the package.  This bug entry is
mostly to document the issue for the release team, as we're in
hard-freeze.

[1]: https://wiki.debian.org/SIMDEverywhere

Cheers,  :)
-- 
Étienne Mollier <etienne.moll...@mailoo.org>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
diff --git a/debian/changelog b/debian/changelog
index 1116227..b92f146 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libmaus2 (2.0.768+dfsg-2) unstable; urgency=medium
+
+  * Built-Using: libsecrecy
+    Closes: #-1
+
+ -- Étienne Mollier <etienne.moll...@mailoo.org>  Wed, 09 Jun 2021 17:24:41 +0200
+
 libmaus2 (2.0.768+dfsg-1) unstable; urgency=medium
 
   * New upstream version
diff --git a/debian/control b/debian/control
index 643c155..233d5f3 100644
--- a/debian/control
+++ b/debian/control
@@ -22,6 +22,7 @@ Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          zlib1g
+Built-Using: ${libsecrecy:Built-Using}
 Description: collection of data structures and algorithms for biobambam
  Libmaus2 is a collection of data structures and algorithms. It contains
  .
@@ -39,6 +40,7 @@ Depends: libmaus2-2 (= ${binary:Version}),
          zlib1g-dev,
          ${shlibs:Depends},
          ${misc:Depends}
+Built-Using: ${libsecrecy:Built-Using}
 Description: collection of data structures and algorithms for biobambam (devel)
  Libmaus2 is a collection of data structures and algorithms. It contains
  .
diff --git a/debian/rules b/debian/rules
index 2d60460..cbbef1d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,11 @@
 
 # DH_VERBOSE := 1
 export LC_ALL=C.UTF-8
+BUILT_USING_SECRECY = $(shell \
+	dpkg-query \
+		-f '$${source:Package} (= $${source:Version}), ' \
+		-W 'libsecrecy-dev' \
+)
 
 # include /usr/share/dpkg/default.mk
 
@@ -35,6 +40,9 @@ override_dh_install:
 override_dh_installchangelogs:
 	dh_installchangelogs ChangeLog
 
+override_dh_gencontrol:
+	dh_gencontrol -- -Vlibsecrecy:Built-Using="$(BUILT_USING_SECRECY)"
+
 ### When overriding auto_test make sure DEB_BUILD_OPTIONS will be respected
 #override_dh_auto_test:
 #ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))

Attachment: signature.asc
Description: PGP signature

Reply via email to