guix-commits
[Top][All Lists]
Advanced

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

05/10: gnu: eudev: Add pre-build phase.


From: Federico Beffa
Subject: 05/10: gnu: eudev: Add pre-build phase.
Date: Sun, 18 Jan 2015 17:08:51 +0000

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

commit 31aa437987e325808b7ed308601c4615c395e3f8
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 |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 952b9d1..d48a8e9 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, 2015 Mark H Weaver <address@hidden>
+;;; Copyright © 2015 Federico Beffa <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1474,7 +1475,18 @@ from the module-init-tools project.")
 
                                ;; Work around undefined reference to
                                ;; 'mq_getattr' in sc-daemon.c.
-                               "LDFLAGS=-lrt")))
+                               "LDFLAGS=-lrt")
+       #: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/";)
     (synopsis "Userspace device management")
     (description "Udev is a daemon which dynamically creates and removes



reply via email to

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