Source: usb-modeswitch-data Version: 20150627-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: umask X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that usb-modeswitch-data could not be built reproducibly. The permissions inside a tarball vary because of different umasks. The attached patch tells tar to normalize the permissions. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/02_reproducible_build.patch b/debian/patches/02_reproducible_build.patch new file mode 100644 index 0000000..67e05c0 --- /dev/null +++ b/debian/patches/02_reproducible_build.patch @@ -0,0 +1,13 @@ +Index: usb-modeswitch-data-20150627/Makefile +=================================================================== +--- usb-modeswitch-data-20150627.orig/Makefile ++++ usb-modeswitch-data-20150627/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; tar -cf ../configPack.tar * ++ cd ./usb_modeswitch.d; tar --mode=go=rX,u+rw,a-s -cf ../configPack.tar * + gzip -f9n ./configPack.tar + install --mode=644 -t $(PREFIX)/share/usb_modeswitch ./configPack.tar.gz + rm -f ./configPack.tar.gz diff --git a/debian/patches/series b/debian/patches/series index ae04af5..6f33bf9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01_no_udev_reload.patch +02_reproducible_build.patch
signature.asc
Description: OpenPGP digital signature