[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] Re: Preserving mtimes for EAPI3
From: Ulrich Mueller <ulm () gentoo ! org>
Date: 2009-03-31 15:01:57
Message-ID: 18898.12389.755616.385468 () a1ihome1 ! kph ! uni-mainz ! de
[Download RAW message or body]
>>>>> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic