[Debian-med-packaging] Bug#857454: qtltools: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Mar 11 13:49:49 UTC 2017


Source: qtltools
Version: 1.1+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that qtltools could not be built reproducibly.

This is because the examples.tar.xz can contain itself:

├── ./usr/share/doc/qtltools/examples/examples.tar.xz
├── 6-content
├── file list
│ │ │ │ │ │ @@ -1,7 +1,8 @@
│ │ │ │ │ │ +-rw-r--r--   0        0        0        0 2018-03-21 07:15:07.000000 ./examples.tar.xz

Patch attached; we should be removing this file in the clean target anyway.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index cc7f05e..2b25c1a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,10 @@ override_dh_auto_build:
 	mkdir -p $(CURDIR)/bin/
 	dh_auto_build
 
+override_dh_auto_clean:
+	rm -f debian/upstream.example/examples.tar.xz
+	dh_auto_clean
+
 override_dh_install:
 	cd debian/upstream.example && find -type f | LC_ALL=C sort | tar -T - --sort=name --mode=go=rX,u+rw,a-s --owner=root --group=root --numeric-owner -Jcvf examples.tar.xz
 	dh_install


More information about the Debian-med-packaging mailing list