guix-commits
[Top][All Lists]
Advanced

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

13/17: DRAFT: Fix gjs build.


From: Mark H. Weaver
Subject: 13/17: DRAFT: Fix gjs build.
Date: Mon, 23 Apr 2018 03:07:29 -0400 (EDT)

mhw pushed a commit to branch reproduce-bug-29774
in repository guix.

commit 87022e2666c5e68e865eb160a4bd8e9cdcc1a955
Author: Mark H Weaver <address@hidden>
Date:   Thu Mar 29 21:32:50 2018 -0400

    DRAFT: Fix gjs build.
---
 gnu/packages/gnome.scm | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index eb63601..bfe3db5 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -79,6 +79,7 @@
   #:use-module (gnu packages enchant)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages game-development)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnupg)
@@ -4614,8 +4615,22 @@ configuration program to choose applications starting on 
login.")
                 "04nkig077r7xq55dxg9v46w8i7p8zkkdyja92yv81grq9fx6apz8"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     '(#:configure-flags
+       (list (string-append "CXXFLAGS=-idirafter "
+                            (assoc-ref %build-inputs "libc")
+                            "/include"))
+       #:phases
        (modify-phases %standard-phases
+         (add-after 'set-paths 'adjust-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((libc-includes (string-append (assoc-ref inputs "libc")
+                                                 "/include")))
+               (define (adjust var)
+                 (let* ((items (string-split (getenv var) #\:))
+                        (items* (delete libc-includes items)))
+                   (setenv var (string-join items* ":"))))
+               (adjust "CPLUS_INCLUDE_PATH")
+               #t)))
          (add-before
           'check 'pre-check
           (lambda _
@@ -4633,7 +4648,8 @@ configuration program to choose applications starting on 
login.")
               ((".*expect\\(datestr\\).*") ""))
             #t)))))
     (native-inputs
-     `(("glib:bin" ,glib "bin")       ; for glib-compile-resources
+     `(("gcc" ,gcc-7)
+       ("glib:bin" ,glib "bin")       ; for glib-compile-resources
        ("pkg-config" ,pkg-config)
        ("xmllint" ,libxml2)
        ;; For testing



reply via email to

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