mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-23 18:56:43 +01:00
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.
This commit is contained in:
parent
c53e8404e8
commit
e7e1f58563
1 changed files with 13 additions and 0 deletions
|
@ -302,6 +302,19 @@ (define-public gimp
|
||||||
"doc")) ; 9 MiB of gtk-doc HTML
|
"doc")) ; 9 MiB of gtk-doc HTML
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(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
|
#:configure-flags
|
||||||
#~(list (string-append "--with-html-dir=" #$output "/share/gtk-doc/html")
|
#~(list (string-append "--with-html-dir=" #$output "/share/gtk-doc/html")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue