Debian Bug report logs -
#1030724
node-marked-man: please make the build reproducible
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>:
Bug#1030724; Package src:node-marked-man.
(Mon, 06 Feb 2023 19:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to "Chris Lamb" <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>.
(Mon, 06 Feb 2023 19:39:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: node-marked-man
Version: 1.3.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps toolchain
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
node-marked-man generates manpages that vary depending on the system
timezone. For example, within the tree of src:node-gulp:
$ dpkg-parsechangelog --show-field=Date
Wed, 30 Nov 2022 23:28:47 +0100
$ TZ="/usr/share/zoneinfo/Etc/GMT-14" marked-man --name gulp --date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
.TH "GULP" "1" "December 2022" "4.0.2"
$ TZ="/usr/share/zoneinfo/Etc/GMT+11" marked-man --name gulp --date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
.TH "GULP" "1" "November 2022" "4.0.2"
This seems to be caused by the use of Date.prototype.toLocaleDateString
in utils.js:
export function manDate(date) {
const stamp = parseInt(date);
if (!Number.isNaN(stamp) && stamp.toString().length == date.length) date = stamp;
date = new Date(date);
return date.toLocaleString('en', { month: 'long', year: 'numeric' });
}
A patch is attached that normalises this to UTC. After this patch is
applied, you get the following:
$ TZ="/usr/share/zoneinfo/Etc/GMT-14" marked-man --name gulp --date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
.TH "GULP" "1" "November 2022" "4.0.2"
$ TZ="/usr/share/zoneinfo/Etc/GMT+11" marked-man --name gulp --date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
.TH "GULP" "1" "November 2022" "4.0.2"
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
[node-marked-man.diff.txt (text/plain, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>:
Bug#1030724; Package src:node-marked-man.
(Mon, 06 Feb 2023 19:54:03 GMT) (full text, mbox, link).
Acknowledgement sent
to "Chris Lamb" <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>.
(Mon, 06 Feb 2023 19:54:03 GMT) (full text, mbox, link).
Message #10 received at 1030724@bugs.debian.org (full text, mbox, reply):
forwarded 1030724 https://github.com/kapouer/marked-man/pull/32
thanks
I've forwarded this upstream here:
https://github.com/kapouer/marked-man/pull/32
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Reply sent
to Jérémy Lal <kapouer@melix.org>:
You have taken responsibility.
(Tue, 07 Feb 2023 01:09:03 GMT) (full text, mbox, link).
Notification sent
to "Chris Lamb" <lamby@debian.org>:
Bug acknowledged by developer.
(Tue, 07 Feb 2023 01:09:03 GMT) (full text, mbox, link).
Message #17 received at 1030724-close@bugs.debian.org (full text, mbox, reply):
Source: node-marked-man
Source-Version: 1.3.3-1
Done: Jérémy Lal <kapouer@melix.org>
We believe that the bug you reported is fixed in the latest version of
node-marked-man, 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 1030724@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jérémy Lal <kapouer@melix.org> (supplier of updated node-marked-man 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: SHA256
Format: 1.8
Date: Tue, 07 Feb 2023 01:34:20 +0100
Source: node-marked-man
Architecture: source
Version: 1.3.3-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Jérémy Lal <kapouer@melix.org>
Closes: 1030724
Changes:
node-marked-man (1.3.3-1) unstable; urgency=medium
.
* New upstream version 1.3.3
Closes: 1030724
Checksums-Sha1:
d347f6a9b6ae07ec34e37e9b7ebc96427b8c4344 2169 node-marked-man_1.3.3-1.dsc
3fdf48e61a292fde9bd70e46370e490eabfbd1e3 45226 node-marked-man_1.3.3.orig.tar.gz
483f1d03c53388251066a475972007abc5f74b3c 3828 node-marked-man_1.3.3-1.debian.tar.xz
dc6580b12364e3480ab870dff2f488b91b37cc97 16799 node-marked-man_1.3.3-1_source.buildinfo
Checksums-Sha256:
85cf075ab0da304bc004787f5cd18a150a977ef409266ec7e8606c6a1a62ddc5 2169 node-marked-man_1.3.3-1.dsc
5513f8a8f821e10f9fa8bbdaf899867d3d7c19a72c1e49447752fd1b1b716443 45226 node-marked-man_1.3.3.orig.tar.gz
4b21f3402f02def02e3d5329a2dfc805c665c392bf6909be817312e59e1d25b0 3828 node-marked-man_1.3.3-1.debian.tar.xz
32d4c7f79dc9a45923b36896a1e9080ac7c6d5919e1b1ec3e6622c759c908607 16799 node-marked-man_1.3.3-1_source.buildinfo
Files:
b4a6f03070b8681c0f373bdb771c271d 2169 javascript optional node-marked-man_1.3.3-1.dsc
f274cc7f14ebc5d421988a5aab08c2ba 45226 javascript optional node-marked-man_1.3.3.orig.tar.gz
aca29ed05a6d862b73453d73e72949e2 3828 javascript optional node-marked-man_1.3.3-1.debian.tar.xz
303a511a49077f58b0f8b3fd49449e29 16799 javascript optional node-marked-man_1.3.3-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCAAwFiEEA8Tnq7iA9SQwbkgVZhHAXt0583QFAmPhngMSHGthcG91ZXJA
bWVsaXgub3JnAAoJEGYRwF7dOfN0BMwQAJ5/caROp9HaAZ0fG14wZ/LaXYFKhurO
PoqYYFsl7DNhxCF4BsR8hQKt3ZbAkqP/dfRSZIXCnQCP/7h0IK/0jkk1Gjhr8g1z
7Ybj7fk6In7nWN2KB7bK6lcLPtWuhnTHwxahe1w4oIENwpV/I21V2pgjs91RlwUZ
yZVmVJP+pUR18sNiSnZHoaeIUUUJ8Iwv+lLAhxuyRu0MZlS7XI5epqCvReJqoEf7
mX65NuL8ij0WHAA+YaICteQZE3Jqk+viCi19NGz6++Mhkhou5KArFyLR+32bjwVI
i083EujvmHlBD6QeRkwR43t9i2H40hTlia9KsSiipKHY9kO+Rnkfrwz5PY6X0WNs
nZmDhYyt8or+y1QUQgMbRXmgoRQMCYXiNEDySNEm2LB7pgbG07e8MkpAC+ouaA52
2hvkqjbVW2UCmgBMCz7kKZqfeEaYmRd52yH+zDHhmXy49PNdkGo7XNU3VH6GuRRi
rYfnJLEXAHj6CBYmnZZxe27+mqUi93PUdjBOUKRJzK557TXZf33G+9Yr2kpGCoMh
nU5JFxjcKbxf+j9+A3pXrS4UVYmyYBJMJpMxHe0Z+E3B3rQNWiwcOQk9rUx99Xmw
6ieEVe8sPKeeDg+GD9me4207sRbHP86q6O9rE40HJyoGtNreKkoAsIsexT7Vmaka
izYRhKELQwSa
=DlkI
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 09 Mar 2023 07:27:43 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 11:00:13 2023;
Machine Name:
buxtehude
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.