1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Timothy Redaelli wrote: |
5 |
> On Tuesday 31 March 2009 00:59:57 Ulrich Mueller wrote: |
6 |
> <cut> |
7 |
>> [1] For "find -newermt" we will need >=findutils-4.3.3 which shouldn't |
8 |
>> be a problem because 4.3.4 went stable in May 2007. |
9 |
> |
10 |
> No, BSD find does not support it and we don't want to use findutils. |
11 |
> Neither busybox find supports it. |
12 |
> Make it POSIX[1] please. |
13 |
> |
14 |
> [1] http://www.opengroup.org/onlinepubs/009695399/utilities/find.html |
15 |
> |
16 |
|
17 |
Here is a solution that should work with find(1p) and touch(1p): |
18 |
Immediately preceding pkg_setup, `touch |
19 |
"${PORTAGE_BUILDDIR}/.pre_pkg_setup`; immediately following src_install, |
20 |
`touch "${PORTAGE_BUILDDIR}"/.post_src_install`. |
21 |
|
22 |
Then, the following call to find(1p) should work: |
23 |
|
24 |
find "${D}" -type f \ |
25 |
\( \! -newer "${PORTAGE_BUILDDIR}"/.pre_pkg_setup -exec \ |
26 |
touch -c -r "${PORTAGE_BUILDDIR}"/.pre_pkg_setup {} + \ |
27 |
-o -newer "${PORTAGE_BUILDDIR}"/.post_src_install -exec \ |
28 |
touch -c -r "${PORTAGE_BUILDDIR}"/.post_src_install {} + \) |
29 |
|
30 |
- -- |
31 |
ABCD |
32 |
-----BEGIN PGP SIGNATURE----- |
33 |
Version: GnuPG v2.0.11 (GNU/Linux) |
34 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
35 |
|
36 |
iEYEARECAAYFAknR9dwACgkQOypDUo0oQOrNqACgl6buNNyuQqaXLMSDfu2JzPU2 |
37 |
NuYAoNuaxtEmFcTq0jfIetjMTeT7X2Zn |
38 |
=8+lB |
39 |
-----END PGP SIGNATURE----- |