Bug#1037269: freetds: reproducible-builds: time derived build number embedded in documentation
Vagrant Cascadian
vagrant at reproducible-builds.org
Fri Jun 9 22:46:42 BST 2023
Source: freetds
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
A build number derived from the build time is embedded in various
/usr/share/doc/freetds-doc/reference/*_source.html files:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/freetds.html
#define·TDS_VERSION_BUILD_NUMBER·856
vs.
#define·TDS_VERSION_BUILD_NUMBER·1256
The attached patch to configure.ac fixes this by instead using the value of
SOURCE_DATE_EPOCH for the BUILD_NUMBER if it is set, and falling back to
the default behavior if it is not set.
Alternately, I tried instead passing --date=@$SOURCE_DATE_EPOCH to the
various date calls, but for some reason that was not sufficient.
According to my local tests, with this patch applied freetds should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining freetds!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure.ac-Use-SOURCE_DATE_EPOCH-as-BUILD_NUMBER-i.patch
Type: text/x-diff
Size: 1012 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230609/b216f31e/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/20230609/b216f31e/attachment.sig>
More information about the Reproducible-bugs
mailing list