From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#32770: Packaging SLIME/SWANK as Common Lisp library Date: Thu, 04 Oct 2018 10:37:08 +0200 Message-ID: <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> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7z94-0008Tl-TN for bug-guix@gnu.org; Thu, 04 Oct 2018 04:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7z90-0007nG-K9 for bug-guix@gnu.org; Thu, 04 Oct 2018 04:38:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7z90-0007mq-Cw for bug-guix@gnu.org; Thu, 04 Oct 2018 04:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7z90-0000cE-78 for bug-guix@gnu.org; Thu, 04 Oct 2018 04:38:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20181004010308.7825505f@mailservices.uwaterloo.ca> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Andy Patterson Cc: 32770@debbugs.gnu.org --=-=-= 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----- --=-=-=--