sys-apps/guix: fix build failure when older version of guix is already installed
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 21 Jan 2018 13:50:10 +0000 (13:50 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 21 Jan 2018 13:50:23 +0000 (13:50 +0000)
Pasting comment note as-is:
"""
guile is trying to avoid recompilation by checking if file
    /usr/lib64/guile/2.2/site-ccache/guix/modules.go
is newer than
    guix/modules.scm
In case it is instead of using 'guix/modules.scm' guile
loads system one (from potentially older version of guix).
To work it around we bump last modification timestamp of
'*.scm' files.
"""

Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-apps/guix/guix-0.14.0.ebuild

index 98b94e6fb0071d86cd0443aab00ca447f90e3c73..fee128e9630b2931c77c2c1ef18be23ba9e7bc4b 100644 (file)
@@ -104,6 +104,16 @@ src_prepare() {
        default
        # build system is very eager to run automake itself: bug #625166
        eautomake
+
+       # guile is trying to avoid recompilation by checking if file
+       #     /usr/lib64/guile/2.2/site-ccache/guix/modules.go
+       # is newer than
+       #     guix/modules.scm
+       # In case it is instead of using 'guix/modules.scm' guile
+       # loads system one (from potentially older version of guix).
+       # To work it around we bump last modification timestamp of
+       # '*.scm' files.
+       find "${S}" -name "*.scm" -exec touch {} + || die
 }
 
 src_configure() {