[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#823824: marked as done (asymptote: please make the build reproducible (timestamps))



Your message dated Sat, 14 May 2016 00:18:52 +0000
with message-id <E1b1NIC-0002Ws-CO@franck.debian.org>
and subject line Bug#823824: fixed in asymptote 2.38-1
has caused the Debian Bug report #823824,
regarding asymptote: 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 owner@bugs.debian.org
immediately.)


-- 
823824: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823824
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: asymptote
Version: 2.37.real-1
Severity: wishlist
Tags: patch upstream
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

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

The attached patch honours the SOURCE_DATE_EPOCH environment
variable [2] to get a reproducible documentation date from the last
debian changelog entry.
Once applied, asymptote 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/



diff -Nru asymptote-2.37.real/debian/changelog asymptote-2.37.real/debian/changelog
--- asymptote-2.37.real/debian/changelog	2016-03-15 03:44:39.000000000 +0100
+++ asymptote-2.37.real/debian/changelog	2016-05-09 10:07:40.000000000 +0200
@@ -1,3 +1,9 @@
+asymptote (2.37.real-1.0~reproducible1) UNRELEASED; urgency=medium
+
+  * Honour SOURCE_DATE_EPOCH, to make the build reproducible.
+
+ -- Alexis Bienvenüe <pado@passoire.fr>  Mon, 09 May 2016 10:07:40 +0200
+
 asymptote (2.37.real-1) unstable; urgency=medium
 
   * Imported Upstream version 2.37.real - the previous 2.37 was only
