Gentoo Archives: gentoo-council

From: Denis Dupeyron <calchan@g.o>
To: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Cc: gentoo-council@l.g.o
Subject: Re: [gentoo-council] Re: mtime preservation
Date: Mon, 09 Nov 2009 18:48:13
Message-Id: 7c612fc60911091048n58bb64d1oa4f3d0a290ab71@mail.gmail.com
In Reply to: Re: [gentoo-council] Re: mtime preservation by Ciaran McCreesh
1 On Mon, Nov 9, 2009 at 11:14 AM, Ciaran McCreesh
2 <ciaran.mccreesh@××××××××××.com> wrote:
3 > It's doable. It's just that all mtimes being preserved is clearly wrong
4 > for the 1 Jan 1970 cases.
5
6 Not if you reset mtimes at unpacking, but:
7
8 > * Changing mtimes on source trees is likely problematic with autotooled
9 >  packages.
10
11 Good point, I wasn't thinking of that.
12
13 > Thus, I would let EAPI 4 ebuilds call dopreservemtimes (with an API
14 > similar to docompress) in both src_install and pkg_preinst. Doing so
15 > would instruct the package manager that it must preserve mtimes
16 > (including subsecond, if supported on the filesystem) for a particular
17 > set of paths, even if doing so means no stripping etc. All other mtimes
18 > may be rewritten as the package manager sees fit, and from EAPI 4
19 > onwards must be rewritten at merge time for anything predating the
20 > start of the build.
21
22 Thanks for your input. That would work for me although I would prefer
23 if the stripping and such things were kept automatic in order to try
24 and maintain QA at a reasonable level.
25
26 Denis.