From: "Ludovic Courtès" <ludo@gnu.org>
To: "Gábor Boskovits" <boskovits@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Some utility functions
Date: Tue, 08 Jan 2019 17:30:40 +0100 [thread overview]
Message-ID: <87r2dnw1qn.fsf@gnu.org> (raw)
In-Reply-To: <CAE4v=picK9PHCgXnq5oqToaEWeZcYX=q-w9USfeo=z40L_D+KQ@mail.gmail.com> ("Gábor Boskovits"'s message of "Mon, 7 Jan 2019 10:57:51 +0100")
Hi,
Gábor Boskovits <boskovits@gmail.com> skribis:
> Ludovic Courtès <ludo@gnu.org> ezt írta (időpont: 2019. jan. 5., Szo, 22:30):
>>
>> Hi Gábor,
>>
>> Gábor Boskovits <boskovits@gmail.com> skribis:
>>
>> > I am not sure if I am duplicating functionality here, and also where
>> > these should belong, so I will send them here for discussion.
>>
>> Thanks for sharing! As Alex notes, some of these procedures are
>> more or less available in (guix build utils):
>>
>> > (define (rm-recursive dir)
>>
>> delete-file-recursively
>>
>> > (define (check-header file header)
>>
>> file-header-match
>>
>> > (define (reset-zip-timestamps dir)
>> > "Resets the timestamps of all zip achives under DIR."
>> > (for-each repack-zip
>> > (find-files dir ".*.(zip|jar|diz)$")))
>>
>> That we don’t have (there’s ‘reset-gzip-timestamp’, with a ‘g’.)
>>
>> How do we deal with that currently in Java packages?
>>
>
> We have a phase defiined in the ant build system code, that does just that.
> I was thinking about to moving it to java utils or to a more general
> utils module.
> where we don't yet have ant build system. I don't know if other ecosystems
> would benefit from that or not.
I don’t think we have packages generating zip files outside of Java.
It would be fun to implement ‘reset-zip-timestamps’ entirely in Scheme
(without the unpack/repack phase).
Ludo’.
prev parent reply other threads:[~2019-01-08 16:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-01 21:48 Some utility functions Gábor Boskovits
2019-01-02 7:39 ` Alex Vong
2019-01-05 21:30 ` Ludovic Courtès
2019-01-07 9:57 ` Gábor Boskovits
2019-01-08 16:30 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2dnw1qn.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=boskovits@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.