gnu: kodi: Embed full path to tzdata.

* gnu/packages/kodi.scm (kodi)[arguments]: Add substitution for tzdata in
'patch-stuff' phase.
[inputs]: Add TZDATA.
master
Marius Bakke 2017-03-24 08:28:46 +01:00
parent c3c25082e8
commit 8c0117371a
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 7 additions and 1 deletions

View File

@ -302,7 +302,7 @@ generator library for C++.")
(zero? (system* "autoreconf" "-vif")))) (zero? (system* "autoreconf" "-vif"))))
dirs)))) dirs))))
(add-after 'bootstrap-bundled-software 'patch-stuff (add-after 'bootstrap-bundled-software 'patch-stuff
(lambda _ (lambda* (#:key inputs #:allow-other-keys)
;; Prevent the build scripts from calling autoreconf in the ;; Prevent the build scripts from calling autoreconf in the
;; build stage. Otherwise, it would undo the bootstrapping ;; build stage. Otherwise, it would undo the bootstrapping
;; and shebang patching that we worked so hard for. ;; and shebang patching that we worked so hard for.
@ -316,6 +316,11 @@ generator library for C++.")
;; to make them writable before the build process starts. ;; to make them writable before the build process starts.
(("autoreconf -vif") "chmod -R u+w .")) (("autoreconf -vif") "chmod -R u+w ."))
(substitute* "xbmc/linux/LinuxTimezone.cpp"
(("/usr/share/zoneinfo")
(string-append (assoc-ref inputs "tzdata")
"/share/zoneinfo")))
;; Let's disable some tests that are known not to work here. ;; Let's disable some tests that are known not to work here.
;; Doing this later while in the cmake "../build" directory ;; Doing this later while in the cmake "../build" directory
;; is trickier. ;; is trickier.
@ -416,6 +421,7 @@ generator library for C++.")
("sqlite" ,sqlite) ("sqlite" ,sqlite)
("taglib" ,taglib) ("taglib" ,taglib)
("tinyxml" ,tinyxml) ("tinyxml" ,tinyxml)
("tzdata" ,tzdata)
("util-linux" ,util-linux) ("util-linux" ,util-linux)
("zip" ,zip) ("zip" ,zip)
("zlib" ,zlib))) ("zlib" ,zlib)))