Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: ABCD <en.ABCD@...>
Subject: Re: Preserving mtimes for EAPI3
Date: Tue, 31 Mar 2009 06:52:12 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Timothy Redaelli wrote:
> On Tuesday 31 March 2009 00:59:57 Ulrich Mueller wrote:
> <cut>
>> [1] For "find -newermt" we will need >=findutils-4.3.3 which shouldn't
>>     be a problem because 4.3.4 went stable in May 2007.
> 
> No, BSD find does not support it and we don't want to use findutils.
> Neither busybox find supports it.
> Make it POSIX[1] please.
> 
> [1] http://www.opengroup.org/onlinepubs/009695399/utilities/find.html
> 

Here is a solution that should work with find(1p) and touch(1p):
Immediately preceding pkg_setup, `touch
"${PORTAGE_BUILDDIR}/.pre_pkg_setup`; immediately following src_install,
`touch "${PORTAGE_BUILDDIR}"/.post_src_install`.

Then, the following call to find(1p) should work:

   find "${D}" -type f \
     \( \! -newer "${PORTAGE_BUILDDIR}"/.pre_pkg_setup -exec \
             touch -c -r "${PORTAGE_BUILDDIR}"/.pre_pkg_setup {} + \
        -o -newer "${PORTAGE_BUILDDIR}"/.post_src_install -exec \
             touch -c -r "${PORTAGE_BUILDDIR}"/.post_src_install {} + \)

- --
ABCD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknR9dwACgkQOypDUo0oQOrNqACgl6buNNyuQqaXLMSDfu2JzPU2
NuYAoNuaxtEmFcTq0jfIetjMTeT7X2Zn
=8+lB
-----END PGP SIGNATURE-----



Replies:
Re: Preserving mtimes for EAPI3
-- Ulrich Mueller
References:
Preserving mtimes for EAPI3
-- Marijn Schouten (hkBst)
Re: Preserving mtimes for EAPI3
-- Petteri Räty
Re: Preserving mtimes for EAPI3
-- Ulrich Mueller
Re: Preserving mtimes for EAPI3
-- Timothy Redaelli
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Preserving mtimes for EAPI3
Next by thread:
Re: Preserving mtimes for EAPI3
Previous by date:
Re: Xorg 1.5.3 is going stable
Next by date:
Re: Request for Willikins


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.