Source: usb-modeswitch-data
Version: 20170806-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
usb-modeswitch-data could not be built reproducibly.

This is because it created a .tar archive whose members inherited the
uid/gid of the build user. A patch is thus attached that specifies
that the tar should encode them with uid 0 (root).

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2019-12-07 09:32:20.715245048 
+0000
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2019-12-07
+
+--- usb-modeswitch-data-20170806.orig/Makefile
++++ usb-modeswitch-data-20170806/Makefile
+@@ -31,7 +31,7 @@ db-install: files-install
+ db-install-packed:
+       @# Create a compressed tar without gzip timestamp, so tar.gz
+       @# differs only if content is different
+-      cd ./usb_modeswitch.d; find * -print0 | LC_ALL=C sort -z | tar 
--no-recursion --null --files-from=- --mode=go=rX,u+rw,a-s -cf ../configPack.tar
++      cd ./usb_modeswitch.d; find * -print0 | LC_ALL=C sort -z | tar 
--no-recursion --null --files-from=- --mode=go=rX,u+rw,a-s --owner=0 --group=0 
--numeric-owner -cf ../configPack.tar
+       gzip -f9n ./configPack.tar
+       install --mode=644 -t $(PREFIX)/share/usb_modeswitch ./configPack.tar.gz
+       rm -f ./configPack.tar.gz
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2019-12-07 09:32:19.587263901 +0000
@@ -0,0 +1 @@
+reproducible-build.patch

Reply via email to