gnu: efl: Hardcode libcurl path.

* gnu/packages/enlightenment.scm (efl)[arguments]: Hardcode the location
of libcurl.so.
This commit is contained in:
Efraim Flashner 2017-09-17 12:58:53 +03:00
parent b6598237f2
commit 0329f6f76c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -149,6 +149,16 @@ (define-public efl
"--enable-drm")
#:phases
(modify-phases %standard-phases
;; If we don't hardcode the location of libcurl.so then we
;; have to wrap the outputs of efl's dependencies in curl.
(add-after 'unpack 'hardcode-libcurl-location
(lambda* (#:key inputs #:allow-other-keys)
(let* ((curl (assoc-ref inputs "curl"))
(lib (string-append curl "/lib/")))
(substitute* "src/lib/ecore_con/ecore_con_url_curl.c"
(("libcurl.so.?" libcurl) ; libcurl.so.[45]
(string-append lib libcurl)))
#t)))
(add-after 'unpack 'set-home-directory
;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
(lambda _ (setenv "HOME" "/tmp") #t)))))