dev-python/pypy: Fix mtimes between generated and source files
authorMichał Górny <mgorny@gentoo.org>
Wed, 15 Nov 2017 17:00:11 +0000 (18:00 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 16 Nov 2017 12:33:33 +0000 (13:33 +0100)
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-r1.ebuild [moved from dev-python/pypy/pypy-5.9.0.ebuild with 99% similarity]
dev-python/pypy/pypy-9999.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 ce877adabdf420776917a1b72bbe4ceac45fee88..7cfed8fcca3b4fdaee0df32743420339f1399458 100644 (file)
@@ -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
index 805c5e7f777f1dabc01003b41925051961d3e1d2..fecf7b18d4e4eba4341dd4482bc049cff8b085f3 100644 (file)
@@ -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