commit: 01bb6b9ab7bbe5368ff598ad109bac9990989ac5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 15 17:00:11 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 16 12:33:33 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01bb6b9a
dev-python/pypy: Fix mtimes between generated and source files
Ensure to preserve file mtimes while copying them from the source tree
to the installation image. This ensures that the generated files
are newer than source files, and that PyPy does not attempt to rewrite
them at runtime.
dev-python/pypy/{pypy-5.9.0.ebuild => pypy-5.9.0-r1.ebuild} | 2 ++
dev-python/pypy/pypy-9999.ebuild | 2 ++
2 files changed, 4 insertions(+)
diff --git a/dev-python/pypy/pypy-5.9.0.ebuild
b/dev-python/pypy/pypy-5.9.0-r1.ebuild
similarity index 99%
rename from dev-python/pypy/pypy-5.9.0.ebuild
rename to dev-python/pypy/pypy-5.9.0-r1.ebuild
index ce877adabdf..7cfed8fcca3 100644
--- a/dev-python/pypy/pypy-5.9.0.ebuild
+++ b/dev-python/pypy/pypy-5.9.0-r1.ebuild
@@ -241,6 +241,8 @@ src_install() {
doexe pypy-c libpypy-c.so
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
insinto "${dest}"
+ # preserve mtimes to avoid obsoleting caches
+ insopts -p
doins -r include lib_pypy lib-python
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
dodoc README.rst
diff --git a/dev-python/pypy/pypy-9999.ebuild b/dev-python/pypy/pypy-9999.ebuild
index 805c5e7f777..fecf7b18d4e 100644
--- a/dev-python/pypy/pypy-9999.ebuild
+++ b/dev-python/pypy/pypy-9999.ebuild
@@ -247,6 +247,8 @@ src_install() {
doexe pypy-c libpypy-c.so
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
insinto "${dest}"
+ # preserve mtimes to avoid obsoleting caches
+ insopts -p
doins -r include lib_pypy lib-python
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
dodoc README.rst