Debian Bug report logs - #1035331
jackd2: reproducible-builds: Locale and timezone dependent date in manpages

version graph

Package: src:jackd2; Maintainer for src:jackd2 is Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 30 Apr 2023 23:21:05 UTC

Severity: normal

Tags: patch

Fixed in version jackd2/1.9.21~dfsg-3

Done: Nicholas D Steeves <sten@debian.org>

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1035331; Package src:jackd2. (Sun, 30 Apr 2023 23:21:07 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Sun, 30 Apr 2023 23:21:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: jackd2: reproducible-builds: Locale and timezone dependent date in manpages
Date: Sun, 30 Apr 2023 16:20:14 -0700
[Message part 1 (text/plain, inline)]
Source: jackd2
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps locale
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The manpages may contain a locale-translated month name, as well as a
different date based on the build environment timezone.

For jackd.1:

  .TH "JACKD" "1" "January 2023" "1.9.21" ""
  vs.
  .TH "JACKD" "1" "jaanuar 2023" "1.9.21" ""

  .TH "JACKD" "1" "2023-04-30" "1.9.21" ""
  vs.
  .TH "JACKD" "1" "2023-05-01" "1.9.21" ""

The attached patches fix this by using a numeric date specified with the
UTC timezone.

Thanks for maintaining jackd2!

live well,
  vagrant
[0001-man-fill_template-Use-numeric-year-month-date-for-ma.patch (text/x-diff, inline)]
From 5fe932e274c720b68aff40125f1069fde1490935 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 30 Apr 2023 15:44:21 -0700
Subject: [PATCH 1/5] man/fill_template: Use numeric year-month-date for
 manpage.

The month may be rendered for the locale of the build environment.

https://reproducible-builds.org/docs/locales/
---
 man/fill_template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/fill_template b/man/fill_template
index 368cb1b..d1df18d 100644
--- a/man/fill_template
+++ b/man/fill_template
@@ -4,8 +4,8 @@ d=""
 
 if [ "$2" == "True" ]; then
   for i in *.0 ; do
-    sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < ${i} > ${i%%0}1
+    sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1
   done
 else
-  sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < jackd.0 > jackd.1
+  sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < jackd.0 > jackd.1
 fi
-- 
2.39.2

[0002-man-fill_template-Use-UTC-date-to-avoid-differences-.patch (text/x-diff, inline)]
From 021e05e61bc9ae982063d666de33473e391a0602 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 30 Apr 2023 15:52:22 -0700
Subject: [PATCH 2/5] man/fill_template: Use UTC date to avoid differences
 based on timezone.

https://reproducible-builds.org/docs/timezones/
---
 man/fill_template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/fill_template b/man/fill_template
index d1df18d..641cab8 100644
--- a/man/fill_template
+++ b/man/fill_template
@@ -1,6 +1,6 @@
 #!/bin/sh
 d=""
-[ -z "$SOURCE_DATE_EPOCH" ] || d=--date=@$SOURCE_DATE_EPOCH
+[ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH"
 
 if [ "$2" == "True" ]; then
   for i in *.0 ; do
-- 
2.39.2

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1035331; Package src:jackd2. (Wed, 03 May 2023 20:12:03 GMT) (full text, mbox, link).


Acknowledgement sent to Nicholas D Steeves <sten@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Wed, 03 May 2023 20:12:03 GMT) (full text, mbox, link).


Message #10 received at 1035331@bugs.debian.org (full text, mbox, reply):

From: Nicholas D Steeves <sten@debian.org>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1035331@bugs.debian.org
Subject: Re: Bug#1035331: jackd2: reproducible-builds: Locale and timezone dependent date in manpages
Date: Wed, 03 May 2023 16:09:24 -0400
[Message part 1 (text/plain, inline)]
Hi Vagrant!

Vagrant Cascadian <vagrant@reproducible-builds.org> writes:

> Source: jackd2
> Severity: normal
> Tags: patch
> User: reproducible-builds@lists.alioth.debian.org
> Usertags: timestamps locale
> X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
>
> The manpages may contain a locale-translated month name, as well as a
> different date based on the build environment timezone.
>

Wow, these bugs lurk everywhere.

> Subject: [PATCH 1/5] man/fill_template: Use numeric year-month-date for
>  manpage.
>

This bug contains [PATCH 1/5], and #1035329 (reproducible-builds:
Missing manpages when /bin/sh -> dash) contains [PATCH 3/5].  Did you
intend for {2,4,5} to also reach src:jackd2?

