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

similarity index 99%
rename from dev-python/pypy-bin/pypy-bin-5.9.0-r1.ebuild
rename to dev-python/pypy-bin/pypy-bin-5.9.0-r2.ebuild
index b33c85d2d30324756c3181e35795220e7f5724fe..8c3b3d419da85fa20ec5a736c8e59bda84fdf95e 100644 (file)
@@ -171,6 +171,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