Your message dated Thu, 14 Jul 2016 04:36:43 +0000
with message-id <[email protected]>
and subject line Bug#831044: fixed in gretl 2016c-2
has caused the Debian Bug report #831044,
regarding gretl: 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.)
--
831044: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831044
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gretl
Version: 2016b-3
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 gretl could not be built reproducibly.
Patch attached. It can probably be sent upstream.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible_build.patch 1970-01-01 02:00:00.000000000
+0200
--- b/debian/patches/reproducible_build.patch 2016-07-13 23:08:07.738744702
+0200
@@ -0,0 +1,43 @@
+--- gretl-2016b.orig/builddate.c
++++ gretl-2016b/builddate.c
+@@ -2,11 +2,40 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
++#include <errno.h>
++#include <limits.h>
+
+ void current_ymd (int *y, int *m, int *d)
+ {
+ time_t t = time(NULL);
+ struct tm *lt = localtime(&t);
++ char *endptr;
++ char *source_date_epoch = getenv("SOURCE_DATE_EPOCH");
++ unsigned long long 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;
++ lt = gmtime(&t);
++ }
+
+ *y = lt->tm_year + 1900;
+ *m = lt->tm_mon + 1;
--- a/debian/patches/series 1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/series 2016-07-13 23:08:04.154727493 +0200
@@ -0,0 +1 @@
+reproducible_build.patch
--- End Message ---
--- Begin Message ---
Source: gretl
Source-Version: 2016c-2
We believe that the bug you reported is fixed in the latest version of
gretl, 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.
Dirk Eddelbuettel <[email protected]> (supplier of updated gretl 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: SHA1
Format: 1.8
Date: Wed, 13 Jul 2016 21:05:08 -0500
Source: gretl
Binary: gretl libgretl1 libgretl1-dev gretl-common gretl-data gretl-doc
Architecture: source all amd64
Version: 2016c-2
Distribution: unstable
Urgency: medium
Maintainer: Dirk Eddelbuettel <[email protected]>
Changed-By: Dirk Eddelbuettel <[email protected]>
Description:
gretl - GNU Regression, Econometric & Time-Series Library
gretl-common - GNU Regression, Econometric & Time-Series Library -- scripts
pack
gretl-data - GNU Regression, Econometric & Time-Series Library -- data package
gretl-doc - GNU Regression, Econometric & Time-Series Library -- doc package
libgretl1 - GNU Regression, Econometric & Time-Series Library -- library pack
libgretl1-dev - GNU Regression, Econometric & Time-Series Library --
development
Closes: 831044
Changes:
gretl (2016c-2) unstable; urgency=medium
.
* debian/patches/reproducible_build.patch: Added patch kindly supplied
by Chris Lamb to help with reproducible builds (Closes: #831044)
Checksums-Sha1:
afc6268b9e2aef1318f132fd0b59608c3e7ca0ca 2321 gretl_2016c-2.dsc
e4c6e5fffbba620ff40e7adfe3eb3b9402b26585 14940 gretl_2016c-2.debian.tar.xz
7a721da0ec2dd770faed973dad8f4d9aa002f646 517590 gretl-common_2016c-2_all.deb
b1417edc3252e42fa7ec26483216c83c3cc36a8d 2160984 gretl-data_2016c-2_all.deb
b25cb39b3ba66176f49fa24f6ddcce096b4cd70a 2577932 gretl-dbgsym_2016c-2_amd64.deb
9af87fa73df2927ddc91c15e8c599ed0da5e6a52 1692528 gretl-doc_2016c-2_all.deb
8e8413eb5d535ccf8f4e7577f6b627ad76a3b1b0 3101394 gretl_2016c-2_amd64.deb
11ac38c0127e0d7c6d0afaa9168b8ec4433bb1aa 2461674
libgretl1-dbgsym_2016c-2_amd64.deb
69463cbc2a33cbab692510b07be45747bcbcf826 1252470
libgretl1-dev_2016c-2_amd64.deb
09a8a7f63ecfb9ab08ed468af7930517fefd84c9 1135452 libgretl1_2016c-2_amd64.deb
Checksums-Sha256:
cc2576f8197f56587845258a6c5e7740a2f51b5bb94acb9bc9322f9d339f3fd3 2321
gretl_2016c-2.dsc
2e061811354c402e1bdabfeae03fa15288d2552e01a9016c34b9558671aab063 14940
gretl_2016c-2.debian.tar.xz
ec6a5f3a52b23f9de53c8dcdeedfdf60712d2aaba2ddf116ea2aa4b488faacb0 517590
gretl-common_2016c-2_all.deb
7d1b867b3ef2292a78b700b0c3ca748c6b03de1123386e8d84dac051e41b7d12 2160984
gretl-data_2016c-2_all.deb
af996a3c8a2e02f38cb823ec333b63e70276cb3a27083a8e7c7fca3bb080b930 2577932
gretl-dbgsym_2016c-2_amd64.deb
c6d81e4ea4c9205eafd063ec707360c40f713c518aa5b6d551756d04922601c1 1692528
gretl-doc_2016c-2_all.deb
6b41646f8ef00d8a8586626586b76ca5cab36b19c287849ab35dba5202db621c 3101394
gretl_2016c-2_amd64.deb
cf0d2bd7989c4baf14501e565bdcd082d395368e3f2a81ac7f64b9e208d3d285 2461674
libgretl1-dbgsym_2016c-2_amd64.deb
8595d661409ce9b1c0847cd739fde15060e7e2d2a3f0132f6e98866316d550fe 1252470
libgretl1-dev_2016c-2_amd64.deb
065076a43c0c86d1a257232a4f123da8c693cda404abd3e1eb22accae673e3ba 1135452
libgretl1_2016c-2_amd64.deb
Files:
ca1eaa9af3ede607fcd2041e3fd7d1ff 2321 math optional gretl_2016c-2.dsc
47f08b39b098af3d44d5410d05a042b9 14940 math optional
gretl_2016c-2.debian.tar.xz
fe8b6eabea27ac5a3b2792ea94a745d4 517590 math optional
gretl-common_2016c-2_all.deb
185202e7ce87bacd24848a65a430127a 2160984 math optional
gretl-data_2016c-2_all.deb
6a866b7b0e66e0f78433c3a83c05afc9 2577932 debug extra
gretl-dbgsym_2016c-2_amd64.deb
4e017c78352cc814d893feaf955fcc0b 1692528 doc optional gretl-doc_2016c-2_all.deb
1b4ae94b5a00e3056800031c8be8ac57 3101394 math optional gretl_2016c-2_amd64.deb
24a33645eb01085a14d1583127d9096f 2461674 debug extra
libgretl1-dbgsym_2016c-2_amd64.deb
5f31b9f5874b74c9bd41b1b727713c0c 1252470 libdevel optional
libgretl1-dev_2016c-2_amd64.deb
0ed560c82f40cf6d9cfde666e243438d 1135452 libs optional
libgretl1_2016c-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIVAwUBV4b1JaFIn+KrmaIaAQIpQw//a9/yRab1PvJ4//hUHEOUhIhOkdclupGk
jGxMAfH0W9HpKwe7r8ij/3vpPGQ43NWblNxDkndJO1QfMYYck9f4y4KJysswxSSB
VWZbKEIdRQO49O/ymETfdHCXQVlOXVn/sm+yfv1M4frxja0k+cbTuPIcsA2F/57w
HRprYcQg1J8uIqwu3uxGSKNystXVg0eskHhYL8VgmLW918mfuvJqOHNH0YH4l6OV
MYRktWNDqchhzww2lawuGlO9aHTT9L3Tbw/GcnbJS8xGJtQMpe+OEByBOcATnTwJ
doIUA67F1Kt2KYsOhKJXDwAvUZD3+vdJfPWHarO9mLza/DXcwHgje1ns0sNrJ5gZ
0p0GHUeSx2dy6bGSnfwo3TKrYt67PIcwyo6rc6SK3Aq9AR5IY/1D+bllrTIuLlow
Q+G50XkfgdXhDMMW4K6l/6oYqCMqy6HseW4PBK/tIxXJR1L3iAwcCkhtNrMHcYKT
8YW7WMKtL4833Y3D8mBjY/Af7j7ZJixkGjJmSKszPHFbufi22eUCZIz6yZWy9iKb
jJ7RoozmGHy/TSLbBjn7eLpQbV5HDp3tbHZsWuiW5EgJGbqx6tfiyi8Ui0xhcxVc
Rs9ApfWgL4Z/ZNybL6bGq8T2w7jIB4L/NupODFFzWZI6k8/IqPgnHeTOJMMIuOQL
7QfcYSpP2HA=
=14yw
-----END PGP SIGNATURE-----
--- End Message ---