dev-python/pypy3: Fix mtimes between generated and source files
authorMichał Górny <mgorny@gentoo.org>
Wed, 15 Nov 2017 17:02:56 +0000 (18:02 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 16 Nov 2017 12:33:34 +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/pypy3/pypy3-5.9.0-r1.ebuild [moved from dev-python/pypy3/pypy3-5.9.0.ebuild with 99% similarity]
dev-python/pypy3/pypy3-9999.ebuild

similarity index 99%
rename from dev-python/pypy3/pypy3-5.9.0.ebuild
rename to dev-python/pypy3/pypy3-5.9.0-r1.ebuild
index 1fe12fc2c523591f147e85b6a562e91a4b9b4fca..a1892572aacb9b54d8ae12ed335042dbbd47b751 100644 (file)
@@ -210,6 +210,8 @@ src_install() {
        doexe pypy3-c libpypy3-c.so
        pax-mark m "${ED%/}${dest}/pypy3-c" "${ED%/}${dest}/libpypy3-c.so"
        insinto "${dest}"
+       # preserve mtimes to avoid obsoleting caches
+       insopts -p
        doins -r include lib_pypy lib-python
        dosym ../$(get_libdir)/pypy3/pypy3-c /usr/bin/pypy3
        dodoc README.rst
index 1369c84d3fc9b405312bdc1eb49463e72232bd9f..ff2a3ff800ed41dac2691650dc3958da376ac3ec 100644 (file)
@@ -237,6 +237,8 @@ src_install() {
        doexe pypy3-c libpypy3-c.so
        pax-mark m "${ED%/}${dest}/pypy3-c" "${ED%/}${dest}/libpypy3-c.so"
        insinto "${dest}"
+       # preserve mtimes to avoid obsoleting caches
+       insopts -p
        doins -r include lib_pypy lib-python
        dosym ../$(get_libdir)/pypy3/pypy3-c /usr/bin/pypy3
        dodoc README.rst