unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 43614@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#43614] [PATCH 0/2] Record and replay package transformation options
Date: Fri, 25 Sep 2020 17:46:12 +0200	[thread overview]
Message-ID: <20200925154612.28330-1-ludo@gnu.org> (raw)

Hello Guix!

This patch set is to record in a profile’s ‘manifest’ the package
transformation options that were in effect when it was created and
to replay them when upgrading.

Let’s say you do:

  guix install emacs-next --with-branch=emacs-next=master

When you later run:

  guix upgrade

the ‘--with-branch’ option will be in effect, meaning that it’ll
again pull the latest Emacs and build it.

It’s a contrived example because it relies on external resources;
preserving ‘--with-input’ & co. probably makes more sense.

The kind of options I have in mind that are particularly important
to preserve are options that parameterize packages and the
hypothetical option that wraps an installed package into a “POLA
wrapper” as was discussed recently (the wrapper spawns the actual
program in a container).

Users of ‘guix package -m’ are unaffected by all this.  After all,
they can already program whatever transformations they want in
their manifest (though it would be nice to make those
transformations more readily usable at the Scheme level!).

Thoughts?

Ludo’.

Ludovic Courtès (2):
  guix build: Record package transformations in manifest entries.
  guix package: Re-apply package transformation when upgrading.

 doc/guix.texi                 | 27 ++++++++++++
 guix/scripts/build.scm        | 80 +++++++++++++++++++++++++++--------
 guix/scripts/pack.scm         | 29 +++++++------
 guix/scripts/package.scm      | 33 ++++++++++-----
 tests/guix-package-aliases.sh |  6 +++
 tests/guix-package.sh         | 17 +++++++-
 tests/packages.scm            | 23 ++++++++++
 7 files changed, 174 insertions(+), 41 deletions(-)

-- 
2.28.0





             reply	other threads:[~2020-09-25 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25 15:46 Ludovic Courtès [this message]
2020-09-25 15:50 ` [bug#43614] [PATCH 1/2] guix build: Record package transformations in manifest entries Ludovic Courtès
2020-09-25 15:51   ` [bug#43614] [PATCH 2/2] guix package: Re-apply package transformation when upgrading Ludovic Courtès
2020-10-02 21:30 ` bug#43614: [PATCH 0/2] Record and replay package transformation options 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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200925154612.28330-1-ludo@gnu.org \
    --to=ludo@gnu.org \
    --cc=43614@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).