From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: install --with-version? Date: Sat, 4 May 2019 20:18:53 +0200 Message-ID: <20190504181853.zvcjtu5xpdtuxgjo@pelzflorian.localdomain> References: <20190502154430.lesr4xoe7xjhc5bg@pelzflorian.localdomain> <20190503005618.5cpf3nskatqaw6rq@cf0> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMzFZ-00005Q-JE for help-guix@gnu.org; Sat, 04 May 2019 14:19:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMzFY-0000m8-HZ for help-guix@gnu.org; Sat, 04 May 2019 14:19:05 -0400 Received: from pelzflorian.de ([5.45.111.108]:54926 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMzFY-0000kj-2A for help-guix@gnu.org; Sat, 04 May 2019 14:19:04 -0400 Content-Disposition: inline In-Reply-To: <20190503005618.5cpf3nskatqaw6rq@cf0> 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: ison Cc: help-guix@gnu.org On Thu, May 02, 2019 at 06:56:18PM -0600, ison wrote: > There is a --with-source option. So you could actually specify the down= load location to the 2.10 version > https://www.gnu.org/software/guix/manual/en/html_node/Package-Transform= ation-Options.html > I use --with-commit instead of --with-source because biber is defined using a git-reference like (define-public biber (package (name "biber") (version "2.12") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/plk/biber/") (commit (string-append "v" version)))) (file-name (git-file-name name version)) florian@florianmacbook ~$ guix build --with-commit=3Dbiber=3Dv2.10 biber updating checkout of 'https://github.com/plk/biber/'... guix build: error: cannot fetch commit v2.10 from https://github.com/plk/= biber/: unable to parse OID - contains invalid characters I looked up the commit ID on GitHub. florian@florianmacbook ~$ guix build --with-commit=3Dbiber=3De00ee55ced86= 3d3c2938fe03c2da2d629842b7f1 biber updating checkout of 'https://github.com/plk/biber/'... retrieved commit e00ee55ced863d3c2938fe03c2da2d629842b7f1 substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% [=E2=80=A6] This fails to build because tests fail, but looking at `guix build -n =E2=80=A6` I believe it is basically the right command. T= hank you! > Also have you tried building it by specifying "biber@2.10" instead of j= ust "biber"? >=20 florian@florianmacbook ~$ guix environment --ad-hoc biber@2.10=20 guix environment: error: biber: package not found for version 2.10 I believe all packages where the @2.10 notation works have multiple package definitions, one for each version. Thank you. --with-commit helps, but it is ugly. I had hoped there were better options. I will file a wishlist bug for --with-commit=3Dv2.10 and for --with-version=3D2.10. (As for biber, I gave up installing it because tests fail.) Regards, Florian