aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2023-02-08 15:09:30 +0800
committer宋文武 <iyzsong@member.fsf.org>2023-03-02 11:32:20 +0800
commite7e1f585639c3c14c2f134301fb5352ee9df9b18 (patch)
tree283642fdff337c0eff42e3518b8479e1715d86de /gnu
parentc53e8404e80d2ac99335697b534fd4650e724268 (diff)
downloadguix-e7e1f585639c3c14c2f134301fb5352ee9df9b18.tar.gz
guix-e7e1f585639c3c14c2f134301fb5352ee9df9b18.zip
gnu: gimp: Don't retain reference on GCC.
Partly fixes <https://issues.guix.gnu.org/57677>. * gnu/packages/gimp.scm (gimp)[arguments]: Add #:modules and #:phases.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/gimp.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index beb43f0ae2..69281f98e9 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -302,6 +302,19 @@ buffers.")
"doc")) ; 9 MiB of gtk-doc HTML
(arguments
(list
+ #:modules `((ice-9 popen)
+ (ice-9 rdelim)
+ ,@%gnu-build-system-modules)
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-gcc-reference
+ ;; Avoid reference to GCC.
+ (lambda _
+ (let* ((port (open-input-pipe "gcc -v 2>&1 | tail -n 1"))
+ (cc-version (read-line port)))
+ (close-pipe port)
+ (substitute* "app/gimp-version.c"
+ (("CC_VERSION") (string-append "\"" cc-version "\"")))))))
#:configure-flags
#~(list (string-append "--with-html-dir=" #$output "/share/gtk-doc/html")