commit:     651f557f9302d29aa0de5ea10ef4e575b686fb21
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 21 13:50:10 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Jan 21 13:50:23 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=651f557f

sys-apps/guix: fix build failure when older version of guix is already installed

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 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sys-apps/guix/guix-0.14.0.ebuild b/sys-apps/guix/guix-0.14.0.ebuild
index 98b94e6fb00..fee128e9630 100644
--- a/sys-apps/guix/guix-0.14.0.ebuild
+++ b/sys-apps/guix/guix-0.14.0.ebuild
@@ -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() {

Reply via email to