From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: ison <ison@airmail.cc>
Cc: help-guix@gnu.org
Subject: Re: install --with-version?
Date: Sat, 4 May 2019 20:18:53 +0200 [thread overview]
Message-ID: <20190504181853.zvcjtu5xpdtuxgjo@pelzflorian.localdomain> (raw)
In-Reply-To: <20190503005618.5cpf3nskatqaw6rq@cf0>
On Thu, May 02, 2019 at 06:56:18PM -0600, ison wrote:
> There is a --with-source option. So you could actually specify the download location to the 2.10 version
> https://www.gnu.org/software/guix/manual/en/html_node/Package-Transformation-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=biber=v2.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=biber=e00ee55ced863d3c2938fe03c2da2d629842b7f1 biber
updating checkout of 'https://github.com/plk/biber/'...
retrieved commit e00ee55ced863d3c2938fe03c2da2d629842b7f1
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
[…]
This fails to build because tests fail, but looking at
`guix build -n …` I believe it is basically the right command. Thank
you!
> Also have you tried building it by specifying "biber@2.10" instead of just "biber"?
>
florian@florianmacbook ~$ guix environment --ad-hoc biber@2.10
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=v2.10 and for --with-version=2.10. (As for biber, I
gave up installing it because tests fail.)
Regards,
Florian
prev parent reply other threads:[~2019-05-04 18:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-02 15:44 install --with-version? pelzflorian (Florian Pelz)
2019-05-03 0:56 ` ison
2019-05-04 18:18 ` pelzflorian (Florian Pelz) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190504181853.zvcjtu5xpdtuxgjo@pelzflorian.localdomain \
--to=pelzflorian@pelzflorian.de \
--cc=help-guix@gnu.org \
--cc=ison@airmail.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.