diff -Nru asymptote-2.37.real/debian/patches/honour-source-date-epoch asymptote-2.37.real/debian/patches/honour-source-date-epoch
--- asymptote-2.37.real/debian/patches/honour-source-date-epoch	1970-01-01 01:00:00.000000000 +0100
+++ asymptote-2.37.real/debian/patches/honour-source-date-epoch	2016-05-09 11:54:20.000000000 +0200
@@ -0,0 +1,62 @@
+Description: Honour SOURCE_DATE_EPOCH.
+ Honour the SOURCE_DATE_EPOCH environment variable to get documentation date
+ from last debian changelog entry.
+ This makes the build reproducible.
+ See https://reproducible-builds.org/specs/source-date-epoch/.
+Author: Alexis Bienvenüe <pado@passoire.fr>
+
+Index: asymptote-2.37.real/doc/FAQ/m-html.pl
+===================================================================
+--- asymptote-2.37.real.orig/doc/FAQ/m-html.pl
++++ asymptote-2.37.real/doc/FAQ/m-html.pl
+@@ -34,8 +34,8 @@ sub html_init {
+     print HTML "<html>\n";
+     $html_needpara= -1;
+     $html_end='';
+-    chop($html_date=`date '+%d %B %Y'`);
+-    chop($html_year=`date '+%Y'`);
++    $html_date=time2str("%d %B %Y", $ENV{SOURCE_DATE_EPOCH} || time, "UTC");
++    $html_year=time2str("%Y", $ENV{SOURCE_DATE_EPOCH} || time, "UTC");
+ }
+ 
+ sub html_startup {
+Index: asymptote-2.37.real/doc/FAQ/m-lout.pl
+===================================================================
+--- asymptote-2.37.real.orig/doc/FAQ/m-lout.pl
++++ asymptote-2.37.real/doc/FAQ/m-lout.pl
+@@ -23,7 +23,7 @@
+ 
+ sub lout_init {
+     open(LOUT,">$prefix.lout");
+-    chop($dprint= `date '+%d %B %Y'`);
++    $dprint = time2str("%d %B %Y", $ENV{SOURCE_DATE_EPOCH} || time, "UTC");
+     $dprint =~ s/^0//;
+ }
+ 
+Index: asymptote-2.37.real/doc/FAQ/bfnnconv.pl
+===================================================================
+--- asymptote-2.37.real.orig/doc/FAQ/bfnnconv.pl
++++ asymptote-2.37.real/doc/FAQ/bfnnconv.pl
+@@ -21,6 +21,8 @@
+ # by the GPL.  However, I would appreciate it if you credited me if
+ # appropriate in any documents you format using BFNN.)
+ 
++use Date::Format;
++
+ @outputs=('ascii','info','html');
+ 
+ while ($ARGV[0] =~ m/^\-/) {
+@@ -135,7 +137,12 @@ while (<>) {
+                 m/([^\\])\`/ || warn "`$_'";
+                 $_= $';
+                 $cmd= $`.$1;
+-                $it= `$cmd`; chop $it;
++                if($cmd =~ /date [\"\']\+(.*?)[\"\']/) {
++                  my $format=$1;
++                  $it=time2str($format, $ENV{SOURCE_DATE_EPOCH} || time, "UTC");
++                } else {
++                  $it= `$cmd`; chop $it;
++                }
+                 print $fh $it;
+             }
+             print $fh $_;
diff -Nru asymptote-2.37.real/debian/patches/series asymptote-2.37.real/debian/patches/series
--- asymptote-2.37.real/debian/patches/series	2016-03-15 03:44:39.000000000 +0100
+++ asymptote-2.37.real/debian/patches/series	2016-05-09 10:04:55.000000000 +0200
@@ -4,3 +4,4 @@
 #old-gs-use-epswrite
 #upstream-gsl2
 #upstream-fix-mips-build-failure
+honour-source-date-epoch

--- End Message ---
--- Begin Message ---
Source: asymptote
Source-Version: 2.38-1

We believe that the bug you reported is fixed in the latest version of
asymptote, 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 823824@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated asymptote 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 14 May 2016 08:57:02 +0900
Source: asymptote
Binary: asymptote asymptote-doc
Architecture: source amd64 all
Version: 2.38-1
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description:
 asymptote  - script-based vector graphics language inspired by MetaPost
 asymptote-doc - documentation and examples for asymptote
Closes: 823824
Changes:
 asymptote (2.38-1) unstable; urgency=medium
 .
   [ Alexis Bienvenüe ]
   * Honour SOURCE_DATE_EPOCH, to make the build reproducible. (Closes: #823824)
 .
   [ Norbert Preining ]
   * Imported Upstream version 2.38
   * bump standards version, no changes necessary
Checksums-Sha1:
 bbbf6c1f37f4a50c49461e6ca0be3786c01ab09a 2051 asymptote_2.38-1.dsc
 911dc852a788f19300ae44162dbc12539de9e0b3 3460789 asymptote_2.38.orig.tar.gz
 9d30e73189fc4a37832a29c6710b9f4a32e57439 13184 asymptote_2.38-1.debian.tar.xz
 6fe88fcdf72e392b4662cc071421da031eab9e7d 8869034 asymptote-dbgsym_2.38-1_amd64.deb
 e443434f24803d36efd75815a87d12fb197cafa3 2932558 asymptote-doc_2.38-1_all.deb
 a27f192b1c26374d5f6be6042ed4515cd518220b 1677118 asymptote_2.38-1_amd64.deb
Checksums-Sha256:
 69eef8e39b110a3c3b44af346d608f88932eb08522eb804ab1e783f2133cda15 2051 asymptote_2.38-1.dsc
 e9c6dbb3fed27cbaf9ba01fd2264f0cff51781466acb29e76418bed801debcb7 3460789 asymptote_2.38.orig.tar.gz
 7e5250cf499d4b1dadbf82383901c9bca31701dec8f39e6d74b988aad872c514 13184 asymptote_2.38-1.debian.tar.xz
 236eafd9f2f717e376d8ddd20c5e95b42cc85450486cb91ad1f9e44bffe987e6 8869034 asymptote-dbgsym_2.38-1_amd64.deb
 03cb52c66bb687ae2d844ea681033e5101c32af83a445993260ee023495d641b 2932558 asymptote-doc_2.38-1_all.deb
 c597a3bad9d8d94907f554779a3a3054ae4a14b37f2ce07f03a550ef4424ba29 1677118 asymptote_2.38-1_amd64.deb
Files:
 45c8ab3355fb7394e3c5b38a99996735 2051 tex optional asymptote_2.38-1.dsc
 aca55728252777d58ad6eeb2ee550b10 3460789 tex optional asymptote_2.38.orig.tar.gz
 e2248c949bd1895d5ee96421a6a68178 13184 tex optional asymptote_2.38-1.debian.tar.xz
 8d4b8ebb3815f32171ed8a1fe1a6ff54 8869034 debug extra asymptote-dbgsym_2.38-1_amd64.deb
 2fa22751bb4b92ea07e992d9b84170c0 2932558 doc optional asymptote-doc_2.38-1_all.deb
 bb1862edeb6c490e4efd60c6703bb07f 1677118 tex optional asymptote_2.38-1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJXNmxgAAoJEOwAuNrTImaqkEMH/ju5VyJ09z4ue+K1ee/N02pr
Ft13WEps09sXMgk9xZBaT2kfR3uxKVn4eTnvb3/W7nXbog82JHX2sVUoTSmnr6tq
LKw+VKFIsm3O1Pde/VeIgIjwjMlvgls8aZDxkyygvRDo7xrQDh0HqfUS4AEgUlMk
wVjHxh0yde+N/uKavoF6dwQHMqJReQPLp6XM3UitQryvC1u5CbwcrlMUEFktVk3k
42CQXYQ/4rNzskKxT+R/go+9RykMKgZ9rUBvYcakq3yrWnfH0Q3Mkf8RG/QbajMD
ihAZHFD/69POtf8LamjCqqgQ0Gd6ReidrdPS7KqB7HeoE3zmMq9dwNYLU99S9u0=
=GO9y
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: