guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: eudev: Add pre-build phase.


From: Federico Beffa
Subject: 01/01: gnu: eudev: Add pre-build phase.
Date: Wed, 14 Jan 2015 08:58:15 +0000

beffa pushed a commit to branch wip-gobject-introspection
in repository guix.

commit 3a899557621605739ea19325c5574b4c908e4888
Author: Federico Beffa <address@hidden>
Date:   Tue Jan 13 16:25:29 2015 +0100

    gnu: eudev: Add pre-build phase.
    
    * gnu/packages/linux.scm (eudev): Add 'pre-build phase to fix compilation 
with
      'gobject-introspection' 1.42.0.
---
 gnu/packages/linux.scm |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 4599323..bb2aeb3 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2013, 2014 Andreas Enge <address@hidden>
 ;;; Copyright © 2012 Nikita Karetnikov <address@hidden>
 ;;; Copyright © 2014 Mark H Weaver <address@hidden>
+;;; Copyright © 2015 Federico Beffa <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1407,9 +1408,20 @@ time.")
                   (("linux/btrfs\\.h")
                    "")))))
     (arguments
-     (substitute-keyword-arguments (package-arguments udev)
-       ((#:configure-flags flags)
-        `(cons "--enable-libkmod" ,flags))))
+     `(,@(substitute-keyword-arguments (package-arguments udev)
+           ((#:configure-flags flags)
+            `(cons "--enable-libkmod" ,flags)))
+       #:phases 
+       (alist-cons-before
+        'build 'pre-build
+        ;; The program 'g-ir-scanner' (part of the package
+        ;; 'gobject-introspection'), to generate .gir files, makes some
+        ;; library pre-processing.  During that phase it looks for the C
+        ;; compiler as either 'cc' or as defined by the environment variable
+        ;; 'CC' (with code in 'giscanner/dumper.py').
+        (lambda* _
+          (setenv "CC" "gcc"))
+        %standard-phases)))
     (home-page "http://www.gentoo.org/proj/en/eudev/";)))
 
 (define-public lvm2



reply via email to

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