guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: mono: Fix build with glibc 2.28.


From: guix-commits
Subject: 01/01: gnu: mono: Fix build with glibc 2.28.
Date: Mon, 26 Nov 2018 13:44:41 -0500 (EST)

dannym pushed a commit to branch core-updates
in repository guix.

commit de42429040d1754301fe76e5de53deda3e973027
Author: Danny Milosavljevic <address@hidden>
Date:   Mon Nov 26 19:31:15 2018 +0100

    gnu: mono: Fix build with glibc 2.28.
    
    * gnu/packages/mono.scm (mono)[arguments]<#:phases>[fix-includes]: New 
phase.
---
 gnu/packages/mono.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/mono.scm b/gnu/packages/mono.scm
index 16c4f71..71d7aea 100644
--- a/gnu/packages/mono.scm
+++ b/gnu/packages/mono.scm
@@ -56,6 +56,13 @@
            (lambda _ ;;* (#:key inputs #:allow-other-keys)
              ;; all tests under mcs/class fail trying to access $HOME
              (setenv "HOME" "/tmp")))
+         (add-after 'unpack 'fix-includes
+           (lambda _
+             ;; makedev is in <sys/sysmacros.h> now.  Include it.
+             (substitute* "mono/io-layer/processes.c"
+              (("#ifdef HAVE_SYS_MKDEV_H") "#if 1")
+              (("sys/mkdev.h") "sys/sysmacros.h"))
+             #t))
          (add-after 'unpack 'patch-tests
            (lambda _  ;;* (#:key inputs #:allow-other-keys)
              (substitute* "mono/tests/Makefile.in"



reply via email to

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