Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ulrich Mueller <ulm@g.o>
Subject: Re: Preserving mtimes for EAPI3
Date: Tue, 31 Mar 2009 17:01:57 +0200
>>>>> On Tue, 31 Mar 2009, ABCD  wrote:

> 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 {} + \)

Tested and works well. Seems we cannot do without auxiliary files,
since POSIX find doesn't support any reasonable time input format.

Ulrich


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
Re: Preserving mtimes for EAPI3
-- ABCD
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:
sandbox-1.7 and static binaries
Next by date:
RFC: EAPI cheat sheet for your desktop


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.