Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, Markus Walter <lists@×××××××××××××××.de>
Subject: Re: [gentoo-portage-dev] Normaliser function for distfiles
Date: Tue, 17 May 2022 03:21:09
Message-Id: 9a736b67-8d2c-69bb-608e-bdc18ac5258a@gentoo.org
In Reply to: [gentoo-portage-dev] Normaliser function for distfiles by Markus Walter
1 On 5/16/22 10:37, Markus Walter wrote:
2 > Hello all,
3 >
4 > is it possible to do the following: after fetching a distfile portage runs
5 > an external normaliser program specified in an ebuild before checking the
6 > hash?
7 >
8 > My use case is the following: I would like to improve the gs-elpa program
9 > and provide a precomputed overlay for melpa. However the melpa distfiles are
10 > rebuilt everyday and cause checksum failures. However the only thing
11 > changing are the timestamps. Hence if a normaliser program could simply set
12 > all timestamps to some predefined value (say 1.1.1970) then this problem
13 > should vanish.
14 >
15 > Thanks in advance
16 >
17 > Markus
18 >
19
20 The only usable hook that we currently have for this is FETCHCOMMAND and
21 RESUMCOMMAND in make.conf. You can replace them with a script that does
22 the normal thing and then sets the timestamp. The default values are
23 found in /usr/share/portage/config/make.globals.
24 --
25 Thanks,
26 Zac

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-portage-dev] Normaliser function for distfiles Markus Walter <lists@×××××××××××××××.de>