Subject: bug#74081: closed (Re: [bug#74081] [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 03 Nov 2024 12:06:02 +0000

Your bug report

#74081: [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
74081: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74081
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#74081] [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime.
From: Z572 <[email-masked]>
To: Nicolas Graves via Guix-patches via <[email-masked]>
Cc: Nicolas Graves <[email-masked]>, [email-masked]
Date: Sun, 03 Nov 2024 20:05:28 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Nicolas Graves via Guix-patches via <[email-masked]> writes:

> * 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

push, close.

Subject: [PATCH] gnu: ruby-ethon: Fix libcurl detection at runtime.
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Cc: Nicolas Graves <[email-masked]>
Date: Tue, 29 Oct 2024 10:00:03 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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