From mboxrd@z Thu Jan 1 00:00:00 1970 From: John J Foerch Subject: Re: chicken scheme Date: Sun, 17 Jul 2016 10:22:58 -0400 Message-ID: <87twfo8htp.fsf@hecubus.retroj.net> References: <871t3ecx0f.fsf@hecubus.retroj.net> <87shvumkp0.fsf@gnu.org> <87vb0qbbeu.fsf@hecubus.retroj.net> <87ziq1lmyn.fsf@gnu.org> <87h9c9blso.fsf@hecubus.retroj.net> <874m89kufq.fsf@gnu.org> <8737ntaz1c.fsf@hecubus.retroj.net> <87y45kibmz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOmyV-0005gk-Oi for help-guix@gnu.org; Sun, 17 Jul 2016 10:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOmyR-0002Zd-I1 for help-guix@gnu.org; Sun, 17 Jul 2016 10:23:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:37427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOmyR-0002ZM-Ao for help-guix@gnu.org; Sun, 17 Jul 2016 10:23:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bOmyO-0008Ho-OO for help-guix@gnu.org; Sun, 17 Jul 2016 16:23:13 +0200 Received: from 152.160.144.141 ([152.160.144.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 16:23:12 +0200 Received: from jjfoerch by 152.160.144.141 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 16:23:12 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org ludo@gnu.org (Ludovic Courtès) writes: > John J Foerch skribis: > >> ludo@gnu.org (Ludovic Courtès) writes: >> >>> John J Foerch skribis: >>> >>>> I have just learned about 'guix import', and have the thought that a >>>> package importer would be the better way to go. Eventually I would like >>>> to package software that I've written in CHICKEN for GuixSD, and only a >>>> package importer would make that feasible. >>> >>> "Thompson, David" skribis: >>> >>>> On Fri, Jul 1, 2016 at 8:11 AM, John J Foerch wrote: >>>> >>>>> First a question about /var/lib, and please excuse the newbie question. >>>>> If chicken extensions were installed to /var/lib, wouldn't that go >>>>> against the spirit of guix of keeping every program isolated? Isn't >>>>> /var/lib global state? >>>> >>>> Yes, but this program is not Guix. It's a completely separate package >>>> manager, and it should work as intended. >>> >>> Agreed. So I think there are two issues at hand: >>> >>> 1. How to arrange our ‘chicken’ package so that ‘chicken-install’ >>> works as intended. >>> >>> 2. How to import Eggs so that they can be first-class Guix packages. >>> >>> #2, which means writing an importer, is definitely the most profitable >>> approach: It’s best as a user to have all the packages managed by the >>> same tool, especially if that provides isolation, transactional upgrades >>> and rollbacks, etc. >>> >>> #1 is useful for CHICKEN users who are used to ‘chicken-install’ >>> (similarly pip, npm, etc. are supposed to work.) It should work in the >>> same way as on other distros. I’ve never used it though, so I can’t >>> give precise advice. >>> >> >> It installs all extensions to a single system-wide directory, with one >> path component that gives the binary version. On my debian machine, >> that is /var/lib/chicken/7 (for chicken 4.10.0). In that way, it is >> simpler than something like npm. > > Right. So to address #1, we should make sure it uses /var/lib, as > discussed earlier. > I'm finally getting back to this. One point about chicken is that it does not support multiple extension directories, only one. They go into /chicken/. This introduces a difficulty because if VARDIR is /var/lib, then the default extensions (that come with chicken) get installed to a global directory. The chicken-install system will then work, but in the future when we add a package importer, imported packages would also go into this global directory. If on the other hand, VARDIR is (string-append out "/var/lib") the default extensions and imported extensions go to the right place, but manual chicken-install cannot write to that location. Any further thoughts on this, given that information? -- John Foerch