Your message dated Sat, 28 May 2016 11:55:56 +0000
with message-id <[email protected]>
and subject line Bug#824668: fixed in gmt 5.2.1+dfsg-6
has caused the Debian Bug report #824668,
regarding gmt: please make the build reproducible (timestamps)
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.)


-- 
824668: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824668
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gmt
Version: 5.2.1+dfsg-5
Severity: wishlist
Tags: patch upstream
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Dear Maintainer,

While working on the `€œreproducible builds'€ effort [1], we have noticed
that 'gmt' could not be built reproducibly.

The attached patch honours the SOURCE_DATE_EPOCH environment
variable [2] to get a reproducible build date from the last
debian changelog entry.
Once applied, gmt can be built reproducibly in our current
experimental framework.

Regards,
Alexis Bienvenüe.

 [1]: https://wiki.debian.org/ReproducibleBuilds
 [2]: https://reproducible-builds.org/specs/source-date-epoch/

Description: Honour SOURCE_DATE_EPOCH
 Honour the SOURCE_DATE_EPOCH environment variable to set the sources
 last modification date.
 See https://reproducible-builds.org/specs/source-date-epoch/
Author: Alexis Bienvenüe <[email protected]>

Index: gmt-5.2.1+dfsg/cmake/modules/today.c
===================================================================
--- gmt-5.2.1+dfsg.orig/cmake/modules/today.c
+++ gmt-5.2.1+dfsg/cmake/modules/today.c
@@ -5,18 +5,32 @@
 
 #include <stdio.h>
 #include <time.h>
+#include <stdlib.h>
 
 #define BUFSIZE 32
 
 int main () {
 	char today_string[BUFSIZE];
 
-	/* obtain current time as time since epoch */
-	time_t clock = time (NULL);
-
-	/* convert time since epoch to calendar time expressed as local time */
-	struct tm *p_time = localtime (&clock);
+	time_t clock;
+        struct tm *p_time;
 
+        /* See https://reproducible-builds.org/specs/source-date-epoch/ */
+        char* source_date_epoch = getenv("SOURCE_DATE_EPOCH");
+        if(source_date_epoch) {
+          /* get sources last modification date from environment */
+          clock = strtoull(source_date_epoch, NULL, 10);
+
+          /* Use UTC for reproducibility */
+          p_time = gmtime (&clock);
+        } else {
+          /* obtain current time as time since epoch */
+          clock = time (NULL);
+
+          /* convert time since epoch to calendar time expressed as local time */
+          p_time = localtime (&clock);
+        }
+        
 	/* convert tm object to custom textual representation YYYY;mm;dd;Mmm*/
 	size_t result = strftime(today_string, BUFSIZE, "%Y;%m;%d;%B", p_time);
 

--- End Message ---
--- Begin Message ---
Source: gmt
Source-Version: 5.2.1+dfsg-6

We believe that the bug you reported is fixed in the latest version of
gmt, 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.
Bas Couwenberg <[email protected]> (supplier of updated gmt 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: Sat, 28 May 2016 12:39:02 +0200
Source: gmt
Binary: gmt gmt-common libgmt5 libgmt-dev gmt-dbg gmt-doc gmt-examples
Architecture: source all amd64
Version: 5.2.1+dfsg-6
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Description:
 gmt        - Generic Mapping Tools
 gmt-common - Generic Mapping Tools - Architecture-independent files
 gmt-dbg    - Generic Mapping Tools Library - Debugging symbols
 gmt-doc    - Documentation for GMT, the Generic Mapping Tools
 gmt-examples - Example scripts illustrating the use of GMT
 libgmt-dev - Generic Mapping Tools Library - Development files
 libgmt5    - Generic Mapping Tools Library
Closes: 824668
Changes:
 gmt (5.2.1+dfsg-6) unstable; urgency=medium
 .
   * Add patch to use SOURCE_DATE_EPOCH instead of current date.
     (closes: #824668)
Checksums-Sha1:
 18b205cfd760d2e64ca42eba45b5141037e9e45f 2463 gmt_5.2.1+dfsg-6.dsc
 5e8a6395fdeb43274daa25d0088b56aa66373b74 43936 gmt_5.2.1+dfsg-6.debian.tar.xz
 12f51e4d853dba34cd260ac40429c8dfea337517 4623750 
gmt-common_5.2.1+dfsg-6_all.deb
 88a1231289a26123d01590e6e648723c1638b1c7 5725750 gmt-dbg_5.2.1+dfsg-6_amd64.deb
 34517fa016b446014f5e9fb3c47729f183561e45 57158656 gmt-doc_5.2.1+dfsg-6_all.deb
 e1fcba3c44eecd8d8348345d7ba0b400a4a33c0b 11612016 
gmt-examples_5.2.1+dfsg-6_all.deb
 02f387b7e34eb9c258596592dbf9fdaf2d35ddca 187426 gmt_5.2.1+dfsg-6_amd64.deb
 225fa9efc49537ddf12a1efec8e82370dc17a89c 714316 
libgmt-dev_5.2.1+dfsg-6_amd64.deb
 a31d95a0593cc9e6cbbac0e83f9a64e35dc1592a 1485302 libgmt5_5.2.1+dfsg-6_amd64.deb
Checksums-Sha256:
 9434c675ce9988d51b1861bd34ff64a547f4cf420b76c6e343015ac202c87f4c 2463 
gmt_5.2.1+dfsg-6.dsc
 3510f7664a656713fd3694b2cea8ecbf695b8dd579f3acde29a779c68d6e1f11 43936 
gmt_5.2.1+dfsg-6.debian.tar.xz
 d22f3e0eb062160ed9dd09cf1a2f368c506bd57679984464f21e9352daa22815 4623750 
gmt-common_5.2.1+dfsg-6_all.deb
 5f611a779164fff85421a501c39296239652bfacb5232940f22c115831a70164 5725750 
gmt-dbg_5.2.1+dfsg-6_amd64.deb
 ffd3ce972d9e06a6e9408cc8a3a702ca98b95c6e609795a5b1f9c62ee4dacced 57158656 
gmt-doc_5.2.1+dfsg-6_all.deb
 7118822c16325801c88179f05f6e57ffd9fd43943657acfce0cb66b76146bcf8 11612016 
gmt-examples_5.2.1+dfsg-6_all.deb
 965d7939535b7373812a77c4bea3ff9da6efdb7aa8101833601a9a9d2a3a8158 187426 
gmt_5.2.1+dfsg-6_amd64.deb
 9e7dc8de1e16dea2edf2c0e32e351b7b4ce6e2cb4d893b35951742edceef001b 714316 
libgmt-dev_5.2.1+dfsg-6_amd64.deb
 ed8e65957ea4a905c0d8bbfb5b6266081611a915d7528ec8645c21cc577f7c30 1485302 
libgmt5_5.2.1+dfsg-6_amd64.deb
Files:
 e4a946b7a6d227cedb1259e377e597b3 2463 science extra gmt_5.2.1+dfsg-6.dsc
 08f0aef65f024c5f7099864d97e96dbc 43936 science extra 
gmt_5.2.1+dfsg-6.debian.tar.xz
 fb85b51322bff3597ec39422e381dd44 4623750 science extra 
gmt-common_5.2.1+dfsg-6_all.deb
 5c61374396fa861fcdee953f2ac87000 5725750 debug extra 
gmt-dbg_5.2.1+dfsg-6_amd64.deb
 e9623d973bbc7479cd19852e6c24b4f2 57158656 doc extra 
gmt-doc_5.2.1+dfsg-6_all.deb
 989b236c0e7743b1c44353843c1b3b9e 11612016 doc extra 
gmt-examples_5.2.1+dfsg-6_all.deb
 fbc210c161e0201669f145663b5f7001 187426 science extra 
gmt_5.2.1+dfsg-6_amd64.deb
 6fc373614854da5880a8512bc60d325e 714316 libdevel extra 
libgmt-dev_5.2.1+dfsg-6_amd64.deb
 36f1bdd1c4025f5085fb6995590fe857 1485302 libs extra 
libgmt5_5.2.1+dfsg-6_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXSX6OAAoJEGdQ8QrojUrxpFsP/j1qlX8rUW//qm3mGJayyRBr
moYkCgdJDnvOehNasHuqRypMUCGStyyr57LlLwKWd4PuG1yKAkGPufyv/Wi6DDEH
ObkBmxHsiUg/fD1/XdNfU0ovMQnuyLYFxtjP4VbmofwArKoG2I68As/++t1lROey
O/ZS0cOPCzXRtTZtiyPNoVd6F6kwgOCQa3j3Ey0v3ymDH4C18YYDzylSABd5rSXG
AGVplHnoF79ivlyJRqOYBFT081d4Q5RvbQXoeNFOEW3ohq5hgTdUUEPq186eeZip
RAY3C19FLV7D2UPqriho22JDvnBgeCZN6zajNyo9Z7ahS/KYnwaQE+ObZJ1WeIsj
ofVESJ+kDbeY0F8WkoH0V7hpo/5SSMP8IP2nJVFpTMtDEP/26qe2pLpPoXCVfgS3
2/1iZBYinIKFh5sOjuRYyTyk/wGHPJsc8O/+IyYknORi2fRKaCm8lFt4ZbPvRtVH
lNOCqmuPpCueFp2r2ZvnHOeAOlf0crrsq+04ikP0Kok7YtDOsB5ZuZpdxs/rMB2h
E1pBZY8Bg1E92W68DThOeHFlKjcUjBhZqz8HKFpjYqp/Kma5qVU8BSVuReNXDDzS
tsZNbnJ+492W0Km/r+SPcYQUn4/XL4cd/oBGTuYg2GThgeU7pBwghMt0hznZC7Mm
2m5mXq1A5uYFSaSA65Wp
=yXfd
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to