From 01bb6b9ab7bbe5368ff598ad109bac9990989ac5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 15 Nov 2017 18:00:11 +0100 Subject: [PATCH] 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(+) rename dev-python/pypy/{pypy-5.9.0.ebuild => pypy-5.9.0-r1.ebuild} (99%) 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 -- 2.26.2