Bug#1039610: pnetcdf: reproducible-builds: timestamp and build path embedded pnetcdf-config

Vagrant Cascadian vagrant at reproducible-builds.org
Tue Jun 27 20:27:01 BST 2023


Source: pnetcdf
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The build date is embedded in /usr/bin/pnetcdf-config:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/pnetcdf.html

  CFLAGS="-g·-O2·-ffile-prefix-map=/build/1st/pnetcdf-1.12.3=.·-fstack-protector-strong...
  vs.
  CFLAGS="-g·-O2·-ffile-prefix-map=/build/2/pnetcdf-1.12.3/2nd=.·-fstack-protector-strong...

  config_date="Mon·Jun·19·19:34:17·-12·2023"
  vs.
  config_date="Tue·Jun·20·21:34:17·+14·2023"

The attached patch fixes this by replacing these strings with
placeholder values in debian/rules.

According to my local tests, with this patch applied pnetcdf should
build reproducibly on tests.reproducible-builds.org once it migrates to
debian/trixie!  Unfortunately, there are still other outstanding issues
with build paths, which are tested in unstable or experimental.

Thanks for maintaining pnetcdf!

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Remove-timestamp-and-build-path-from-pn.patch
Type: text/x-diff
Size: 837 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230627/435a348c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230627/435a348c/attachment.sig>


More information about the Reproducible-bugs mailing list