From 651f557f9302d29aa0de5ea10ef4e575b686fb21 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 21 Jan 2018 13:50:10 +0000 Subject: [PATCH] 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 98b94e6fb007..fee128e9630b 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() { -- 2.26.2