unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#74081] [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime.
@ 2024-10-29  9:00 Nicolas Graves via Guix-patches via
  0 siblings, 0 replies; only message in thread
From: Nicolas Graves via Guix-patches via @ 2024-10-29  9:00 UTC (permalink / raw)
  To: 74081; +Cc: Nicolas Graves

* 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





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-29  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29  9:00 [bug#74081] [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime Nicolas Graves via Guix-patches via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).