GNU bug report logs -
#61360
[PATCH] gnu: gimp: Don't retain reference on GCC.
Previous Next
Reported by: iyzsong <at> envs.net
Date: Wed, 8 Feb 2023 07:10:02 UTC
Severity: normal
Tags: patch
Done: 宋文武 <iyzsong <at> envs.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: 宋文武 <iyzsong <at> member.fsf.org>
Partly fixes <https://issues.guix.gnu.org/57677>.
* gnu/packages/gimp.scm (gimp)[arguments]: Add #:modules and #:phases.
---
gnu/packages/gimp.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)
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 @@ (define-public gimp
"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")
--
2.39.1
This bug report was last modified 2 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.