From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Subject: Re: ripit/perl: use perl_cddb_get package? Date: Wed, 18 Dec 2019 15:22:38 +0100 Message-ID: <01A1A3A6-922D-4C24-9127-A3A0B63AA2A7@posteo.de> References: <4be31ebcc8f3ec6a513d7126f4dbbee1@posteo.de> <20191109091152.GA18779@prometheus.u-strasbg.fr> <23036934e4ef38c0592d485903f82838@posteo.de> <20191109112458.GA31368@prometheus.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55995) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihaDv-0007Q7-Hs for help-guix@gnu.org; Wed, 18 Dec 2019 09:22:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihaDt-00062h-TL for help-guix@gnu.org; Wed, 18 Dec 2019 09:22:47 -0500 Received: from mout02.posteo.de ([185.67.36.66]:35387) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihaDt-0005dt-7B for help-guix@gnu.org; Wed, 18 Dec 2019 09:22:45 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5C0FD2400FD for ; Wed, 18 Dec 2019 15:22:41 +0100 (CET) In-Reply-To: <20191109112458.GA31368@prometheus.u-strasbg.fr> 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: Marc Chantreux Cc: help-guix@gnu.org Thank you for your time, but I am afraid I have wasted it=2E The perl module dirs are set in a env variable in bash's files, and for th= at reason my fish couldn't find them=2E (Also the syntax isn't compatible s= o I you to copy them out, which is quite annoying)=2E So in a way it's fixed now ^^" Thanks anyway! Am 9=2E November 2019 12:24:58 MEZ schrieb Marc Chantreux : >> This seems to be the problem, it returned: >> $ perl -E 'map say, grep -d, @INC' >> $ find /gnu/store/*perl* -iname "CDDB_get=2Epm" >> /gnu/store/7n8rdqbx25801ypj38bywacbicmsc2ns-perl-cddb-get-2=2E28/lib/pe= rl5/site_perl/5=2E28=2E0/CDDB_get=2Epm >> /gnu/store/mg8qgzi0v2his2xld1zkb8x7p5lf3v6m-perl-cddb-get-2=2E28/lib/pe= rl5/site_perl/5=2E30=2E0/CDDB_get=2Epm > >> So it seems like the problem is that this perl script package can't see= the >> installed perl modules? > >yes: every module have its own store so perl don't see them >ok=2E i don't know enough of guix to help on it but from the perl >perspective, a module is available is in @INC which contains: > >* a built-in list of standard directories >* the list of directories provided by the $PERL5LIB env variable > (the awesome local::lib module is very helpful to manage $PERL* > variables: don't miss it) >* the list of directories hardcoded in the script using `use lib` > instruction > >if guix wants to compete with (or encapsulate) cpan tooling, it needs to >have a way to embrace the 2 most common strategies to install the >things > >* installing everything in a directory dedicated for the software > (this clear separation with the base system and other programs > makes it easy to install, remove, maintain without breaking anything > on the host=2E=2E=2E like containers does) > >* installing as much as possible in the standard directories using > system packages=2E > >it would be very good to reach the point when the combo >perlbrew+cpanm+local::lib (or carton) could be replaced by a guix >counterpart=2E this is probably the momentum i'm waiting for to replace >my perl toolchain with guix=2E > >for the projects providing cpanfiles, a strategy could be to provide >both a perl version and the installed modules from the perl cpanm >commands in the same store? > >also: having a plan9 experience, i would like to arg that the better way >to do that is having a single dir to bind everything we need in it=2E >that's basically what docker does poorly but i have no experience in >handmade linux namespaces > >> Any input is appreciated=2E > >i can help as "someone who knows the perl ecosystem practices" but >i don't know enough about guix=2E > >regards >marc > >