P.S. Nice find @ #1035329, because that fix should also solve #1035308
I wonder if the release team will ack an update for that one?

Best,
Nicholas
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1035331; Package src:jackd2. (Wed, 03 May 2023 22:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Wed, 03 May 2023 22:15:03 GMT) (full text, mbox, link).


Message #15 received at 1035331@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: Nicholas D Steeves <sten@debian.org>, 1035331@bugs.debian.org
Subject: Re: Bug#1035331: jackd2: reproducible-builds: Locale and timezone dependent date in manpages
Date: Wed, 03 May 2023 15:10:42 -0700
[Message part 1 (text/plain, inline)]
On 2023-05-03, Nicholas D Steeves wrote:
> Vagrant Cascadian <vagrant@reproducible-builds.org> writes:
>> The manpages may contain a locale-translated month name, as well as a
>> different date based on the build environment timezone.
>>
>
> Wow, these bugs lurk everywhere.
>
>> Subject: [PATCH 1/5] man/fill_template: Use numeric year-month-date for
>>  manpage.
>>
>
> This bug contains [PATCH 1/5], and #1035329 (reproducible-builds:
> Missing manpages when /bin/sh -> dash) contains [PATCH 3/5].  Did you
> intend for {2,4,5} to also reach src:jackd2?

Sorry for the confusion, those other "missing" patches were just cruft
from my dgit workflow. Pretty sure I got the right patches included in
the respective bug reports. :)


> P.S. Nice find @ #1035329, because that fix should also solve #1035308
> I wonder if the release team will ack an update for that one?

Can always ask... of course, my bias is to get reproducibility issues
fixed. :)


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Message sent on to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1035331. (Thu, 04 May 2023 20:03:05 GMT) (full text, mbox, link).


Message #18 received at 1035331-submitter@bugs.debian.org (full text, mbox, reply):

From: Nicholas D Steeves <noreply@salsa.debian.org>
To: 1035331-submitter@bugs.debian.org
Subject: Bug#1035331 marked as pending in jackd2
Date: Thu, 04 May 2023 20:01:58 +0000
Control: tag -1 pending

Hello,

Bug #1035331 in jackd2 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/multimedia-team/jackd2/-/commit/9da7dd056946baf7cc1fff2b25523d4eac014af5

