<div dir="ltr">Package: golang<div>Version: 1.4.3</div><div><br></div><div>This bug refers to <a href="https://wiki.debian.org/ReproducibleBuilds/TimestampsInGzipHeaders">https://wiki.debian.org/ReproducibleBuilds/TimestampsInGzipHeaders</a></div><div><br></div><div>golang ships with several prebuilt gzip test cases that are being modified (mtime is being replaced) during the Debian build process.  This means that functionally identical files have a unique hash for every release of the Debian golang-src package.</div><div><div>./usr/share/go/src/encoding/json/testdata/code.json.gz</div><div>./usr/share/go/src/debug/elf/testdata/hello-world-core.gz</div><div>./usr/share/go/src/compress/gzip/testdata/issue6550.gz<br></div><div><br></div><div>Expected behavior is that these test files match the files shipped from upstream.</div><div><br></div><div>Verification (expected date in my timezone is Tue Nov 15 04:51:22 2011):</div><div>dpkg -x debs/debian/golang-src_1.6-1_amd64.deb out<br></div><div><div>file out/usr/share/go/src/compress/gzip/testdata/issue6550.gz </div><div>out/usr/share/go/src/compress/gzip/testdata/issue6550.gz: gzip compressed data, extra field, encrypted, last modified: Tue Mar  1 11:10:32 2016</div></div><div><br></div><div>dh_strip_nondeterminism is probably being run because of the build dependency on dh_strip_nondeterminism.  The build log shows it running:</div><div><a href="https://buildd.debian.org/status/fetch.php?pkg=golang&arch=i386&ver=2%3A1.4.3-2&stamp=1443738946">https://buildd.debian.org/status/fetch.php?pkg=golang&arch=i386&ver=2%3A1.4.3-2&stamp=1443738946</a><br></div><div><br></div><div>To fix this two things should be done.  The lint warning needs to be addressed and exclude arguments need to be supplied in a build rules override.</div><div><br></div><div>Here's the lint warning:</div><div><div><a href="https://lintian.debian.org/tags/package-contains-timestamped-gzip.html">https://lintian.debian.org/tags/package-contains-timestamped-gzip.html</a><br></div><div>Here's an example lint override for that warning:</div><div><a href="https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-klauspost-compress.git/tree/debian/golang-github-klauspost-compress-dev.lintian-overrides">https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-klauspost-compress.git/tree/debian/golang-github-klauspost-compress-dev.lintian-overrides</a><br></div><div>which could eg. be added to:</div><div><a href="https://anonscm.debian.org/cgit/pkg-golang/golang.git/tree/debian/golang-src.lintian-overrides">https://anonscm.debian.org/cgit/pkg-golang/golang.git/tree/debian/golang-src.lintian-overrides</a><br></div><div><br></div><div>The override would presumably be called override_dh_strip_nondeterminism and it would run the strip with --exclude "issue6550.gz" --exclude "hello-world-core.gz" --exclude "code.json.gz"</div><div><br></div><div>Turning off dh_strip_nondeterminism would result in the man pages having non deterministic dates, which is not desirable.</div><div><br></div><div><br></div><div><br></div>
</div></div></div>