all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim@flashner.co.il>
Cc: guix-devel@gnu.org
Subject: Re: Package transformations
Date: Mon, 01 Feb 2016 23:35:46 +0100	[thread overview]
Message-ID: <87zivkm531.fsf@gnu.org> (raw)
In-Reply-To: <20160201150610.3786621e@debian-netbook> (Efraim Flashner's message of "Mon, 1 Feb 2016 15:06:10 +0200")

Efraim Flashner <efraim@flashner.co.il> skribis:

> I looked over the commit but not deeply enough yet, would it be possible to
> use some of the logic in this to fix the package-with-python2 issue?

Nope!

> what about extending guix package so you could do `guix package -i $(guix
> build foo --with-input=bar=baz) --named=foo-baz`, an on-the-fly custom
> package?

It’s always been possible to do:

  guix package -i $(guix build --whatever foobar)

but it’s a bit lossy in that ‘guix package’ has to guess the name,
version, and outputs being used, and it cannot know metadata such as the
package’s search paths.

With yesterday’s change, one can directly run:

  guix package --with-input=foo=bar -i foobar

> In terms of figuring out how to make it more lasting, it would need to be
> expanded if someone wanted to add/remove an input in their GUIX_PACKAGE_PATH
> and have it propagate through the packages without having to make a custom
> version of each one. Or to use as a substitute like when libpng had its CVE.

To preserve these transformations across upgrades, we’d have to write
them in profile manifests.  This introduces versioning complications
(what if the transformation mentioned in the manifest no longer exists
when you upgrade, or what if its on-disk format has changed, etc.)

Honestly, I’m not sure it’s a good idea to go this far.  I’d rather have
people write package variants they care about in a Scheme file.

Thoughts?

Ludo’.

  reply	other threads:[~2016-02-01 22:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01  9:18 Package transformations Ludovic Courtès
2016-02-01 13:06 ` Efraim Flashner
2016-02-01 22:35   ` Ludovic Courtès [this message]
2016-02-13  1:25 ` Christopher Allan Webber
2016-02-18 13:27 ` Ricardo Wurmus
2016-02-21 21:35   ` Ludovic Courtès

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=87zivkm531.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /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.