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

Bug#1005727: marked as done (ruby-tioga: reproducible builds: Embedded date in sty file)



Your message dated Sat, 02 Dec 2023 01:19:29 +0000
with message-id <E1r9EfJ-00H0Q5-Lh@fasolo.debian.org>
and subject line Bug#1005727: fixed in ruby-tioga 1.19.1-5
has caused the Debian Bug report #1005727,
regarding ruby-tioga: reproducible builds: Embedded date in sty file
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.)


-- 
1005727: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005727
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: ruby-tioga
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The tioga.sty.gz embeds the current date:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/ruby-tioga.html

  ./usr/share/doc/ruby-tioga/tioga.sty.gz

  \ProvidesPackage{tioga}[2023/03/16]
vs.
  \ProvidesPackage{tioga}[2022/02/12]

The attached patch fixes this by using the SOURCE_DATE_EPOCH environment
variable instead of the current time, which is typically set from the
timestamp in debian/changelog.


With this patch applied, ruby-tioga should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining ruby-tioga!


live well,
  vagrant
From 59fec7800e70a9dc93a52121a813b8d1226222c6 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 14 Feb 2022 00:19:12 +0000
Subject: [PATCH] misc/mk_tioga_sty.rb: Use a consistent date when generating
 the sty file.

If the SOURCE_DATE_EPOCH environment variable is available, use that
instead of the current time to set the date.

https://reproducible-builds.org/docs/source-date-epoch/
---
 misc/mk_tioga_sty.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/misc/mk_tioga_sty.rb b/misc/mk_tioga_sty.rb
index dcbe275..6bb4fc0 100644
--- a/misc/mk_tioga_sty.rb
+++ b/misc/mk_tioga_sty.rb
@@ -42,7 +42,11 @@ color_specs + "\nEnd_of_preamble\n" +
 
 out.close
 
-date = Date::today
+if ENV['SOURCE_DATE_EPOCH'].nil?
+  date = Date::today
+else
+  date = Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime
+end
 str_date = sprintf "%04d/%02d/%02d", date.year, date.month, date.day
 
 
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: ruby-tioga
Source-Version: 1.19.1-5
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

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

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated ruby-tioga 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: Fri, 01 Dec 2023 16:57:54 -0800
Source: ruby-tioga
Architecture: source
Version: 1.19.1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 1005727 1047200
Changes:
 ruby-tioga (1.19.1-5) unstable; urgency=medium
 .
   * QA upload.
   * debian/rules: Remove stray files not caught by clean target.
     (Closes: #1047200)
   * debian/patches: Use a consistent date when generating the sty file.
     (Closes: #1005727)
Checksums-Sha1:
 1be864a2899c477edbe9d7a07dcc2a239f9abf0e 1383 ruby-tioga_1.19.1-5.dsc
 4d090fbce317e06a3e364abedda0681f17f5981e 9148 ruby-tioga_1.19.1-5.debian.tar.xz
 ebfafef70b382d532efe66bbd28172f2b0fcea44 9427 ruby-tioga_1.19.1-5_amd64.buildinfo
Checksums-Sha256:
 c389cdff5997f5efaeab223bfd879d86e1e224256856a8f63974b6ac36d7402e 1383 ruby-tioga_1.19.1-5.dsc
 d384f47105c367206729ee908000f667b2910c054963a3e625162c0703a86cc6 9148 ruby-tioga_1.19.1-5.debian.tar.xz
 6f25ca0731a4a4f73a0526879eff63b217c6631d5b86431bd4a5d5f40224b2e4 9427 ruby-tioga_1.19.1-5_amd64.buildinfo
Files:
 212a169e1e13557a2d60b2da7e187dd7 1383 ruby optional ruby-tioga_1.19.1-5.dsc
 fe97ebb2376c3076ef2fdf6a3cb02942 9148 ruby optional ruby-tioga_1.19.1-5.debian.tar.xz
 9500a650d1b5cc3eaa3b5e60717baf2b 9427 ruby optional ruby-tioga_1.19.1-5_amd64.buildinfo

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

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZWqDfSAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqiDbAQDMBJ411O+V5jRN
87zA8TZ8GCpWs5t8reVLv09nAp13BQEAuWfNJG1Pt0wi2+Yv54Ma++PNEEV3rYKh
+AflVmKBywA=
=6pYR
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: