Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Preserving mtimes for EAPI3
Date: Tue, 31 Mar 2009 15:02:00
Message-Id: 18898.12389.755616.385468@a1ihome1.kph.uni-mainz.de
In Reply to: [gentoo-dev] Re: Preserving mtimes for EAPI3 by ABCD
>>>>> 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