[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: elogind: Fix compilation against glibc 2.26.
From: |
Leo Famulari |
Subject: |
01/01: gnu: elogind: Fix compilation against glibc 2.26. |
Date: |
Sun, 14 Jan 2018 11:38:23 -0500 (EST) |
lfam pushed a commit to branch core-updates
in repository guix.
commit 6d49ca16be22e3fb95823ac1780ad9460a18b180
Author: Leo Famulari <address@hidden>
Date: Sun Jan 14 07:43:54 2018 -0800
gnu: elogind: Fix compilation against glibc 2.26.
* gnu/packages/freedesktop.scm (elogind)[arguments]: Add a
'patch-locale-header'
phase.
---
gnu/packages/freedesktop.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 5d8493b..63adb4d 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -259,6 +259,12 @@ the freedesktop.org XDG Base Directory specification.")
#:make-flags '("PKTTYAGENT=/run/current-system/profile/bin/pkttyagent")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-locale-header
+ (lambda _
+ ;; Fix compilation with glibc >= 2.26, which removed xlocale.h.
+ ;; This can be removed for elogind 234.
+ (substitute* "src/basic/parse-util.c"
+ (("xlocale\\.h") "locale.h"))))
(add-before 'configure 'autogen
(lambda _
(and (zero? (system* "intltoolize" "--force" "--automake"))