From: Michał Górny Date: Wed, 15 Nov 2017 17:00:11 +0000 (+0100) Subject: dev-python/pypy: Fix mtimes between generated and source files X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=01bb6b9ab7bbe5368ff598ad109bac9990989ac5;p=gentoo.git 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. --- 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 ce877adabdf4..7cfed8fcca3b 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 805c5e7f777f..fecf7b18d4e4 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