Source: cain
Version: 1.9-8
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: umask
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that cain could not be built reproducibly.

The attached patch removes varying umasks from the build system. We
have to do it manually due to limitations in zip. Once applied, cain
can be built reproducibly in our reproducible toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/debian/rules b/debian/rules
index 4205821..f502487 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,8 @@ get-orig-source:
        find $(SRC_TMP) -name __MACOSX -type d | xargs -r rm -rf
        find $(SRC_TMP) -iname .DS_Store -exec rm -f {} +
        find $(SRC_TMP) -iname .scons* -exec rm -f {} +
+       find $(SRC_TMP) -type f -exec chmod 644 +
+       find $(SRC_TMP) -type d -exec chmod 755 +
        rm -f $(SRC_TMP)/cain-$(VERSION)/solvers/*
        rm -rf $(SRC_TMP)/cain-$(VERSION)/src/third-party/*
        cd $(SRC_TMP) && tar cvzf ../../cain_$(VERSION).orig.tar.gz 
cain-$(VERSION)
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to