------------------------------------------------------------------------
Import Vagrant Cascadian's reproducible builds patches:

  - Add 0001-man-fill_template-Use-numeric-year-month-date-for-ma.patch.
    Without this patch, manpages may contain a locale-translated month name,
    as well as a different date based on the build environment timezone.
    (Closes: #1035331).
  - Add 0003-man-fill_template-Use-POSIX-compatible-comparison.patch.  When
    built in an environment where /bin/sh -> bash, all of these manpages are
    built and included in the package.  When /bin/sh -> dash, the manpages
    that users depend on are absent from bin:jackd2.
    (Closes: #1035329, #1035308).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1035331



Added tag(s) pending. Request was from Nicholas D Steeves <noreply@salsa.debian.org> to 1035331-submitter@bugs.debian.org. (Thu, 04 May 2023 20:03:05 GMT) (full text, mbox, link).


Reply sent to Nicholas D Steeves <sten@debian.org>:
You have taken responsibility. (Thu, 04 May 2023 20:39:07 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Thu, 04 May 2023 20:39:07 GMT) (full text, mbox, link).


Message #25 received at 1035331-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1035331-close@bugs.debian.org
Subject: Bug#1035331: fixed in jackd2 1.9.21~dfsg-3
Date: Thu, 04 May 2023 20:34:22 +0000
Source: jackd2
Source-Version: 1.9.21~dfsg-3
Done: Nicholas D Steeves <sten@debian.org>

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

Debian distribution maintenance software
pp.
Nicholas D Steeves <sten@debian.org> (supplier of updated jackd2 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: Thu, 04 May 2023 15:29:39 -0400
Source: jackd2
Architecture: source
Version: 1.9.21~dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Nicholas D Steeves <sten@debian.org>
Closes: 1035308 1035329 1035331
Changes:
 jackd2 (1.9.21~dfsg-3) unstable; urgency=medium
 .
   * Team upload.
   * Import Vagrant Cascadian's reproducible builds patches:
     - Add 0001-man-fill_template-Use-numeric-year-month-date-for-ma.patch.
       Without this patch, manpages may contain a locale-translated month name,
       as well as a different date based on the build environment timezone.
       (Closes: #1035331).
     - Add 0002-man-fill_template-Use-UTC-date-to-avoid-differences-.patch.
       This patch solves variance in generated man page date stamps introduced
       when man pages generated in different timezones are compared to each
       other.
     - Add 0003-man-fill_template-Use-POSIX-compatible-comparison.patch.  When
       built in an environment where /bin/sh -> bash, all of these manpages are
       built and included in the package.  When /bin/sh -> dash, the manpages
       that users depend on are absent from bin:jackd2.
       (Closes: #1035329, #1035308).
Checksums-Sha1:
 e2990c260bed12cae37d040fa3b2428d962e1bbb 2524 jackd2_1.9.21~dfsg-3.dsc
 7015d432481e23d32146f27e1c874fec240eea73 34864 jackd2_1.9.21~dfsg-3.debian.tar.xz
 27f455bc064d01fa445cff7f90faa4d2236bea0b 10030 jackd2_1.9.21~dfsg-3_amd64.buildinfo
Checksums-Sha256:
 1494db8065741543f09a6c345b1f5844b18758679e4d3f04850b7f141455b8c9 2524 jackd2_1.9.21~dfsg-3.dsc
 3901f5784479abdf32fffefd162cea36865b2045f60f1ba1636ca86b48a52894 34864 jackd2_1.9.21~dfsg-3.debian.tar.xz
 456d2ac5319eb238adb6984b9d4b4f172c7bc0f0c795fefecf10addca13d3ec9 10030 jackd2_1.9.21~dfsg-3_amd64.buildinfo
Files:
 b46bf47d77982163baea99f9419a2cd0 2524 sound optional jackd2_1.9.21~dfsg-3.dsc
 c45d589dfeea3f99153e871dc2d09a0a 34864 sound optional jackd2_1.9.21~dfsg-3.debian.tar.xz
 e6f9eb8b5bc955690eaca0fc470c9c74 10030 sound optional jackd2_1.9.21~dfsg-3_amd64.buildinfo

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

iQIzBAEBCgAdFiEE4qYmHjkArtfNxmcIWogwR199EGEFAmRUC+kACgkQWogwR199
EGHovA//WGsWH0LYoQsHtP0FZi0Y4VOTTKI3UvzunIDnhWIk8K4/jFC4VdMG7gm9
fTbW5sI+vjsKxOvnKbBwClMV+wW0Jab6OtW1ET1Gu1CznBr6AH08dx8hX+cHVHQU
YSCpjepCqtw2icFTjpMiFpg6FtlT0QZD0gXfS5QXTpq1EJMBE2V5vd/kjkINcEbQ
whDbxtwzpqdZjYrfytCcQNR/Qus0ppcYwA6kjeUoBcJtQndjIzWGvCXIF3SVeWMW
g900EWMJgp0padA3KgP7bFy3EYfepysVhDbxIXcGPpZqS0t5pGvywLd29Go488Y0
zdAwe0sUrt89TQpt7yjtjvjeLjxtzkdBrE+o9LVMdsD0HeGZkF1TB9Rya/noOZ+j
+ROqqxCoItGlyYs2IQxZKU1vEYmVd9onvEZJp+afD8opzexBg/OrdkJCOC/ZhfY7
2erDOyiBD1GWqtPD5lfdrDWd3TOsuIqTIw30IlaAlra4MGUl7NEvhnN9Ptbdt1rb
cqk0Ucy8d8LP9sWJjTFs5S5EREtsCekYr1gXqFoXoYoZY1DGQx8iYpw4ogocg4Tz
xchnGxstbYzWPBUSArMWP4HCLPnzc5PhqkCZvHNqX+f2B0iXcSZsxlQuoi00rGRV
Yi2Cbc8AwchnBLEt4Z/WH3n9GEbHi6Rb40P9z02AGRuDUp6X6+Y=
=Yvlo
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1035331; Package src:jackd2. (Thu, 04 May 2023 21:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Nicholas D Steeves <sten@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Thu, 04 May 2023 21:03:02 GMT) (full text, mbox, link).


Message #30 received at 1035331@bugs.debian.org (full text, mbox, reply):

From: Nicholas D Steeves <sten@debian.org>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1035331@bugs.debian.org, 1035331@bugs.debian.org
Subject: Re: Bug#1035331: jackd2: reproducible-builds: Locale and timezone dependent date in manpages
Date: Thu, 04 May 2023 17:02:24 -0400
Hi Vagrant,

Vagrant Cascadian <vagrant@reproducible-builds.org> writes:

> On 2023-05-03, Nicholas D Steeves wrote:
>> Vagrant Cascadian <vagrant@reproducible-builds.org> writes:
>>
>> This bug contains [PATCH 1/5], and #1035329 (reproducible-builds:
>> Missing manpages when /bin/sh -> dash) contains [PATCH 3/5].  Did you
>> intend for {2,4,5} to also reach src:jackd2?
>
> Sorry for the confusion, those other "missing" patches were just cruft
> from my dgit workflow. Pretty sure I got the right patches included in
> the respective bug reports. :)
>

I think so, yes :)  I was also confused because I had missed the 2/5
patch.  It would be really nice if those patch series could be numbered
correctly.

By the way, were any of the jackd2 patches forwarded upstream?

Cheers,
Nicholas



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1035331; Package src:jackd2. (Thu, 04 May 2023 21:24:02 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Thu, 04 May 2023 21:24:02 GMT) (full text, mbox, link).


Message #35 received at 1035331@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: Nicholas D Steeves <sten@debian.org>, 1035331@bugs.debian.org, 1035331@bugs.debian.org
Subject: Re: Bug#1035331: jackd2: reproducible-builds: Locale and timezone dependent date in manpages
Date: Thu, 04 May 2023 14:20:37 -0700
[Message part 1 (text/plain, inline)]
On 2023-05-04, Nicholas D Steeves wrote:
> By the way, were any of the jackd2 patches forwarded upstream?

I did not. Would be happy if you could; could also take it on if
needed...

live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1035331; Package src:jackd2. (Thu, 04 May 2023 23:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Nicholas D Steeves <sten@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Thu, 04 May 2023 23:33:03 GMT) (full text, mbox, link).


Message #40 received at 1035331@bugs.debian.org (full text, mbox, reply):

From: Nicholas D Steeves <sten@debian.org>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1035331@bugs.debian.org, 1035331@bugs.debian.org
Subject: Re: Bug#1035331: jackd2: reproducible-builds: Locale and timezone dependent date in manpages
Date: Thu, 04 May 2023 19:30:50 -0400
[Message part 1 (text/plain, inline)]
Vagrant Cascadian <vagrant@reproducible-builds.org> writes:

> On 2023-05-04, Nicholas D Steeves wrote:
>> By the way, were any of the jackd2 patches forwarded upstream?
>
> I did not. Would be happy if you could; could also take it on if
> needed...
>

Done.
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:43:57 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.