guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: efl: Hardcode libcurl path.


From: Efraim Flashner
Subject: 01/01: gnu: efl: Hardcode libcurl path.
Date: Sun, 17 Sep 2017 06:02:16 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 0329f6f76c147f84b7de2faf847a62a6db3d7158
Author: Efraim Flashner <address@hidden>
Date:   Sun Sep 17 12:58:53 2017 +0300

    gnu: efl: Hardcode libcurl path.
    
    * gnu/packages/enlightenment.scm (efl)[arguments]: Hardcode the location
    of libcurl.so.
---
 gnu/packages/enlightenment.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm
index aa7b87c..ec22d8a 100644
--- a/gnu/packages/enlightenment.scm
+++ b/gnu/packages/enlightenment.scm
@@ -149,6 +149,16 @@
                            "--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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]