From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 19 03:20:07 2018 Received: (at submit) by debbugs.gnu.org; 19 Sep 2018 07:20:07 +0000 Received: from localhost ([127.0.0.1]:45081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2WmM-0005n4-VL for submit@debbugs.gnu.org; Wed, 19 Sep 2018 03:20:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2WmL-0005mT-Jz for submit@debbugs.gnu.org; Wed, 19 Sep 2018 03:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2WmE-0006oU-Gl for submit@debbugs.gnu.org; Wed, 19 Sep 2018 03:20:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56160) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2WmD-0006n9-Ew for submit@debbugs.gnu.org; Wed, 19 Sep 2018 03:19:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2WmC-0000Vz-EC for bug-guix@gnu.org; Wed, 19 Sep 2018 03:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2Wm6-0006gI-IE for bug-guix@gnu.org; Wed, 19 Sep 2018 03:19:56 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:38161) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2Wm4-0006dU-Jw for bug-guix@gnu.org; Wed, 19 Sep 2018 03:19:50 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id A31F51BF211 for ; Wed, 19 Sep 2018 07:19:46 +0000 (UTC) User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: bug-guix@gnu.org Subject: Packaging SLIME/SWANK as Common Lisp library Date: Wed, 19 Sep 2018 09:19:46 +0200 Message-ID: <87museeyy5.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On the long road to packaging Next browser (bug #32729), I've hit a big obstacle: packaging the SLIME/SWANK dependency. We currently have an emacs-slime package, but that cannot be used as a Common Lisp dependency. See those conversations: https://lists.gnu.org/archive/html/guix-devel/2018-08/msg00138.html and https://github.com/slime/slime/issues/457 =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluh+JIACgkQm9z0l6S7 zH+VSAgArlyrkxcBPDbnOAEEmzIyeq4XA15CKCEs61xh96GVJV4tXDeForJ+IvLt JaMfUXc57Qx0hDgSxGGQOmVTA2+2pWCJeXiex4JhBykwI8463eSKrLL4w/vy/wZS E+vEd5oJrZlNmOA8uCdKfIRTJIXRISyqrsSgGEiGUVT8B5vDY1ku8C00AMYDhZ99 THOX/1dErYhqCpFwky+KGrMV1sHxGA9K8K3DTxYa2gNr5tAQ7mK61mmL+v2Fovj4 M5RoNv05pewLqZFrOjwdysi6NZiKYQRaeM8aNYXn8P8YVTMw8aA5X89yh9+Wv8wN 8TAu0S81jBHuTCq4Rj+MRWalzRSXxw== =cWmC -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 29 15:16:43 2018 Received: (at 32770) by debbugs.gnu.org; 29 Sep 2018 19:16:43 +0000 Received: from localhost ([127.0.0.1]:59154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6KjL-00073n-EL for submit@debbugs.gnu.org; Sat, 29 Sep 2018 15:16:43 -0400 Received: from mailchk-m06.uwaterloo.ca ([129.97.128.242]:49692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6KjJ-00073Y-Kb for 32770@debbugs.gnu.org; Sat, 29 Sep 2018 15:16:42 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m06.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w8TJGVfx012998 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 29 Sep 2018 15:16:32 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m06.uwaterloo.ca w8TJGVfx012998 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1538248594; bh=hpdjghs26ax0yN9xr+Yfy0wn8e+Afw5nnTORrruDlzE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aggP2o+4NaSE0y/xBpN110mKRQkKoP1IiKYnBOfC+YhbtapOejWTU/ZUnA1lfS7yY tudkssGbAbakscn/lYpc8DDyWm9QtyiO66rmnpIOTALmwoGajcc7Dq2lZUO4usT9mP gFyZTIoiYHMNpDtmZq1cvQ7B1Kn/oyuQskEDvpcg= Date: Sat, 29 Sep 2018 15:16:30 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20180929151630.00cf6396@mailservices.uwaterloo.ca> In-Reply-To: <87museeyy5.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-m06.uwaterloo.ca X-UUID: a271be7c-739c-4a88-b5ae-1d8bf1a9da12 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mailchk-m06.uwaterloo.ca [129.97.128.141]); Sat, 29 Sep 2018 15:16:33 -0400 (EDT) X-Miltered: at mailchk-m06 with ID 5BAFCF8F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m06 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey Pierre, Sorry for taking so long to get back to you. On Wed, 19 Sep 2018 09:19:46 +0200 Pierre Neidhardt wrote: > On the long road to packaging Next browser (bug #32729), I've hit a > big obstacle: packaging the SLIME/SWANK dependency. >=20 > We currently have an emacs-slime package, but that cannot be used as a > Common Lisp dependency. >=20 I've managed to figure out why that is. With the branch you're using for the package, the asd file defines the package and variables that get used - but in guix that asd file gets discarded. I think the right way is to have those definitions defined in a separate file, and actually they are defined in one as well. The following patch adds that file to the asd and makes sure it compiles successfully. I've noticed that the pull request that branch was made for is closed though - I'll try to see if I can get things building with the other one that's open and maybe co-ordinate with upstream to get that in. For now though, maybe this will unblock you. The patch was made after rebasing your branch unto master. I was also able to drop the commit named "build-system/asdf: Fix normalize-string to support versioned dependencies", since there's a more general version of it in master now. -- Andy =46rom a7b945bb58f22ac6c0bcee1bee62e40ffa9873a6 Mon Sep 17 00:00:00 2001 From: Andy Patterson Date: Sat, 29 Sep 2018 15:04:40 -0400 Subject: [PATCH] gnu: slime-swank: Make it loadable. * gnu/packages/lisp.scm (sbcl-slime-swank)[origin]: Add (guix build utils). : Patch the asd file to load swank-loader-asdf. --- gnu/packages/lisp.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index aa146c9a5..a05d95f60 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -2223,12 +2223,18 @@ writing code that contains string literals that contain code themselves.") (base32 ;; "065bc4y6iskazdfwlhgcjlzg9bi2hyjbhmyjw3461506pgkj08vi" "0pkmg94wn4ii1zhlrncn44mdc5i6c5v0i9gbldx4dwl2yy7ibz5c")) + (modules '((guix build utils))) (snippet '(begin (substitute* "contrib/swank-listener-hooks.lisp" ((":compile-toplevel :load-toplevel ") "")) (substitute* "contrib/swank-presentations.lisp" ((":compile-toplevel :load-toplevel ") "")) + (substitute* "swank.asd" + ((":file \"packages\".*" all) + (string-append all "(:file \"swank-loader-asdf\")\n"))) + (substitute* "swank-loader-asdf.lisp" + ((":common-lisp" all) (string-append all " #:asdf"))) #t)))) (build-system asdf-build-system/sbcl) (arguments --=20 2.19.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 30 17:27:42 2018 Received: (at 32770) by debbugs.gnu.org; 30 Sep 2018 21:27:42 +0000 Received: from localhost ([127.0.0.1]:60393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6jFd-00062d-3B for submit@debbugs.gnu.org; Sun, 30 Sep 2018 17:27:42 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6jFb-00062V-Oa for 32770@debbugs.gnu.org; Sun, 30 Sep 2018 17:27:40 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id E1ADC1C0002; Sun, 30 Sep 2018 21:27:37 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <20180929151630.00cf6396@mailservices.uwaterloo.ca> Date: Sun, 30 Sep 2018 23:27:37 +0200 Message-ID: <87lg7iwu9i.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andy, you are the hero of the day! Thank you so much! Thinking about it, that explains why Quicklisp does not have a problem with= it: it always loads the .asd file I suppose. (I haven't checked the code.) I'll keep on packaging Next, hopefully there won't be such an obstacle agai= n and we will see it land in Guix very soon! Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluxP8kACgkQm9z0l6S7 zH9HOwf/c7CVqPVpHwW5YOdIrlrSNbEyVV+YEJch1FBF+3F5bMJNkA6ewm/QlJ8P lzd8fB5jJtu/KmUHmBhqXYN06/lCstix/3dq3aSeWcUMHVEE6TtzCI9YawVvT7D7 36bIcGMaa+mRrHza6QYOInPAw5vTxb1cA1Aa9c3Ou4G7dJF20l/lWSizxkq8rQyP nkz7+jO1iXSWjJ35GlgSjMhOUQbvvfd6m4f3grQbm7D/9WQtrcJ18EgC4HUxnfM/ 86MaD0idfptVnUh4zDbECGv5+zIZXy+SimlmwU4S4LlkJVklVW4JMclVZSQu4Jgv prnwt9yvauh8ZwT0HUpaiA7/pHVMqQ== =BSnl -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 30 17:46:17 2018 Received: (at 32770) by debbugs.gnu.org; 30 Sep 2018 21:46:17 +0000 Received: from localhost ([127.0.0.1]:60407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6jXd-0006U4-1c for submit@debbugs.gnu.org; Sun, 30 Sep 2018 17:46:17 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:39893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6jXa-0006Tv-NT for 32770@debbugs.gnu.org; Sun, 30 Sep 2018 17:46:15 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 808342000B; Sun, 30 Sep 2018 21:46:11 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <87lg7iwu9i.fsf@ambrevar.xyz> Date: Sun, 30 Sep 2018 23:46:08 +0200 Message-ID: <87k1n2wten.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Also see https://github.com/quicklisp/quicklisp-projects/issues/1561 There are some interesting links, mostly about the Nix system. See the https://github.com/NixOS/nixpkgs/blob/5048b0d1f9e908665a01c35f49b2d9816128= e089/pkgs/development/lisp-modules/quicklisp-to-nix-output/swank.nix file: I think it would have given us a clear hint with ~asdFilesToKeep =3D ["swank.asd"];~, had we looked at Nix before. I haven't looked to closely into what else Nix is doing to package Common L= isp, but it seems rather complete. Any good idea we could borrow, Andy? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluxRCAACgkQm9z0l6S7 zH8iOwf+LyPNEGMN1w0dQqnlMaB4nSLYjEAcRv0eoMDSKC5bMEs6+kQvjgivboe4 mRBKrhs8A9Fsc8mqrwnE7XAde8ufnbDpvUROgfPGKdrmenkXdCXsWK5160MG/cng ga84A7CrbALy4dZxvOlaC6ndir+Is8OHjv5j41a4yM26pxWHw2M81KBPV5Xz/xoC wBnD9Nd2cudtamQFGDH1wiggP4J73dafranqyJu8eWyUKJq7mXfS1mI2+WE7G4hJ pRYlieL5xqhNRZ5Kt4v26bx4iqzmNf4AceUqV4z0ehLZZCmN9Cr/RRpzUlptz2UJ 2fA61RSkmj9gQkBXfs0ihAjjLkHP2Q== =Tgcq -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 01 09:53:55 2018 Received: (at 32770) by debbugs.gnu.org; 1 Oct 2018 13:53:55 +0000 Received: from localhost ([127.0.0.1]:60930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6ye3-0002lQ-FO for submit@debbugs.gnu.org; Mon, 01 Oct 2018 09:53:55 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:42171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6ye0-0002lA-Dw for 32770@debbugs.gnu.org; Mon, 01 Oct 2018 09:53:54 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 0105E1BF206; Mon, 1 Oct 2018 13:53:50 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <87k1n2wten.fsf@ambrevar.xyz> Date: Mon, 01 Oct 2018 15:53:50 +0200 Message-ID: <87d0stwz69.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Another issue, Andy, is with the new `normalize-dependency' function that a= dds support for the dependency syntax as specified by the ASDF grammar. I think your approach is good but it fails for `jpl-queues` because it produces the following .asd file in the store: =2D-8<---------------cut here---------------start------------->8--- (asdf:defsystem "jpl-queues" :class asdf/bundle:prebuilt-system :version "0.1" :depends-on ("bordeaux-threads" (:version "jpl-util" "0.2")) :components ((:compiled-file "jpl-queues--system"))) (progn (asdf/source-registry:ensure-source-registry) (setf (gethash "bordeaux-threads" asdf/source-registry:*source-registry*) #p "/gnu/store/67dhvxva7345r2xijz9yqp94s0fslrpn-sbcl-bordeaux-thr= eads-0.8.5-1.354abb0/share/common-lisp/sbcl-bundle-systems/bordeaux-threads= .asd")) =2D-8<---------------cut here---------------end--------------->8--- Note that jpl-util is missing from the registry link list. It turns out that it fails because the match-lambda you've used to implemen= t the standard are case-sensitive, while the standard is case-insensitive. Adn... jpl-queues uses ":VERSION" and not ":version" as you expected :( I think the simple fix would be to make the two match-lambda case-insensiti= ve (both in generate-dependency-links and in make-asd-file). What do you think? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluyJu4ACgkQm9z0l6S7 zH9+Dgf/XvihtCeu6E6KXm7ES8aDDexDC4nKnwEUWZpHJFLnhYGAgbWPEPRTWiv0 q34XBgwDONC7nq5CnPOAKYdjP8VuU0TQU6fcW3dMSHlgYqcLcI8wVo6WaqBij4B+ uHMzPZeXY8jlGYQtx9h3lx3zywdyBGM6fSa9FNkF8MtMs7kdGrjD++fZWyHJSef2 iRm8YJu4SY00pFROG3Qn1bqbtwy4rsgAFI5CVUdnQTHTdAjqPum1AJ547xZM0L5o 2KNTvLPSUDh3QDQRUylPR9bJiGr5zK7mQSHAolS/jgkx20Vl1MnFzhftRRki+mG7 hIKgqJls72Bn2+7md7ClHF44F9LUTg== =i/UB -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 04:38:40 2018 Received: (at 32770) by debbugs.gnu.org; 2 Oct 2018 08:38:40 +0000 Received: from localhost ([127.0.0.1]:33732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7GCV-00015B-R9 for submit@debbugs.gnu.org; Tue, 02 Oct 2018 04:38:40 -0400 Received: from mailchk-m06.uwaterloo.ca ([129.97.128.242]:59522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7GCU-00014t-7P for 32770@debbugs.gnu.org; Tue, 02 Oct 2018 04:38:38 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m06.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w928cNRv030913 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 2 Oct 2018 04:38:25 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m06.uwaterloo.ca w928cNRv030913 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1538469506; bh=RL9zSgF5/KEGolZiV8bn0L7VWY3z4gBqsMzXNZRhRBQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p0pLYhsInGcXjOw5eJ3jD6tes8lpY5CukfKulxWpYaFFPbGfnACXzJd6djgN0dYBC MCMuvQ6NpYPZvADWPJq9jV6FdMbc7s340F2g6oH/A9ITDC+VhuGxImJo3baIPwQVUD KWHTKe8t4XA8SWdy7t/J0IIdwkVuWzbjBq5hnTDo= Date: Tue, 2 Oct 2018 04:38:22 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20181002043822.246ed5d5@mailservices.uwaterloo.ca> In-Reply-To: <87d0stwz69.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <87d0stwz69.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-r02.uwaterloo.ca X-UUID: cd8cc002-abe3-4aed-9b6f-5ca63836cc4f X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mailchk-m06.uwaterloo.ca [129.97.128.141]); Tue, 02 Oct 2018 04:38:26 -0400 (EDT) X-Miltered: at mailchk-m06 with ID 5BB32E80.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m06 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, On Mon, 01 Oct 2018 15:53:50 +0200 Pierre Neidhardt wrote: > Another issue, Andy, is with the new `normalize-dependency' function > that adds support for the dependency syntax as specified by the ASDF > grammar. I think your approach is good but it fails for `jpl-queues` > because it produces the following .asd file in the store: > > [...] > > Note that jpl-util is missing from the registry link list. > > It turns out that it fails because the match-lambda you've used to > implement the standard are case-sensitive, while the standard is > case-insensitive. Right, good catch. > > Adn... jpl-queues uses ":VERSION" and not ":version" as you > expected :( > > I think the simple fix would be to make the two match-lambda > case-insensitive (both in generate-dependency-links and in > make-asd-file). We're always retrieving that list from a lisp implementation, so I think it's safe to assume that those symbols will be up-cased in the output that it sends us. I'll send a patch with that change. Thanks, -- Andy From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 04:55:46 2018 Received: (at 32770) by debbugs.gnu.org; 2 Oct 2018 08:55:46 +0000 Received: from localhost ([127.0.0.1]:33739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7GT4-0001Sl-Cv for submit@debbugs.gnu.org; Tue, 02 Oct 2018 04:55:46 -0400 Received: from mailchk-m02.uwaterloo.ca ([129.97.128.241]:35040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7GT2-0001SW-7m for 32770@debbugs.gnu.org; Tue, 02 Oct 2018 04:55:44 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m02.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w928tWv7024710 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 2 Oct 2018 04:55:34 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m02.uwaterloo.ca w928tWv7024710 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1538470536; bh=0KivyPVfd73iLL0o1eSJDZouKPwkFYroZ4My7rUaWNg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QIzMl8GzwZDW0P8iN3pdg2OrcgRsLS1jkVSW4DCnmltfGPUQkXLChuozqNd9pGhfP reTdL/pF9o1vR7vBNYjs7RggS+VxrlWgR+v8Ou3qfD3z2WIp8xkwf1w+DlGvQngjya 1JYkh1mTM5MpaWJJzHdy27wJASwn81Yv1PnSoCic= Date: Tue, 2 Oct 2018 04:55:31 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20181002045531.78223c72@mailservices.uwaterloo.ca> In-Reply-To: <87k1n2wten.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-r02.uwaterloo.ca X-UUID: 34818abd-3538-4d3d-9bad-abb276e705f6 X-Miltered: at mailchk-m02 with ID 5BB33285.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m02 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, On Sun, 30 Sep 2018 23:46:08 +0200 Pierre Neidhardt wrote: > Also see > > https://github.com/quicklisp/quicklisp-projects/issues/1561 > > There are some interesting links, mostly about the Nix system. See > the > > https://github.com/NixOS/nixpkgs/blob/5048b0d1f9e908665a01c35f49b2d9816128e089/pkgs/development/lisp-modules/quicklisp-to-nix-output/swank.nix > Having taken just a quick look at what's there, it seems that the approach is fairly different from what we're doing. They're using the default asdf build target, and I think they must be relying on output translations having been set up right to avoid re-compilation. I'm trying to get a Nix OS VM set up to play around with what's there. > file: I think it would have given us a clear hint with > ~asdFilesToKeep = ["swank.asd"];~, had we looked at Nix before. > It looks like they're doing that in all of the packages. In general, we shouldn't expect to have to bring definitions from upstream's asd file into our own. Asdf's best practices documentation warns against it. Also, they're using upstream slime, unlike your package, so I don't think anything is being compiled at all. The difference here between Nix's system and ours is that they're using the upstream asd file to load the system, whereas we generate our own just for the build's output. This allows us to load the compiled file (or files) directly, without having to rely on mapping source files to compiled files. > I haven't looked to closely into what else Nix is doing to package > Common Lisp, but it seems rather complete. Any good idea we could > borrow, Andy? It'd be nice to have an importer. Maybe we can use Nix's work to reduce the amount of investigation needed to get there. -- Andy From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 06:24:33 2018 Received: (at 32770) by debbugs.gnu.org; 2 Oct 2018 10:24:33 +0000 Received: from localhost ([127.0.0.1]:33826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7Hqz-0005kQ-FR for submit@debbugs.gnu.org; Tue, 02 Oct 2018 06:24:33 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7Hqx-0005kG-Vs for 32770@debbugs.gnu.org; Tue, 02 Oct 2018 06:24:32 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E8EBCE0003; Tue, 2 Oct 2018 10:24:29 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <20181002045531.78223c72@mailservices.uwaterloo.ca> Date: Tue, 02 Oct 2018 12:24:29 +0200 Message-ID: <878t3gwsrm.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > It'd be nice to have an importer. Maybe we can use Nix's work to > reduce the amount of investigation needed to get there. Absolutely. ASDF is good enough that the vast majority of CL libraries can= be packaged without an itch. If we could use Quicklisp or http://quickdocs.org/ =09 to write a recursive importer, we could get programs like Next browser pack= aged in one go but for a couple of tweaks for the 2-3 odd packages. Let me know if you want to work on this, otherwise I'll give it a shot. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluzR10ACgkQm9z0l6S7 zH+8hAf/Rb9ApqjZhRl9PyJCaNy35dChopyrlphWrZSSgqp7U/1IpfJT5TXCJ4rE yV4ej3DVYZ29WM6UtRqJsd5H8G20jeuPlbvftxPA8jXeXyy+yRV08Y3FmJpZed9W ske1mf7z7RokLzxRV9aw3Mt4OTUUXcvIQrLjnVuS+rZaUT26+dbD1RBqeIL6SpFK p55YPIj+D8LsAdRy1403p8PBM6zajx1RTEgP9wpo7iYXsDPozcg2E2e4yH5jTyCa FkHY9i10FZzZiJFaNmLin+a36y9Tc6ckCtnUcMAYge8nRHszGlqFA2D9YUePZXY8 jXZGnV2NAQRGBd6akwfG+3HsKqaKqw== =zYl0 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 01:22:39 2018 Received: (at 32770) by debbugs.gnu.org; 3 Oct 2018 05:22:39 +0000 Received: from localhost ([127.0.0.1]:34838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7ZcL-0002zY-SN for submit@debbugs.gnu.org; Wed, 03 Oct 2018 01:22:39 -0400 Received: from mailchk-m04.uwaterloo.ca ([129.97.128.236]:40496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7ZcJ-0002zH-OG for 32770@debbugs.gnu.org; Wed, 03 Oct 2018 01:22:36 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m04.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w935MOjd013662 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 Oct 2018 01:22:26 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m04.uwaterloo.ca w935MOjd013662 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1538544147; bh=j+LvC1ekwRDpvJHtpneCVhNF1PUS1Yy+hMh8RR1kXNg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=enWpN72/Yrcm6v+Z8LVoFkTBJsOkadSxU66LaFVw/sN4pGQa2/dscxluGW4ffefsv 8VISd5T3SWYdg09QY+ojAEsTdbzHLqWgNIJsotfjlzR6THqtVjYIM8T7JIzEkI1C98 Z2WAqwaYit0MA65DQnoSPDKePyl1lbrTlrhNN6GI= Date: Wed, 3 Oct 2018 01:22:24 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20181003012224.5baff3ac@mailservices.uwaterloo.ca> In-Reply-To: <878t3gwsrm.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-m03.uwaterloo.ca X-UUID: 9b8a04ad-e3c2-4dde-8e46-938b53af7e48 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mailchk-m04.uwaterloo.ca [129.97.128.141]); Wed, 03 Oct 2018 01:22:27 -0400 (EDT) X-Miltered: at mailchk-m04 with ID 5BB45211.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m04 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Pierre, On Tue, 02 Oct 2018 12:24:29 +0200 Pierre Neidhardt wrote: > > It'd be nice to have an importer. Maybe we can use Nix's work to > > reduce the amount of investigation needed to get there. > > Absolutely. ASDF is good enough that the vast majority of CL > libraries can be packaged without an itch. > > If we could use Quicklisp or > > http://quickdocs.org/ > > to write a recursive importer, we could get programs like Next > browser packaged in one go but for a couple of tweaks for the 2-3 odd > packages. > > Let me know if you want to work on this, otherwise I'll give it a > shot. > I'd like to be involved as I have some ideas on things we could do differently from Nix that I'd begun investigating. I'll elaborate more once I get the chance to organize my thoughts. Thanks, -- Andy From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 14:34:29 2018 Received: (at 32770) by debbugs.gnu.org; 3 Oct 2018 18:34:29 +0000 Received: from localhost ([127.0.0.1]:35952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7lyf-00012x-59 for submit@debbugs.gnu.org; Wed, 03 Oct 2018 14:34:29 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:48757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7lyd-00012h-7Z for 32770@debbugs.gnu.org; Wed, 03 Oct 2018 14:34:27 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id CA13960005; Wed, 3 Oct 2018 18:34:25 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <20181003012224.5baff3ac@mailservices.uwaterloo.ca> Date: Wed, 03 Oct 2018 20:34:24 +0200 Message-ID: <8736tmj2vj.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Last (hopefully?) step before getting Next up and running: add support for CFFI. I've re-used your CFFI package and they seem to work. Now if I want to package cl-sqlite, it fails because sqlite.so cannot be found. Indeed, the patch to /gnu/store/...-sqlite.../lib must be added to the cffi:*foreign-library-directories* global variable before compiling. If I do that from quicklisp, it works. Now I guess we need to tweak asdf-build-system so that packages can specify which paths to add to that global variable. Makes sense? I've given it a quick shot (patch attached) but then every ASDF build fails with --8<---------------cut here---------------start------------->8--- ice-9/boot-9.scm:222:17: In procedure map1: Syntax error: unknown location: unexpected syntax in form () --8<---------------cut here---------------end--------------->8--- I'm still lacking good knowledge of the asdf build system. I'll give it a closer look tomorrow. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-cffi-support.patch Content-Transfer-Encoding: quoted-printable From=201c4b9b915086b0fdfb4229f5bbfa5aecff784f42 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 3 Oct 2018 20:27:00 +0200 Subject: [PATCH] cffi support =2D-- guix/build-system/asdf.scm | 2 ++ guix/build/asdf-build-system.scm | 4 ++-- guix/build/lisp-utils.scm | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/guix/build-system/asdf.scm b/guix/build-system/asdf.scm index 57e294d74..37c219460 100644 =2D-- a/guix/build-system/asdf.scm +++ b/guix/build-system/asdf.scm @@ -266,6 +266,7 @@ set up using CL source package conventions." (tests? #t) (asd-file #f) (asd-system-name #f) + (cffi-foreign-library-directories '()) (test-asd-file #f) (phases '(@ (guix build asdf-build-system) %standard-phases)) @@ -298,6 +299,7 @@ set up using CL source package conventions." #:asd-file ,(or asd-file (string-append system-name= ".asd")) #:asd-system-name ,system-name #:test-asd-file ,test-asd-file + #:cffi-foreign-library-directories ,cffi-foreign-li= brary-directories #:system ,system #:tests? ,tests? #:phases ,phases diff --git a/guix/build/asdf-build-system.scm b/guix/build/asdf-build-syste= m.scm index dd6373b33..7d879ddb9 100644 =2D-- a/guix/build/asdf-build-system.scm +++ b/guix/build/asdf-build-system.scm @@ -106,7 +106,7 @@ valid." (delete-file-recursively "systems"))) #t) =20 =2D(define* (build #:key outputs inputs asd-file asd-system-name +(define* (build #:key outputs inputs asd-file asd-system-name cffi-foreign= -library-directories #:allow-other-keys) "Compile the system." (let* ((out (library-output outputs)) @@ -121,7 +121,7 @@ valid." =20 (setenv "HOME" out) ; ecl's asdf sometimes wants to create $HOME/.cache =20 =2D (compile-system asd-system-name asd-file) + (compile-system asd-system-name asd-file cffi-foreign-library-director= ies) =20 ;; As above, ecl will sometimes create this even though it doesn't use= it =20 diff --git a/guix/build/lisp-utils.scm b/guix/build/lisp-utils.scm index 5dea30486..5d7b5afd0 100644 =2D-- a/guix/build/lisp-utils.scm +++ b/guix/build/lisp-utils.scm @@ -149,13 +149,16 @@ with PROGRAM." `(asdf:load-system ,system)) systems)) =20 =2D(define (compile-system system asd-file) +(define* (compile-system system asd-file #:optional cffi-foreign-library-d= irectories) "Use a lisp implementation to compile SYSTEM using asdf. Load ASD-FILE first." (lisp-eval-program `((require :asdf) (let ((*package* (find-package :asdf))) (load ,asd-file)) + ,(unless (null? cffi-foreign-library-directories) + `(progn (require :cffi) + (setq cffi:*foreign-library-directories* ,cffi-foreign-lib= rary-directories))) (asdf:operate 'asdf:compile-bundle-op ,system)))) =20 (define (system-dependencies system asd-file) =2D-=20 2.19.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu1C7AACgkQm9z0l6S7 zH+rdQgAqGOcpUwQKt0GJVA26/THe51d38nBy18+9ehbNcNGBd1TFJXjb8lAjCco nfEYJBXGuvPVx11SU2F0nq0SObTwJ/4OsOIlQXDCykJjdmibsyyVJ/xcoiotEAVN PWJjRwhFg+IAlOOGhrungHQLSzo8hHu6mu3AspF2R78vFqHG62vnUzZC/TqAbGw9 g0zgFydeQc4ykU+I9gwr+zTXJmePXyLDzhQPVbevJsOvVkA1jJEt4yfWqDgZidCy SvchELN8hmrIxPsAwnCC/mG5h++kz1RHuaooCTVp6ZZ+hwdiEfCVZCALTVf0kYTs AC+HEXYlO8V5f/B4OU1qVNyJ/qjfDA== =oa6d -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 15:48:32 2018 Received: (at 32770) by debbugs.gnu.org; 3 Oct 2018 19:48:32 +0000 Received: from localhost ([127.0.0.1]:36085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7n8I-0002xm-Vv for submit@debbugs.gnu.org; Wed, 03 Oct 2018 15:48:32 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:50835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7n8G-0002xd-Q8 for 32770@debbugs.gnu.org; Wed, 03 Oct 2018 15:48:29 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E2243E0007; Wed, 3 Oct 2018 19:48:26 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <8736tmj2vj.fsf@ambrevar.xyz> Date: Wed, 03 Oct 2018 21:48:14 +0200 Message-ID: <87lg7en75t.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hmmm, I should have posted this on Next's bug, not this one, sorry. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu1HP4ACgkQm9z0l6S7 zH+aIgf/b9zo8sOM3508ZSkfMTkVVwxz0vAZBZZVXLuhQsewYD5otBxYjxEioIpZ oVy+K0Qcm7pu4pfuoGuMH9FXOETyBePN3i//Df96C/krnM+WvUnemTWek7sVXYZ4 IyoetgnvaxdeCjSHHJJTfPQDLsNP1ChlYMBBktKMubvamrtVinGWii6V9ZQHB/UM cPoTuplTrRPV6jhL5e9/b1FXKf0H9GSO9L9YEMEu81OWD8PhWgaDb+RFCQDWtODR 0LlMTaVflpDf3ihvEEtxDgxBF1e81vmMDjPqdep5PcD7z4N1y1vO5hQwEvzbqd3E 4F2vwvO5uclUNwUuaWM+6bDvhzrsqg== =StQj -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 04 01:03:22 2018 Received: (at 32770) by debbugs.gnu.org; 4 Oct 2018 05:03:22 +0000 Received: from localhost ([127.0.0.1]:36275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7vnG-0003jE-23 for submit@debbugs.gnu.org; Thu, 04 Oct 2018 01:03:22 -0400 Received: from mailchk-m03.uwaterloo.ca ([129.97.128.240]:48046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7vnE-0003j1-4b for 32770@debbugs.gnu.org; Thu, 04 Oct 2018 01:03:20 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m03.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w94539fd008482 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 4 Oct 2018 01:03:11 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m03.uwaterloo.ca w94539fd008482 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1538629392; bh=/wZxVS4eEKaV3TciFSW8X4yTz+KIF0qrA1+z/9cFnGI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uMwteQewgbvwVDu/np4ctr1ggVj3UIP4EY7RmISChShfsW52PCuc7RNPEZdStlogG vARoRmqW/CxkiC6dCxD2rfcu9Tpz31YPWoq2NwDPHUqMeAnLnHDCrFgyxy6k2TNluA DIDP1W0Gq/8UQ0SILuPCaKLhmsgZtPJOgSIV/jUI= Date: Thu, 4 Oct 2018 01:03:08 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20181004010308.7825505f@mailservices.uwaterloo.ca> In-Reply-To: <8736tmj2vj.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-m01.uwaterloo.ca X-UUID: e4ace758-2a16-4660-83bd-9a5dc79d07ee X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mailchk-m03.uwaterloo.ca [129.97.128.141]); Thu, 04 Oct 2018 01:03:12 -0400 (EDT) X-Miltered: at mailchk-m03 with ID 5BB59F0D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m03 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, On Wed, 03 Oct 2018 20:34:24 +0200 Pierre Neidhardt wrote: > Last (hopefully?) step before getting Next up and running: add > support for CFFI. > > I've re-used your CFFI package and they seem to work. Now if I want > to package cl-sqlite, it fails because sqlite.so cannot be found. > Indeed, the patch to /gnu/store/...-sqlite.../lib must be added to the > cffi:*foreign-library-directories* global variable before compiling. > > If I do that from quicklisp, it works. Now I guess we need to tweak > asdf-build-system so that packages can specify which paths to add to > that global variable. I've been using a cffi consumer for a while now, and my approach for that package was to update references to library and header files with the full paths to their respective store items. Adding to *foreign-library-directories* at compile time may allow a package to compile, but I get the feeling that it may not have the desired effect when you try to load the package later on. I guess another approach we could take if replacement is undesirable would be to modify the cffi package to honour some environment variable for its default, and then add that variable to the search path for cffi. Maybe such a variable already exists, even. I think this is the approach that Nix takes. I personally tend to favour replacement, but others could chime in here as well since this problem isn't specific to lisp packaging. > > Makes sense? > > I've given it a quick shot (patch attached) but then every ASDF build > fails with > > --8<---------------cut here---------------start------------->8--- > ice-9/boot-9.scm:222:17: In procedure map1: > Syntax error: > unknown location: unexpected syntax in form () > --8<---------------cut here---------------end--------------->8--- > It's confusing, but you either need to double quote the default argument (e.g. (cffi-foreign-library-directories ''())), or re-quote the unquoted variable when you pass it along, depending on how you want users to specify the argument in the package (quoted for the former, unquoted for the latter). Hoping that helps, -- Andy From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 04 04:37:27 2018 Received: (at 32770) by debbugs.gnu.org; 4 Oct 2018 08:37:27 +0000 Received: from localhost ([127.0.0.1]:36324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7z8R-0000bQ-E6 for submit@debbugs.gnu.org; Thu, 04 Oct 2018 04:37:27 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7z8Q-0000bI-85 for 32770@debbugs.gnu.org; Thu, 04 Oct 2018 04:37:26 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 9F02220022; Thu, 4 Oct 2018 08:37:23 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <20181004010308.7825505f@mailservices.uwaterloo.ca> Date: Thu, 04 Oct 2018 10:37:08 +0200 Message-ID: <87k1mym7kb.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org, Ricardo Wurmus , Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain CC-ing Ludovic and Ricardo if they want to chime in. Thanks for the feedback, Andy, so invaluable as always. > I've been using a cffi consumer for a while now, and my approach for > that package was to update references to library and header files with > the full paths to their respective store items. Cool! Can you share this package? Or provide an example? Can't wait to get this up and running! > Adding to *foreign-library-directories* at compile time may allow a > package to compile, but I get the feeling that it may not have the > desired effect when you try to load the package later on. Why? In my experience it works for a compiled Next executable. > I guess another approach we could take if replacement is undesirable > would be to modify the cffi package to honour some environment variable > for its default, and then add that variable to the search path for > cffi. The cffi:*foreign-library-directories* approach got recommended to me on the CFFI mailing list. I find it similar to what you want, a sort of environment variable (a search-path global variable). I haven't looked into Nix. > I personally tend to favour replacement, but others could chime in here > as well since this problem isn't specific to lisp packaging. Could this be automated? What I like with cffi:*foreign-library-directories* is that we could automatically push (string-append (assoc-ref inputs "foo") "/lib) to it so that packages only have to write something like #:cffi-packages (list ,cl-sqlite ,cl-foo...) -- Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu10TQACgkQm9z0l6S7 zH+zbwf/QbUvWASG0u35ppN2Nh/5QSYoQrJQwlqiU8nO0rB7b2Y+FZ2rHOHYjR1e nSj556t1+SKrhlQR8OjzSkSSbOzwvEzwPOqE9HKnFTnKmW4lbZmXwEDAXNJGdHPD vcLq0BJyGyoArGc2rypQbD3UpyL7I/uX2Y5WbvmcxvwwgJ13guIlmEiITaG4ET5n VdKbJDB6vgFHL7cpXLpU3pkUMtzoDWzLyrf/676Q5a+GjSTUgTxzzJ/F2x1phLx3 fl2LRT+5RZVdVXLmOXz22I9k8Yc9Z2m5XvLbuazuW6flVa4ioEtmOHHIEw7z231B /g0Xakgg7MXIh/TvaxKaDPgaKFvZ1g== =xkVI -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 04 16:38:32 2018 Received: (at 32770) by debbugs.gnu.org; 4 Oct 2018 20:38:32 +0000 Received: from localhost ([127.0.0.1]:37102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8AOG-0006Z1-EU for submit@debbugs.gnu.org; Thu, 04 Oct 2018 16:38:32 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:34809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8AOE-0006Yr-KH for 32770@debbugs.gnu.org; Thu, 04 Oct 2018 16:38:31 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 899301C000A; Thu, 4 Oct 2018 20:38:27 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> <87zhvtshy9.fsf@elephly.net> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Ricardo Wurmus Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <87zhvtshy9.fsf@elephly.net> Date: Thu, 04 Oct 2018 22:38:26 +0200 Message-ID: <87a7ntmoql.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > This sounds useful, but to me it feels like wrapping executables in > LD_LIBRARY_PATH, which we try hard to avoid. >=20 > When using cffi:*foreign-library-directories* how would we deal with > cases where we have more than one package specifying cffi-packages? > Would this option need to be considered for every package in the package > closure? Would it need to be handled by a profile hook in case these > packages are installed? Every new path is appended to the list, and CFFI looks for the first matchi= ng library. This means that there could be conflicts if two packages feature = the same library name (which could be the case when a library is built with different flags for instance). I think you are right, we should go with Andy's approach. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu2ekIACgkQm9z0l6S7 zH8fEQf8DRqneYkp57M1bx9AUhRyQdzjSxTHnFM8xG5C9KXt4jYuFTDnLitOrjkg 6tF/eqoZYyK8eYfHzGjvu7x329B+4b7JC6O3r80Xnp/wAkpsVMP+RmhijSmM6SB9 lnkx2yRXLTfQuNLg0WLgpssEq981f1soL6IQSpdlSgUR79bKorWyiYc5Dz3aIfix +7fJPkTsqL1yI5NSI/CstxmZOMG0gq2AXWwqQfq5tOjVa15j8Ko2WZt9gPiZhjRx qmifhIKVJaZD2KO28Rva5IG3+HdNbGpjYwwSrOWv3UFHl6Z9jG/iVU4qC8NSJKX2 jIqZcvqKdDfPkl3jhLQJg8YMxdX63w== =vo2x -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 05 00:57:08 2018 Received: (at 32770) by debbugs.gnu.org; 5 Oct 2018 04:57:08 +0000 Received: from localhost ([127.0.0.1]:37307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8IAm-0006CC-2F for submit@debbugs.gnu.org; Fri, 05 Oct 2018 00:57:08 -0400 Received: from mailchk-m06.uwaterloo.ca ([129.97.128.242]:37900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8IAk-0006Bg-1C for 32770@debbugs.gnu.org; Fri, 05 Oct 2018 00:57:06 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m06.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w954ur4i028626 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Oct 2018 00:56:55 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m06.uwaterloo.ca w954ur4i028626 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1538715416; bh=E0QPSfaNsxnJxMp1MIEJu2bRUjZxeyfldY5tiLKaMeQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P9kpHGXWx/ASwT8YnCK55vdIzsCIgPw3wBfYEhnzFj2ZuJCAYHXchfHcexdXNKK2h LLyAgwKAAxDdNZV4/pw+anVXNvf03A9AHQfGHEXxFXIYThnB4+swVmIHHtzB4HbtM0 ldcNU9IMfpzVazDs74HvUVhC7VtZ9q80Y1+ZkqNo= Date: Fri, 5 Oct 2018 00:56:52 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20181005005652.29b18650@mailservices.uwaterloo.ca> In-Reply-To: <87k1mym7kb.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-m01.uwaterloo.ca X-UUID: b2abf0e6-38a3-4c02-a40c-5ab7342d9433 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mailchk-m06.uwaterloo.ca [129.97.128.141]); Fri, 05 Oct 2018 00:56:56 -0400 (EDT) X-Miltered: at mailchk-m06 with ID 5BB6EF15.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m06 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Pierre, I've seen your later e-mail but I'd still like to answer some of your questions here. On Thu, 04 Oct 2018 10:37:08 +0200 Pierre Neidhardt wrote: > CC-ing Ludovic and Ricardo if they want to chime in. > > Thanks for the feedback, Andy, so invaluable as always. > > > I've been using a cffi consumer for a while now, and my approach for > > that package was to update references to library and header files > > with the full paths to their respective store items. > > Cool! Can you share this package? Or provide an example? > Can't wait to get this up and running! Sure, I'll append it. > > > Adding to *foreign-library-directories* at compile time may allow a > > package to compile, but I get the feeling that it may not have the > > desired effect when you try to load the package later on. > > Why? In my experience it works for a compiled Next executable. I assume that you created this executable by saving the lisp image? If that's the case, then it probably saved your *foreign-library-directories* with the values you added to it. What I'm considering is consumers of the libraries which should still work if you load them from a fresh lisp session with no configuration. I haven't looked into it yet but I don't think loading the library would work in that case. > > > I guess another approach we could take if replacement is undesirable > > would be to modify the cffi package to honour some environment > > variable for its default, and then add that variable to the search > > path for cffi. > > The cffi:*foreign-library-directories* approach got recommended to me > on the CFFI mailing list. I find it similar to what you want, a sort > of environment variable (a search-path global variable). I haven't > looked into Nix. > > > I personally tend to favour replacement, but others could chime in > > here as well since this problem isn't specific to lisp packaging. > > Could this be automated? What I like with > cffi:*foreign-library-directories* is that we could automatically push > > (string-append (assoc-ref inputs "foo") "/lib) > > to it so that packages only have to write something like > > #:cffi-packages (list ,cl-sqlite ,cl-foo...) > Based on what you've written here, I guess that you're thinking of adding to the *foreign-library-directories* for the consumers of cffi-based packages. I thought you meant to do it for those packages themselves. I think that might require some packages to propagate the c libraries that they depend on. In terms of automating things, it might be possible to do something with *foreign-library-directories* in the asd files that we generate. To be honest though, I think the fact that replacement can't be automated is more of a bug in the libraries' build tooling. What I'm thinking of is something like a configure script to set the library paths before building is done. I think there are some examples of guile projects which do just that. It might be something that we could discuss with the lisp and asdf community. -- Andy --- I think this package might include some dependencies that aren't upstreamed yet but it should provide the gist of it. (define sbcl-cl-freetype2 (let ((revision "1") (commit "5e4c9ff898f84c888f7e4bfb3402ee35abbf8ad9")) (package (name "sbcl-cl-freetype2") (version (string-append "1.1-" revision "." (string-take commit 7))) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/rpav/cl-freetype2.git") (commit commit))) (sha256 (base32 "0xmpswm65g5qq85n9nl5blqij2hw4nd4nc143nxhc77w49nf613d")) (file-name (string-append "cl-freetype2-next-" version "-checkout")))) (build-system asdf-build-system/sbcl) (inputs `(("freetype" ,freetype) ("sbcl-alexandria" ,sbcl-alexandria) ("sbcl-cffi" ,sbcl-cffi) ("sbcl-trivial-garbage" ,sbcl-trivial-garbage))) (native-inputs `(("tests:cl-fiveam" ,sbcl-fiveam) ("asdf:cl-cffi-grovel" ,sbcl-cffi-grovel))) (arguments '(#:phases (modify-phases %standard-phases (add-after 'unpack 'fix-paths (lambda* (#:key inputs #:allow-other-keys) (define freetype (assoc-ref inputs "freetype")) (substitute* "src/ffi/ft2-lib.lisp" (("libfreetype" all) (string-append freetype "/lib/" all))) (substitute* "src/ffi/grovel/grovel-freetype2.lisp" (("/usr/include") (string-append freetype "/include")))))))) (home-page "https://github.com/rpav/cl-freetype2") (synopsis "Common Lisp bindings for Freetype 2") (description "This is a general Freetype 2 wrapper for Common Lisp using CFFI. It's geared toward both using Freetype directly by providing a simplified API, as well as providing access to the underlying C structures and functions for use with other libraries which may also use Freetype.") (license license:bsd-3)))) From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 05 04:28:35 2018 Received: (at 32770) by debbugs.gnu.org; 5 Oct 2018 08:28:35 +0000 Received: from localhost ([127.0.0.1]:37381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8LTO-0003DF-V6 for submit@debbugs.gnu.org; Fri, 05 Oct 2018 04:28:35 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:59967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8LTM-0003D6-OP for 32770@debbugs.gnu.org; Fri, 05 Oct 2018 04:28:33 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 769BF1C0021; Fri, 5 Oct 2018 08:28:29 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> <20181005005652.29b18650@mailservices.uwaterloo.ca> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Andy Patterson Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <20181005005652.29b18650@mailservices.uwaterloo.ca> Date: Fri, 05 Oct 2018 10:28:29 +0200 Message-ID: <87k1mwyez6.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Sure, I'll append it. Great, thanks! > What > I'm considering is consumers of the libraries which should still work > if you load them from a fresh lisp session with no configuration. > > I haven't looked into it yet but I don't think loading the library > would work in that case. Are you saying that 'compile-bundle' would discard the global variable? I'm still rather new to Common Lisp so let me know if I get it right: =2D Compiling a bundle only compiles the target files, it discards the other global values. =2D Saving an image keeps everything, including global variables. > > #:cffi-packages (list ,cl-sqlite ,cl-foo...) > > > > Based on what you've written here, I guess that you're thinking of > adding to the *foreign-library-directories* for the consumers of > cffi-based packages. I thought you meant to do it for those packages > themselves. Sorry, you understood right at first, I wanted to write =2D-8<---------------cut here---------------start------------->8--- (define-public sbcl-cl-sqlite #:cffi-packages (list ,sqlite ,foo...) =2D-8<---------------cut here---------------end--------------->8--- > What I'm > thinking of is something like a configure script to set the library > paths before building is done. I think there are some examples of > guile projects which do just that. Hmm, I'm not sure I understand what you mean. Could you provide an example? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu3IK0ACgkQm9z0l6S7 zH/GrQgAo9dyPyJioSSbul38TrAevWJ7+VBk7MBb41zrfgdTCxtcEg/reBREEHdU N7lnP7qyq5Wa4wshRmE1HM2CzaZXxu1kO3px/1SbOMJebPFSc2xAWlQ4YRJFpcv1 4EbcFeTvZ3+xgpZeNLUuWeDfBY4mdrLW4Z04mrTukmOrgS4nr1cAr5i+M+z8zuXX iKmn1oAf/Xs+uhJ6Tnt3UebcQAvvmqrHDbDg/XUoOQcvCiZIsbdZrGaEfnSULCNK iT8plvTo9I0jW//zrdJr6fTJ7R3zaib01w9lnhi1luOsyYMDB2lBI63Vk+GVnCZw eYtuFUqEiwd99CU29ChSEaNfIayreA== =j2+S -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 05 08:00:26 2018 Received: (at 32770) by debbugs.gnu.org; 5 Oct 2018 12:00:26 +0000 Received: from localhost ([127.0.0.1]:37468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8OmQ-0004VJ-2b for submit@debbugs.gnu.org; Fri, 05 Oct 2018 08:00:26 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8OmO-0004VA-5s for 32770@debbugs.gnu.org; Fri, 05 Oct 2018 08:00:24 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1538739901; cv=none; d=zoho.com; s=zohoarc; b=SJkhAE2IQf6ZoYvVJsRlMxENT1zcdi8DS32nklOVdD0xuQc4ebMBV5VvtpDOjcBiqhJ1mk86DRzjcSD9Mdc711hRgpUWDzszesKKYt61TNtBC9fu2mkRiWE96a1B349l+WJgTNh9LuF9MO80q3Uv8O8Eyi2Zch/QJsQXk5xdnc8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1538739901; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=VvBBKbN41i1hpVf+cgKgsZe+lfDdihN0KcOZdKDqJSo=; b=PWnQsCOLJTG0GhUNP9xvODI5SC2/YYqXkaFj7ZagFid+4wr/fb2wT0j5FESaH8DaEjvXp1p1VRaD3Z2zP7Mqp5tOB9gDF+KSbktgmRomTlrc9duf6x5BRcuk0rRwBH8krGXUTaT23/FFhrnSfnPsvuuBzrOghAwSKGEMicrEs4A= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1538739901; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=739; bh=VvBBKbN41i1hpVf+cgKgsZe+lfDdihN0KcOZdKDqJSo=; b=UqnOwq33EbwQHt7eOZ+UESg7OmxhFGmJoc+sIt2hR8FCyBUy6f88ISRERPtCTG9j Tdpw5Ievqq7v5ZP8XiZkNQzzms8celtQPMFDTa3bsFmQQp6Lms3c7WHrNnn/xuDrvk0 E/1eYO3AfbFKjwhf5eQwqSh8b1xuK8laHIkQpABM= Received: from localhost (141.80.247.165 [141.80.247.165]) by mx.zohomail.com with SMTPS id 1538739899955837.6255983253403; Fri, 5 Oct 2018 04:44:59 -0700 (PDT) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> <20181005005652.29b18650@mailservices.uwaterloo.ca> <87k1mwyez6.fsf@ambrevar.xyz> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <87k1mwyez6.fsf@ambrevar.xyz> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 05 Oct 2018 13:44:56 +0200 Message-ID: <87efd4sjlz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org, Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pierre Neidhardt writes: >> What I'm >> thinking of is something like a configure script to set the library >> paths before building is done. I think there are some examples of >> guile projects which do just that. > > Hmm, I'm not sure I understand what you mean. Could you provide an examp= le? In =E2=80=9Cguile-sly=E2=80=9D, for example, the configure script accepts =E2=80=9C--with-libfreeimage-prefix=3D=E2=80=9D and =E2=80=9C--with-libgslc= blas-prefix=3D=E2=80=9D, which are then used to construct a full path to the libraries. In other cases where the build system does not provide a mechanism for this we need to patch the sources such as in =E2=80=9Cguile-dbi=E2=80=9D. --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 05 09:30:10 2018 Received: (at 32770) by debbugs.gnu.org; 5 Oct 2018 13:30:10 +0000 Received: from localhost ([127.0.0.1]:37488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8QBE-0006XY-VN for submit@debbugs.gnu.org; Fri, 05 Oct 2018 09:30:10 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:40737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8QBC-0006XM-7A for 32770@debbugs.gnu.org; Fri, 05 Oct 2018 09:30:06 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 0999920C87; Fri, 5 Oct 2018 13:30:03 +0000 (UTC) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> <20181005005652.29b18650@mailservices.uwaterloo.ca> <87k1mwyez6.fsf@ambrevar.xyz> <87efd4sjlz.fsf@elephly.net> User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: Ricardo Wurmus Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <87efd4sjlz.fsf@elephly.net> Date: Fri, 05 Oct 2018 15:30:03 +0200 Message-ID: <87h8i0y10k.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org, Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > In =E2=80=9Cguile-sly=E2=80=9D, for example, the configure script accepts > =E2=80=9C--with-libfreeimage-prefix=3D=E2=80=9D and =E2=80=9C--with-libgs= lcblas-prefix=3D=E2=80=9D, which > are then used to construct a full path to the libraries. In other cases > where the build system does not provide a mechanism for this we need to > patch the sources such as in =E2=80=9Cguile-dbi=E2=80=9D. But as far I know of, most Common Lisp packages don't provide a configure script. So can this apply here? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu3Z1sACgkQm9z0l6S7 zH8MMwf+MzmW4AeV3/7q2PNKUX/RRRDnNcs2SPWe7aGO7Py/owd13Frv1Gezhiru FKovgNM8OPInV/Tnm9t0K04hhVyEfh1Y8Q41JvyEW32ThCJJquSvp0Cse7o079Us +90vmntZ+ih8lm/l9BWIjdUd+pBn3R4PQLstdIpLMCVSI4bGQ5gny8A3GePNXT5Q xZIfHO/+mjcKfaboQQ6g3n31yiUSm+ZglN4Cvx+7O2a287JQLxZzXpchaLrWTy3X gcg3baSygoQvoOzQ2YLyPpoMMot3XhkJ7hB2/Jbhq8DH0eKzSPnTzL3XiuC8e8rJ JZUzH7xy3VQ4mXhCYiQqDFapOtH2Iw== =/+ZZ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 05 09:55:20 2018 Received: (at 32770) by debbugs.gnu.org; 5 Oct 2018 13:55:20 +0000 Received: from localhost ([127.0.0.1]:37984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8QZc-0007FQ-BK for submit@debbugs.gnu.org; Fri, 05 Oct 2018 09:55:20 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8QZb-0007FK-7Z for 32770@debbugs.gnu.org; Fri, 05 Oct 2018 09:55:19 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1538676517; cv=none; d=zoho.com; s=zohoarc; b=IVxXud7plovHEStBP7yRMo9s8WgvfkW+bFXI0IsJq9Kdn3+7Kbquww4Bs70uUbRBFTrLEN4LBd0oNcXjaC36+InsmM9gLkP700pCbsup3ugNM3p5Yts79VhlEOaYdD5ra1c3s8iWdO80+mUe0gvFyXCTuY0VhctOvkuYoSRDlw8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1538676517; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=eUJHQMjjqLYdyhQ+YnYd0iJhbjeD6Zw3ldK/UOe82lE=; b=fdlfHsK08dw7XOB+aLS8mX42kSCra8CZ/KaU2IOUkdmr4F/Nc6YRSgBnEfFnHqe+iH5OyuLJK4+PBd+p7V7h3ES37oFmboE+pSFW4o+dvA4Qe1FmnO4yxEOtwKfMtW82d9qzlCuaTRxe3USpwhuipwDcT4SMlZJbcylFvPj9jZU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1538676517; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type; l=1702; bh=eUJHQMjjqLYdyhQ+YnYd0iJhbjeD6Zw3ldK/UOe82lE=; b=Rld3hHGCHjJpm7S74vjlvkSWaAuBuLN+rgNSM6f8QkMz+R3dbGC6bK9p4c6crGQy JB5UeFtcGVXFgqDkSVgCTqWLfaUD0rRqXvw1OhOj3XgBVQX4Hmqc54qM2kRrt40aKp1 wdzWQ1D21vTcdFzSgp7QUPXpUMnvsc6GAFUw/6ds= Received: from localhost (port-92-200-21-19.dynamic.qsc.de [92.200.21.19]) by mx.zohomail.com with SMTPS id 1538676515915145.69597063505796; Thu, 4 Oct 2018 11:08:35 -0700 (PDT) References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library In-reply-to: <87k1mym7kb.fsf@ambrevar.xyz> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 04 Oct 2018 20:08:30 +0200 Message-ID: <87zhvtshy9.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, >> Adding to *foreign-library-directories* at compile time may allow a >> package to compile, but I get the feeling that it may not have the >> desired effect when you try to load the package later on. > > Why? In my experience it works for a compiled Next executable. > >> I guess another approach we could take if replacement is undesirable >> would be to modify the cffi package to honour some environment variable >> for its default, and then add that variable to the search path for >> cffi. > > The cffi:*foreign-library-directories* approach got recommended to me on > the CFFI mailing list. I find it similar to what you want, a sort of > environment variable (a search-path global variable). I haven't looked > into Nix. > >> I personally tend to favour replacement, but others could chime in here >> as well since this problem isn't specific to lisp packaging. We usually replace plain references to libraries with exact store paths. > Could this be automated? What I like with cffi:*foreign-library-directories* is > that we could automatically push > > (string-append (assoc-ref inputs "foo") "/lib) > > to it so that packages only have to write something like > > #:cffi-packages (list ,cl-sqlite ,cl-foo...) This sounds useful, but to me it feels like wrapping executables in LD_LIBRARY_PATH, which we try hard to avoid. When using cffi:*foreign-library-directories* how would we deal with cases where we have more than one package specifying cffi-packages? Would this option need to be considered for every package in the package closure? Would it need to be handled by a profile hook in case these packages are installed? -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 10 01:54:47 2018 Received: (at 32770) by debbugs.gnu.org; 10 Oct 2018 05:54:47 +0000 Received: from localhost ([127.0.0.1]:42769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA7SJ-0004zw-Hx for submit@debbugs.gnu.org; Wed, 10 Oct 2018 01:54:47 -0400 Received: from mailchk-m01.uwaterloo.ca ([129.97.128.238]:59430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA7SI-0004zj-3A for 32770@debbugs.gnu.org; Wed, 10 Oct 2018 01:54:46 -0400 Received: from mailservices.uwaterloo.ca (CPEac202e023313-CMac202e023310.cpe.net.cable.rogers.com [99.254.144.176]) (authenticated bits=0) by mailchk-m01.uwaterloo.ca (8.14.7/8.14.7) with ESMTP id w9A5sZgb024675 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 10 Oct 2018 01:54:36 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mailchk-m01.uwaterloo.ca w9A5sZgb024675 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwaterloo.ca; s=default; t=1539150878; bh=ejSCZD4C7J8eG/Dtj9kODcCfeYjmVBz2wruRo1fj2xY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lUxXZsx4nHmZzqWD71G2/H094EQKdNwNWFVAo0YQl3TPRP/k1U+39hUAsixDvqQre fpcP5sxTAbi2eVRDqVCWasTAk9Ws7uEyufmM3lMgZL9He+l00bCztW9u0UdlEGG8is v4R4l5XTqYGzMkBz5uaoA1IWtF8l+rQhBhq8frYQ= Date: Wed, 10 Oct 2018 01:54:35 -0400 From: Andy Patterson To: Pierre Neidhardt Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library Message-ID: <20181010015435.302096d9@mailservices.uwaterloo.ca> In-Reply-To: <87h8i0y10k.fsf@ambrevar.xyz> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> <20181005005652.29b18650@mailservices.uwaterloo.ca> <87k1mwyez6.fsf@ambrevar.xyz> <87efd4sjlz.fsf@elephly.net> <87h8i0y10k.fsf@ambrevar.xyz> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-m01.uwaterloo.ca X-UUID: dfdccc34-33ba-49fa-af5c-d2f2fc5e8efa X-Miltered: at mailchk-m01 with ID 5BBD941B.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.100.1 at mailchk-m01 X-Virus-Status: Clean X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32770 Cc: Ricardo Wurmus , 32770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Pierre, On Fri, 05 Oct 2018 15:30:03 +0200 Pierre Neidhardt wrote: > > In =E2=80=9Cguile-sly=E2=80=9D, for example, the configure script accep= ts > > =E2=80=9C--with-libfreeimage-prefix=3D=E2=80=9D and =E2=80=9C--with-lib= gslcblas-prefix=3D=E2=80=9D, > > which are then used to construct a full path to the libraries. In > > other cases where the build system does not provide a mechanism for > > this we need to patch the sources such as in =E2=80=9Cguile-dbi=E2=80= =9D. =20 >=20 > But as far I know of, most Common Lisp packages don't provide a > configure script. So can this apply here? >=20 I was suggesting that lisp packages should adopt some configuration mechanism, either through scripts or by something that asdf could take care of. It's something that I think we could discuss with the upstream communities once we have a good grasp on our use case. -- Andy From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 07:52:29 2019 Received: (at control) by debbugs.gnu.org; 6 Oct 2019 11:52:29 +0000 Received: from localhost ([127.0.0.1]:45689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH55R-0005aG-CG for submit@debbugs.gnu.org; Sun, 06 Oct 2019 07:52:29 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:53055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH55P-0005a6-Rv for control@debbugs.gnu.org; Sun, 06 Oct 2019 07:52:28 -0400 X-Originating-IP: 92.169.151.76 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EA68460006 for ; Sun, 6 Oct 2019 11:52:25 +0000 (UTC) From: Pierre Neidhardt To: control@debbugs.gnu.org Subject: control message for bug #32770 Date: Sun, 06 Oct 2019 13:52:25 +0200 Message-ID: <87v9t2gkg6.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 32770 quit Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [217.70.183.195 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.195 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.2 (-) close 32770 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 07:53:15 2019 Received: (at 32770) by debbugs.gnu.org; 6 Oct 2019 11:53:15 +0000 Received: from localhost ([127.0.0.1]:45695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH56A-0005bu-Kd for submit@debbugs.gnu.org; Sun, 06 Oct 2019 07:53:14 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:60391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH569-0005bl-A7 for 32770@debbugs.gnu.org; Sun, 06 Oct 2019 07:53:13 -0400 X-Originating-IP: 92.169.151.76 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id BEF7660009; Sun, 6 Oct 2019 11:53:11 +0000 (UTC) From: Pierre Neidhardt To: Ricardo Wurmus Subject: Re: bug#32770: Packaging SLIME/SWANK as Common Lisp library References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> <20181002045531.78223c72@mailservices.uwaterloo.ca> <878t3gwsrm.fsf@ambrevar.xyz> <20181003012224.5baff3ac@mailservices.uwaterloo.ca> <8736tmj2vj.fsf@ambrevar.xyz> <20181004010308.7825505f@mailservices.uwaterloo.ca> <87k1mym7kb.fsf@ambrevar.xyz> <87zhvtshy9.fsf@elephly.net> <87a7ntmoql.fsf@ambrevar.xyz> Date: Sun, 06 Oct 2019 13:53:10 +0200 In-Reply-To: <87a7ntmoql.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 04 Oct 2018 22:38:26 +0200") Message-ID: <87r23qgkex.fsf@ambrevar.xyz> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 32770 Cc: 32770@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Fixed with 2026204a13515aaa9b7814f9a6f0a60b65493bd1. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2Z1aYACgkQm9z0l6S7 zH9LzQf+NA1tpxldl346yXOvUF1fiPrQ3f9gIhky5cfgBL5mOhoIRQ6MXdXoBqNL flCfdgNE3qeJg9+ySqPvqFJOUq8NaXeyKGtlrZUik8Wk2j6xds5I04zrmyWyYj50 JMj97M7HXbOqYLA8ncVmdPSngXdLiwvkMja4ATWa76NX9TaAz38HsgD8jICw9Xqd gGFKevCEvUZ5aWJStfWnvqIV9T8D7layUl855fj86/hnQ+4kBLYnf+9qbZV3YG1c wCqsNiWw3fVZuJ7pnY5hQ6lR66JNWnNAn9Hrfi1pYuEZSt3Hs+idS+Ed85aPHZmH Gk05R8YZp66N9ZRF4f5maf2tCeabag== =POCH -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Aug 17 04:17:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 03 Nov 2019 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator