guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: gimp: Don't retain reference on GCC.


From: guix-commits
Subject: branch master updated: gnu: gimp: Don't retain reference on GCC.
Date: Wed, 01 Mar 2023 22:44:08 -0500

This is an automated email from the git hooks/post-receive script.

iyzsong pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new e7e1f58563 gnu: gimp: Don't retain reference on GCC.
e7e1f58563 is described below

commit e7e1f585639c3c14c2f134301fb5352ee9df9b18
Author: 宋文武 <iyzsong@member.fsf.org>
AuthorDate: Wed Feb 8 15:09:30 2023 +0800

    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.
---
 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 @@ 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")
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]