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

similarity index 98%
rename from dev-python/pypy3-bin/pypy3-bin-5.9.0-r2.ebuild
rename to dev-python/pypy3-bin/pypy3-bin-5.9.0-r3.ebuild
index 0f0e4bd042db062e8a8c3773e6b85c16d75aa632..4ac56798f83a9a76019b4e19b3c8f01bdff6fcd2 100644 (file)
@@ -150,6 +150,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