GNU bug report logs - #45675
Zip-based archives store timestamps

Previous Next

Package: guix;

Reported by: Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com>

Date: Tue, 5 Jan 2021 13:11:02 UTC

Severity: normal

To reply to this bug, email your comments to 45675 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

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


Report forwarded to bug-guix <at> gnu.org:
bug#45675; Package guix. (Tue, 05 Jan 2021 13:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 05 Jan 2021 13:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Zip-based archives store timestamps
Date: Tue, 05 Jan 2021 14:10:37 +0100
A procedure like reset-gzip-timestamp should be useful for
reproducibility purposes, adapted to zip based archives as Smalltalk's
STAR or Java's JAR binary formats, as some or all of their contents are
generated usually at build time.

On the latest Zip specification[1], which only seem to be encumbered
regarding encryption, there is one header ID which could be used for
timestamp purposes (0x0020) but third party header IDs are allowed,
which include a "commonly used" 0x5455 timestamp.

[1] https://pkware.cachefly.net/webdocs/APPNOTE/APPNOTE-6.3.8.TXT




Information forwarded to bug-guix <at> gnu.org:
bug#45675; Package guix. (Tue, 05 Jan 2021 15:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 45675 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com>,
 45675 <at> debbugs.gnu.org
Subject: Re: bug#45675: Zip-based archives store timestamps
Date: Tue, 05 Jan 2021 10:17:53 -0500
[Message part 1 (text/plain, inline)]
For java packages, we have a strip-jar-timestamps phase in the ant-build-system.

Le 5 janvier 2021 08:10:37 GMT-05:00, "Miguel Ángel Arruga Vivas" <rosen644835 <at> gmail.com> a écrit :
>A procedure like reset-gzip-timestamp should be useful for
>reproducibility purposes, adapted to zip based archives as Smalltalk's
>STAR or Java's JAR binary formats, as some or all of their contents are
>generated usually at build time.
>
>On the latest Zip specification[1], which only seem to be encumbered
>regarding encryption, there is one header ID which could be used for
>timestamp purposes (0x0020) but third party header IDs are allowed,
>which include a "commonly used" 0x5455 timestamp.
>
>[1] https://pkware.cachefly.net/webdocs/APPNOTE/APPNOTE-6.3.8.TXT
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#45675; Package guix. (Wed, 06 Jan 2021 22:35:02 GMT) Full text and rfc822 format available.

Message #11 received at 45675 <at> debbugs.gnu.org (full text, mbox):

From: Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 45675 <at> debbugs.gnu.org
Subject: Re: bug#45675: Zip-based archives store timestamps
Date: Wed, 06 Jan 2021 23:34:01 +0100
[Message part 1 (text/plain, inline)]
Hi,

Julien Lepiller <julien <at> lepiller.eu> writes:

> For java packages, we have a strip-jar-timestamps phase in the ant-build-system.

Thanks for the pointer.  Do you think could be worth to extract that
into (guix build utils) as the attached patch (WIP) does?  It rebuilds
the world and replaces all of "old usages", so I'm still waiting to
reach ant-bootstrap...

Happy hacking!
Miguel
[0001-wip-build-utils-Extract-reset-zip-timestamp-and-use-.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#45675; Package guix. (Wed, 06 Jan 2021 23:12:02 GMT) Full text and rfc822 format available.

Message #14 received at 45675 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Miguel Ángel Arruga Vivas <rosen644835 <at> gmail.com>
Cc: 45675 <at> debbugs.gnu.org
Subject: Re: bug#45675: Zip-based archives store timestamps
Date: Wed, 06 Jan 2021 18:10:59 -0500
[Message part 1 (text/plain, inline)]
This sounds like a good idea indeed

Le 6 janvier 2021 17:34:01 GMT-05:00, "Miguel Ángel Arruga Vivas" <rosen644835 <at> gmail.com> a écrit :
>Hi,
>
>Julien Lepiller <julien <at> lepiller.eu> writes:
>
>> For java packages, we have a strip-jar-timestamps phase in the
>ant-build-system.
>
>Thanks for the pointer.  Do you think could be worth to extract that
>into (guix build utils) as the attached patch (WIP) does?  It rebuilds
>the world and replaces all of "old usages", so I'm still waiting to
>reach ant-bootstrap...
>
>Happy hacking!
>Miguel
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.