mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: elogind: Fix compilation against glibc 2.26.
* gnu/packages/freedesktop.scm (elogind)[arguments]: Add a 'patch-locale-header' phase.
This commit is contained in:
parent
1b321229f4
commit
6d49ca16be
1 changed files with 6 additions and 0 deletions
|
@ -259,6 +259,12 @@ (define-public elogind
|
|||
#: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"))
|
||||
|
|
Loading…
Reference in a new issue