gnu: Patch path to locale in gnome-desktop.

* gnu/packages/gnome.scm (gnome-desktop)[arguments]: Add 'patch-path phase to
  get libgnome-desktop to use the full path to the locale binary.
This commit is contained in:
Christopher Baines 2017-11-20 20:40:49 +00:00
parent 0056f4cc57
commit a0fe7c0645
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 10 additions and 0 deletions

View File

@ -454,6 +454,16 @@ commonly used macros.")
(base32 (base32
"0pkq5l1llw8gkjhfq6y58iyj6wac8dh1mc3rzjzn6nd7lrkdx8cg")))) "0pkq5l1llw8gkjhfq6y58iyj6wac8dh1mc3rzjzn6nd7lrkdx8cg"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'configure 'patch-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((libc (assoc-ref inputs "libc")))
(substitute* "libgnome-desktop/gnome-languages.c"
(("\"locale\"")
(string-append "\"" libc "/bin/locale\"")))
#t))))))
(native-inputs (native-inputs
`(("gobject-introspection" ,gobject-introspection) `(("gobject-introspection" ,gobject-introspection)
("itstool" ,itstool) ("itstool" ,itstool)