Your message dated Sun, 04 Mar 2018 17:07:47 +0000
with message-id <[email protected]>
and subject line Bug#892021: fixed in kronosnet 1.1-2
has caused the Debian Bug report #892021,
regarding kronosnet: please make the build reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
892021: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892021
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: kronosnet
Version: 1.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that kronosnet could not be built reproducibly due to timestamps
in the documentation.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/reproducible-build.patch 2018-03-04 08:56:43.287328923
+0000
@@ -0,0 +1,56 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2018-03-04
+
+--- kronosnet-1.1.orig/man/doxyxml.c
++++ kronosnet-1.1/man/doxyxml.c
+@@ -432,6 +432,8 @@ static void print_manpage(char *name, ch
+ {
+ char manfilename[PATH_MAX];
+ char gendate[64];
++ char *endptr;
++ char *source_date_epoch;
+ FILE *manfile;
+ time_t t;
+ struct tm *tm;
+@@ -443,12 +445,38 @@ static void print_manpage(char *name, ch
+ unsigned int max_param_type_len;
+ unsigned int max_param_name_len;
+ unsigned int num_param_descs;
++ unsigned long long epoch;
+ int param_count = 0;
+ int param_num = 0;
+ struct param_info *pi;
+
+- t = time(NULL);
+- tm = localtime(&t);
++ source_date_epoch = getenv("SOURCE_DATE_EPOCH");
++ if (source_date_epoch) {
++ errno = 0;
++ epoch = strtoull(source_date_epoch, &endptr, 10);
++ if ((errno == ERANGE && (epoch == ULLONG_MAX || epoch == 0))
++ || (errno != 0 && epoch == 0)) {
++ fprintf(stderr, "Environment variable
$SOURCE_DATE_EPOCH: strtoull: %s\n", strerror(errno));
++ exit(EXIT_FAILURE);
++ }
++ if (endptr == source_date_epoch) {
++ fprintf(stderr, "Environment variable
$SOURCE_DATE_EPOCH: No digits were found: %s\n", endptr);
++ exit(EXIT_FAILURE);
++ }
++ if (*endptr != '\0') {
++ fprintf(stderr, "Environment variable
$SOURCE_DATE_EPOCH: Trailing garbage: %s\n", endptr);
++ exit(EXIT_FAILURE);
++ }
++ if (epoch > ULONG_MAX) {
++ fprintf(stderr, "Environment variable
$SOURCE_DATE_EPOCH: value must be smaller than or equal to %lu but was found to
be: %llu \n", ULONG_MAX, epoch);
++ exit(EXIT_FAILURE);
++ }
++ t = epoch;
++ } else {
++ t = time(NULL);
++ }
++ tm = gmtime(&t);
++
+ if (!tm) {
+ perror("unable to get localtime");
+ exit(1);
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2018-03-04 08:56:42.467312550 +0000
@@ -0,0 +1 @@
+reproducible-build.patch
--- End Message ---
--- Begin Message ---
Source: kronosnet
Source-Version: 1.1-2
We believe that the bug you reported is fixed in the latest version of
kronosnet, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ferenc Wágner <[email protected]> (supplier of updated kronosnet package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 04 Mar 2018 17:25:53 +0100
Source: kronosnet
Binary: libknet-dev libknet-doc libknet1
Architecture: source
Version: 1.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian HA Maintainers
<[email protected]>
Changed-By: Ferenc Wágner <[email protected]>
Description:
libknet-dev - kronosnet core switching implementation (developer files)
libknet-doc - kronosnet core API documentation
libknet1 - kronosnet core switching implementation
Closes: 892021
Changes:
kronosnet (1.1-2) unstable; urgency=medium
.
* [db289c1] New patch reproducible-build.patch
Thanks to Chris Lamb (Closes: #892021)
Checksums-Sha1:
37c41d8f50050610084dba1319d0609c253a710a 2245 kronosnet_1.1-2.dsc
852bf09f9deedafad75eb3b0fd80ffeb15aa4d27 7324 kronosnet_1.1-2.debian.tar.xz
e50adbe2b162890abb5f0f0e2a6fd4054ff9a120 6878 kronosnet_1.1-2_amd64.buildinfo
Checksums-Sha256:
6b849d8006ab642943fbf774b57a6c6741b70f2de6b86a7754e9033e482ef3b7 2245
kronosnet_1.1-2.dsc
8fd1ad23b214ccd9c1624d80ff1cb12672b3c88548cf8f720c4121834b89a39e 7324
kronosnet_1.1-2.debian.tar.xz
c71e0a9851cbb03a17da1c3e3ecfc28dc77719467b6989cec0d09ac4ba30a087 6878
kronosnet_1.1-2_amd64.buildinfo
Files:
2d7b3a8aef044ccf2133e8fc78a1da76 2245 admin optional kronosnet_1.1-2.dsc
34836c099bca77641a6404e9b3fb7cfd 7324 admin optional
kronosnet_1.1-2.debian.tar.xz
6ba092afdaaaf504a762885001ff139e 6878 admin optional
kronosnet_1.1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEwddEx0RNIUL7eugtOsj3Fkd+2yMFAlqcIf8ACgkQOsj3Fkd+
2yMRRw/5AX9AoBlfJO94ulGcIoZmsoHNylNofJeh4l0Iw+tJdspPMjipJQ7EVsTi
3i/B7lk4R/JaTL4w0dFphwSaV6PLIyIQ4dw6n8KT0qMpxMZlfggP2lB2Z/eWoLFl
fpa+cDQ1ftEgoxV37DDmN0mhFWOIjsqR1zjP+FPenJ766MUz2c/Iawb+g7C0abqI
yOOjBOAYOTWcIqtyrYybpV77d7j9NKqi7DjJj+jjCAijuluP+ZhRjEzuSamcvu3l
X4bWaRyrn1oux80kP+j9vhl0DvbwkjNVfHbM8wsgbKmk2qmSCFsegAS4A6uGqeIl
X4DtLPEsW+yX4PX1FXch3wDBQ/rztyroFzQf5IgUzp0MZG3c172mfKMKCPygyGnW
fqHVgwC68475lzfvWdJmFB9A4GsFzMaVLRvhcxeFC2Olq1GH+RoZHmC7exXwZsce
dAFa5Y/zwnA04Q14svRcjLnZkCUcJLmg9ACdtj+oz5v3b7Hq+Te6IYnFK17Vf7xy
BQqt268xLgQSNUYivuTGKAzMGxPTF2tkL0pxBPUMI8DYH+me2Mqi4VoZL1WDoIAz
CdzV3HcovmHqzUyaE6TGVV28UeCean3hgUAes1+l5KjXa+l+yDZdfMV3i4Kzk/E5
JvhUCVIRvOBbLdykhoBwIWrtI/tF6MecZAHgZJ5hasU/5y0tvkw=
=DYfN
-----END PGP SIGNATURE-----
--- End Message ---