Bug#914091: googletest: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 19 08:56:08 GMT 2018


Source: googletest
Version: 1.8.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that googletest could not be built reproducibly.

This is because it installs a rather useless autom4te.cache output
into the binary. Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2018-11-19 08:26:26.553769948 +0100
--- b/debian/rules	2018-11-19 09:08:11.762373912 +0100
@@ -32,6 +32,7 @@
 
 override_dh_install:
 	dh_install
+	find debian/googletest/usr/src/googletest -iname autom4te.cache -type d | xargs rm -rf
 	find debian/googletest/usr/src/googletest -iname LICENSE -o -iname .gitignore -o -iname '*.pyc' | xargs rm
 	find debian/googletest/usr/src/googletest -iname '*.py' | xargs chmod -x
 	rm -rf debian/googletest/usr/src/googletest/*/msvc


More information about the Reproducible-bugs mailing list