From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH] Add guile-fibers (needs help) Date: Mon, 05 Dec 2016 12:42:10 -0600 Message-ID: <87d1h66wvx.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDyDQ-0008Rf-Lj for guix-devel@gnu.org; Mon, 05 Dec 2016 13:42:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDyDN-0001ch-H4 for guix-devel@gnu.org; Mon, 05 Dec 2016 13:42:16 -0500 Received: from dustycloud.org ([50.116.34.160]:43490) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDyDN-0001cC-Ap for guix-devel@gnu.org; Mon, 05 Dec 2016 13:42:13 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 3B5AF266FA for ; Mon, 5 Dec 2016 13:42:11 -0500 (EST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I started a patch to add guile-fibers, which I know many of us are intertested in giving a spin, but I haven't gotten things to build right. The funny thing is I can get it to build fine from the tarball itself. I'm missing something in the package, but I don't know what. Here's the error I get during "make": Backtrace: In ice-9/boot-9.scm: 2788:17 19 (resolve-interface (fibers internal) #:select _ #:hide _ =E2= =80=A6) 2713:10 18 (_ (fibers internal) _ _ #:ensure _) 2989:16 17 (try-module-autoload _ _) 2325:4 16 (save-module-excursion #) 3009:22 15 (_) In unknown file: 14 (primitive-load-path "fibers/internal" #) In ice-9/eval.scm: 710:20 13 (primitive-eval (define-module (fibers internal) # (=E2=80= =A6) =E2=80=A6)) In ice-9/psyntax.scm: 1209:36 12 (expand-top-sequence ((define-module (fibers #) # # =E2=80= =A6)) =E2=80=A6) 1156:24 11 (parse _ (("placeholder" placeholder)) ((top) #(# # =E2=80= =A6)) =E2=80=A6) 279:10 10 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) =E2= =80=A6) In ice-9/eval.scm: 293:34 9 (_ #) In ice-9/boot-9.scm: 2849:10 8 (define-module* _ #:filename _ #:pure _ #:version _ # _ =E2= =80=A6) 2788:17 7 (resolve-interface (fibers epoll) #:select _ #:hide _ # =E2= =80=A6) 2713:10 6 (_ (fibers epoll) _ _ #:ensure _) 2989:16 5 (try-module-autoload _ _) 2325:4 4 (save-module-excursion #) 3009:22 3 (_) In unknown file: 2 (primitive-load-path "fibers/epoll" #) 1 (load-extension "epoll" "init_fibers_epoll") In ice-9/boot-9.scm: 753:26 0 (dispatch-exception _ _ _) =20 ice-9/boot-9.scm:753:26: In procedure dispatch-exception: ice-9/boot-9.scm:753:26: In procedure dynamic-link: file: "epoll", mess= age: "file not found" make[1]: *** [Makefile:1381: fibers/channels.go] Error 1 make[1]: Leaving directory '/tmp/guix-build-guile-fibers-0.3.0.drv-0/fi= bers-0.3.0' make: *** [Makefile:498: all] Error 2 phase `build' failed after 3.4 seconds Funny thing is, if I become the builder user and then try running ./configure && make after sourcing the environment variables, things build fine. One of the two must be true, afaict: - ... either there's something in the system environment that's being included that I'm missing - ... or Guix is patching the gnu-build-system stuff in such a way that things are different than when I run ./configure && make? I'd really like this package to work but am not sure I have the time to continue on it soon. If someone wants to take over from here, go for it. Maybe what I'm missing is something obvious... - Chris --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-guile-fibers.patch Content-Transfer-Encoding: quoted-printable >From d7952e26edb3732516f1e1743383a4ef68832661 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 5 Dec 2016 12:18:23 -0600 Subject: [PATCH] gnu: Add guile-fibers. * gnu/packages/guile.scm (guile-fibers): New variable. --- gnu/packages/guile.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index 4572544..4568434 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2012, 2013, 2014, 2015, 2016 Ludovic Court=C3=A8s <= ludo@gnu.org> ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver -;;; Copyright =C2=A9 2015 Christopher Allan Webber +;;; Copyright =C2=A9 2015, 2016 Christopher Allan Webber ;;; Copyright =C2=A9 2016 Alex Sassmannshausen ;;; Copyright =C2=A9 2016 Ricardo Wurmus ;;; Copyright =C2=A9 2016 Erik Edrosa @@ -1412,4 +1412,32 @@ type system, elevating types to first-class status= .") dictionary and suggesting spelling corrections.") (license gpl3+))) =20 +(define-public guile-fibers + (package + (name "guile-fibers") + (version "0.3.0") + (source (origin + (method url-fetch) + (uri (string-append "https://wingolog.org/pub/fibers/fiber= s-" + version ".tar.gz")) + (sha256 + (base32 + "1dc6d2ncclrd7napzf5b0mbw3xxsv43kb471ciz9v7r22277n9m7"))= )) + (build-system gnu-build-system) + (native-inputs + `(("texinfo" ,texinfo) + ("pkg-config" ,pkg-config))) + (inputs + `(("guile" ,guile-next))) + (synopsis "Concurrent ML-like concurrency for Guile") + (description + "Fibers adds concurrency to Guile, inspired by systems like Concurr= ent ML +and Erlang. Fibers are lightweight \"thread\"-like objects which commun= icate +through channels. + +Note that Fibers makes use of some Guile 2.1/2.2-specific features and +is not available for Guile 2.0.") + (home-page "https://github.com/wingo/fibers") + (license lgpl3+))) + ;;; guile.scm ends here --=20 2.10.2 --=-=-=--