Source: cain
Version: 1.9-8
Severity: wishlist
Tags: patch
Usertags: umask


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.



     : :'  :     Chris Lamb
     `. `'` /
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 
Reproducible-builds mailing list

Reply via email to