GNU bug report logs - #40439
[PATCH 1/3] gnu: Add libuv-static.

Previous Next

Package: guix-patches;

Reported by: Alexandros Theodotou <alex <at> zrythm.org>

Date: Sat, 4 Apr 2020 21:10:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 40439 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#40439; Package guix-patches. (Sat, 04 Apr 2020 21:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexandros Theodotou <alex <at> zrythm.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 04 Apr 2020 21:10:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexandros Theodotou <alex <at> zrythm.org>
To: Guix patches <guix-patches <at> gnu.org>
Subject: [PATCH 1/3] gnu: Add libuv-static.
Date: Sat, 04 Apr 2020 22:08:54 +0100
[Message part 1 (text/plain, inline)]
Hi, 

This patch adds a static version of libuv (build with -fPIC) needed by
zynfusion.

Feel free to edit it as appropriate, I am not sure if this method of
doing it is acceptable.

Thanks,
Alex
[0001-gnu-Add-libuv-static.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#40439; Package guix-patches. (Wed, 28 Sep 2022 20:34:01 GMT) Full text and rfc822 format available.

Message #8 received at 40439 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Alexandros Theodotou <alex <at> zrythm.org>
Cc: 40439 <at> debbugs.gnu.org
Subject: Re: bug#40439: [PATCH 1/3] gnu: Add libuv-static.
Date: Wed, 28 Sep 2022 16:33:45 -0400
Hi,

Alexandros Theodotou <alex <at> zrythm.org> writes:

> Hi, 
>
> This patch adds a static version of libuv (build with -fPIC) needed by
> zynfusion.
>
> Feel free to edit it as appropriate, I am not sure if this method of
> doing it is acceptable.

It's possible to link static archives from shared objects built with
-fPIC; so I'd suggest doing:

--8<---------------cut here---------------start------------->8---
gnu: Add libuv-next.

* gnu/packages/libevent.scm (libuv-next): New variable.

1 file changed, 17 insertions(+)
gnu/packages/libevent.scm | 17 +++++++++++++++++

modified   gnu/packages/libevent.scm
@@ -133,6 +133,23 @@ (define-public libuv
     ;; details.  Documentation is CC-BY 4.0 as of 1.12.0; see 'LICENSE-docs'.
     (license (list expat cc-by4.0))))
 
+(define-public libuv-next
+  (package
+    (inherit libuv)
+    (name "libuv")
+    (version "1.44.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://dist.libuv.org/dist/v" version
+                                  "/libuv-v" version ".tar.gz"))
+              (sha256
+               (base32
+                "1d1wy1061cf2mfygr2j6jbm0da2mhsf0l9yq4rjkqrsmijbdrz6c"))))
+    (arguments
+     '(#:configure-flags '("--disable-static" "CFLAGS=-fPIC")
+       ;; XXX: Some tests want /dev/tty, attempt to make connections, etc.
+       #:tests? #f))))
+
 (define-public libuv-for-node
   ;; When upgrading Node, also upgrade this. Get the version from
   ;; https://github.com/nodejs/node/blob/master/deps/uv/include/uv/version.h
--8<---------------cut here---------------end--------------->8---

and using that, if it's really necessary.

Thanks,

Maxim




This bug report was last modified 2 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.