[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: guile-gi: Embed absolute file name of extens
From: |
guix-commits |
Subject: |
branch master updated: gnu: guile-gi: Embed absolute file name of extension library. |
Date: |
Sun, 15 Mar 2020 09:18:58 -0400 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new a431a63 gnu: guile-gi: Embed absolute file name of extension library.
a431a63 is described below
commit a431a63537c8103b2a58c9a55d90184fb5c90361
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Sun Mar 15 14:17:26 2020 +0100
gnu: guile-gi: Embed absolute file name of extension library.
* gnu/packages/guile-xyz.scm (guile-gi)[arguments]: Add phase
patch-references-to-extension.
---
gnu/packages/guile-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 9f81736..8ada9c5 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -2504,8 +2504,35 @@ list of components. This module takes care of that for
you.")
(build-system gnu-build-system)
(arguments
`(#:configure-flags '("--with-gnu-filesystem-hierarchy")
+ #:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (ice-9 popen)
+ (ice-9 rdelim))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-references-to-extension
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((effective (read-line
+ (open-pipe* OPEN_READ
+ "guile" "-c"
+ "(display (effective-version))"))))
+ (substitute* '("module/gi.scm"
+ "module/gi/oop.scm"
+ "module/gi/documentation.scm"
+ "module/gi/types.scm"
+ "module/gi/repository.scm")
+ (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
+ (format #f "~s"
+ `(load-extension
+ (format #f "~alibguile-gi"
+ (if (getenv "GUILE_GI_UNINSTALLED")
+ ""
+ ,(format #f "~a/lib/guile/~a/"
+ (assoc-ref outputs "out")
+ effective)))
+ ,arg)))))
+ (setenv "GUILE_GI_UNINSTALLED" "1")
+ #t))
(add-before 'check 'start-xorg-server
(lambda* (#:key inputs #:allow-other-keys)
;; The init_check test requires a running X server.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: guile-gi: Embed absolute file name of extension library.,
guix-commits <=