Source: cain
Version: 1.9-8
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: umask
X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / 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)