From patchwork Wed May 29 13:29:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 14133 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7F30E17065; Wed, 29 May 2019 14:31:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 2946217060 for ; Wed, 29 May 2019 14:31:11 +0100 (BST) Received: from localhost ([127.0.0.1]:54363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVyfa-0004Yu-Ve for patchwork@mira.cbaines.net; Wed, 29 May 2019 09:31:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVyfX-0004Yg-ND for guix-patches@gnu.org; Wed, 29 May 2019 09:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVyfW-0007wA-Oj for guix-patches@gnu.org; Wed, 29 May 2019 09:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVyfW-0007w3-MQ for guix-patches@gnu.org; Wed, 29 May 2019 09:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVyfW-0002ec-H9 for guix-patches@gnu.org; Wed, 29 May 2019 09:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35982] [PATCH 8/9] gnu: Add sbcl-iolib. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 May 2019 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35982 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35982@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15591366099990 (code B ref -1); Wed, 29 May 2019 13:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 May 2019 13:30:09 +0000 Received: from localhost ([127.0.0.1]:58329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVyee-0002ax-RY for submit@debbugs.gnu.org; Wed, 29 May 2019 09:30:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVyed-0002aR-HO for submit@debbugs.gnu.org; Wed, 29 May 2019 09:30:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:51289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVyeY-0006eE-Dp for submit@debbugs.gnu.org; Wed, 29 May 2019 09:30:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVyeX-00042v-8Q for guix-patches@gnu.org; Wed, 29 May 2019 09:30:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVyeW-0006cR-8N for guix-patches@gnu.org; Wed, 29 May 2019 09:30:01 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:57361) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVyeW-0006bJ-24 for guix-patches@gnu.org; Wed, 29 May 2019 09:30:00 -0400 Received: from localhost.localdomain (lfbn-1-4117-19.w92-169.abo.wanadoo.fr [92.169.116.19]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 54EE3100019 for ; Wed, 29 May 2019 13:29:58 +0000 (UTC) From: Pierre Neidhardt Date: Wed, 29 May 2019 15:29:55 +0200 Message-Id: <20190529132956.7454-8-mail@ambrevar.xyz> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190529132956.7454-1-mail@ambrevar.xyz> References: <20190529132917.7142-1-mail@ambrevar.xyz> <20190529132956.7454-1-mail@ambrevar.xyz> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/lisp.scm (sbcl-iolib): New variable. --- gnu/packages/lisp.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 34bd0ce0cd..31d2e8d550 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages c) #:use-module (gnu packages compression) #:use-module (gnu packages ed) #:use-module (gnu packages fontutils) @@ -5471,3 +5472,36 @@ and @code{kqueue(2)}), a pathname library and file-system utilities.") (string-append (assoc-ref outputs "out") "/lib/sbcl"))))))) (synopsis "CFFI Groveller for IOLib, a Common Lisp I/O library"))) + +(define-public sbcl-iolib + (package + (inherit sbcl-iolib.asdf) + (name "sbcl-iolib") + (inputs + `(("iolib.asdf" ,sbcl-iolib.asdf) + ("iolib.conf" ,sbcl-iolib.conf) + ("iolib.grovel" ,sbcl-iolib.grovel) + ("iolib.base", sbcl-iolib.base) + ("bordeaux-threads", sbcl-bordeaux-threads) + ("idna", sbcl-idna) + ("swap-bytes", sbcl-swap-bytes) + ("libfixposix", libfixposix))) + (native-inputs + `(("fiveam" ,sbcl-fiveam))) + (arguments + '(#:asd-file "iolib.asd" + #:test-asd-file "iolib.tests.asd" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/syscalls/ffi-functions-unix.lisp" + (("\\(:default \"libfixposix\"\\)") + (string-append + "(:default \"" + (assoc-ref inputs "libfixposix") "/lib/libfixposix\")"))) + ;; Socket tests need Internet access, disable them. + (substitute* "iolib.tests.asd" + (("\\(:file \"sockets\" :depends-on \\(\"pkgdcl\" \"defsuites\"\\)\\)") + ""))))))) + (synopsis "Common Lisp I/O library")))