all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 74081@debbugs.gnu.org
Cc: Nicolas Graves <ngraves@ngraves.fr>
Subject: [bug#74081] [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime.
Date: Tue, 29 Oct 2024 10:00:03 +0100	[thread overview]
Message-ID: <20241029090005.15609-1-ngraves@ngraves.fr> (raw)

* gnu/packages/ruby.scm (ruby-ethon)[arguments]<#:phases>: Add phase
'libcurl-use-absolute-reference.
---
 gnu/packages/ruby.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5af1bb1cef..12c439b3a9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3089,7 +3089,15 @@ (define-public ruby-ethon
          "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9"))))
     (build-system ruby-build-system)
     (arguments
-     `(#:tests? #f))                    ; no included tests
+     (list
+      #:tests? #f  ; no included tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'libcurl-use-absolute-reference
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "lib/ethon/curls/settings.rb"
+                (("libcurl', 'libcurl\\.so\\.4")
+                 (search-input-file inputs "/lib/libcurl.so"))))))))
     (inputs
      (list curl))
     (propagated-inputs
-- 
2.46.0





                 reply	other threads:[~2024-10-29  9:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241029090005.15609-1-ngraves@ngraves.fr \
    --to=guix-patches@gnu.org \
    --cc=74081@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.