From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Veber Subject: Re: List available versions of package. Date: Sat, 22 Jun 2019 13:26:18 +0200 Message-ID: References: <87ftohqg9l.fsf@nckx> 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]:50824) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heeAF-0007SR-LX for help-guix@gnu.org; Sat, 22 Jun 2019 07:26:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heeAD-0006z9-86 for help-guix@gnu.org; Sat, 22 Jun 2019 07:26:35 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:51473) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1heeAC-0006tn-TD for help-guix@gnu.org; Sat, 22 Jun 2019 07:26:33 -0400 Received: by mail-wm1-x334.google.com with SMTP id 207so8514684wma.1 for ; Sat, 22 Jun 2019 04:26:30 -0700 (PDT) In-Reply-To: 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: Tobias Geerinckx-Rice Cc: help-guix@gnu.org Hello everyone, FWIW, I tried the exact example given in the manual [0] and it failed, although for a different reason. It does a lot of work until it reaches an exception (the build of profile.drv fails). Could someone confirm this should work? Also, is it expected that packages from guix commits dating from a few years ago will still work in this setting? Thanks! ph. [0] https://www.gnu.org/software/guix/manual/en/guix.html#Inferiors Le mar. 11 juin 2019 =C3=A0 09:43, Philippe Veber a =C3=A9crit : > Hello Tobias, and thanks a lot for your answer! > > So as I understand it, the distribution at a given moment contains only a > few versions (often one), and not all that have been specified at some > point. For instance, with your command I obtain: > > $ guix package --list-available=3D^bowtie$ > bowtie 2.3.4.3 out gnu/packages/bioinformatics.scm:1505:2 > > while I could check on guix git log that there has been more versions of > this bowtie program : > > $ git log packages/bioinformatics.scm | grep "gnu: bowtie" > gnu: bowtie: Update to 2.3.4.3. > gnu: bowtie: Use 'modify-phases'. > gnu: bowtie: Update to 2.3.2. > gnu: bowtie: Update to 2.2.9. > gnu: bowtie: Update to 2.2.6. > > My use case is to be able to run old versions of software (like you've > never heard that before, right ;o)?) so is it correct to think that I hav= e > to write a manifest file and then use a : > > guix environment --manifest bowtie_2.2.9.scm -- bowtie2 ... > > ? > If so, I'm not absolutely clear on the contents of the manifest file. I > tried to get inspiration from the section on "Inferiors" [0], and wrote > this: > > %% bowtie_2.2.9.scm %%%%%%%%%%%%% > (use-modules (guix inferior) (guix channels) > (srfi srfi-1)) ;for 'first' > > (define channels > ;; This is the old revision from which we want to > ;; extract guile-json. > (list (channel > (name 'guix) > (url "https://git.savannah.gnu.org/git/guix.git") > (commit > "2642231b39d2f642364e96222690afce7c986bb6")))) > > (define inferior > ;; An inferior representing the above revision. > (inferior-for-channels channels)) > > (packages->manifest > (list (first (lookup-inferior-packages inferior "bowtie")))) > %%%%%%%%%%%%%%% > > but got the following result: > > $ guix environment --manifest=3Dbowtie_2.2.9.scm -- bowtie2 --version > Mise =C3=A0 jour du canal =C2=AB guix =C2=BB depuis le d=C3=A9p=C3=B4t Gi= t =C2=AB > https://git.savannah.gnu.org/git/guix.git =C2=BB... > ice-9/eval.scm:223:20: In procedure proc: > erreur : %guix-register-program : variable non li=C3=A9e > conseil : Auriez-vous oubli=C3=A9 un `use-modules' ? > > Sorry for the french translation, but I assume you got that a module is > missing (BTW, that might mean that the example given in the manual sectio= n > for inferiors is missing it too). So for now I'm stuck, any help will be > much appreciated! > > Cheers, > Philippe. > > > > > > > [0] https://www.gnu.org/software/guix/manual/en/guix.html#Inferiors > > > > Le lun. 10 juin 2019 =C3=A0 23:31, Tobias Geerinckx-Rice a > =C3=A9crit : > >> Philippe, >> >> Philippe Veber wrote: >> > I'm getting started with guix, and so far it's been just fine. >> >> Welcome! >> >> > I would like to see all available versions for a given package. >> > Is there a command that would help me with that? >> >> There is: >> >> $ guix package --list-available=3D^glibc$ >> glibc 2.25 out,debug,static >> gnu/packages/base.scm:921:2 >> glibc 2.22 out,debug,static >> gnu/packages/base.scm:980:2 >> =E2=80=A6 >> >> For easier interactive use, you can use the short option =E2=80=98-A=E2= =80=99. >> >> Note that this option takes a regular expression as argument. >> That makes it powerful, but means you'll have to enclose the name >> in =E2=80=98^=E2=80=A6$=E2=80=99 if you want to match one specific packa= ge. >> >> Kind regards, >> >> T G-R >> >