Source: oss4
Version: 4.2-build2020-4
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
oss4 could not be built reproducibly.

This is because the embedded /usr/src/oss4.tar.bz2 tarball varied its
contents based on the current user. Adding --owner=0, --group=0 and
--numeric-owner to the tar(1) call fixes this.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-03-31 10:51:34.258765424 +0100
--- b/debian/rules      2025-03-31 11:22:56.328706071 +0100
@@ -56,7 +56,7 @@
        cp debian/copyright build-tree/modules/oss4/debian/
        cp debian/changelog build-tree/modules/oss4/debian/
        chmod 755 build-tree/modules/oss4/debian/rules
-       cd build-tree/ &&  tar --mtime="@$(SOURCE_DATE_EPOCH)" --sort=name 
--mode=go=rX,u+rw,a-s -cjf oss4.tar.bz2 modules/
+       cd build-tree/ &&  tar --mtime="@$(SOURCE_DATE_EPOCH)" --sort=name 
--mode=go=rX,u+rw,a-s --owner=0 --group=0 --numeric-owner -cjf oss4.tar.bz2 
modules/
 
 build/oss4-dkms:: stamp-source-oss4
        sed -e 's#_VERSION_#$(UPSTREAM_VERSION)#' < debian/oss4-dkms.install.in 
> debian/oss4-dkms.install

Reply via email to