GNU bug report logs - #34838
[PATCH 0/6] Add '--with-git-url' and make sure it composes well

Previous Next

Package: guix-patches;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Wed, 13 Mar 2019 09:59:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#34838: closed ([PATCH 0/6] Add '--with-git-url' and make sure
 it composes well)
Date: Sun, 17 Mar 2019 21:57:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 17 Mar 2019 22:56:27 +0100
with message-id <87a7htxj04.fsf <at> gnu.org>
and subject line Re: [bug#34838] [PATCH 0/6] Add '--with-git-url' and make sure it composes well
has caused the debbugs.gnu.org bug report #34838,
regarding [PATCH 0/6] Add '--with-git-url' and make sure it composes well
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
34838: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34838
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: [PATCH 0/6] Add '--with-git-url' and make sure it composes well
Date: Wed, 13 Mar 2019 10:57:55 +0100
Hello Guix!

This patch series allows for things like this:

  guix build python-numpy \
    --with-git-url=python=https://github.com/python/cpython \
    --with-commit=python=86900a49000c4a96ad1dc34e49d8af4245b08843

Initially I just wanted to add a ‘--with-git-url’ transformation option,
but then allowing it to be combined with ‘--with-branch’, for example,
turned out to be more involved.

To achieve that, this patch series changes transformation options so
they match packages by spec (“guile”, “guile <at> 2”, etc.) instead of
matching them by identity as was the case before (specifically, we’d
get the identity of the package to be replaced with ‘specification->package’.)

That leads to a slight semantic change: transformations now apply
to any package that matches the given spec, whereas before they would
only apply to the public package that matches the spec.  In practice,
it probably doesn’t make any difference since there are rarely (if ever)
several distinct packages with the same name.

Feedback welcome!

Ludo’.

Ludovic Courtès (6):
  guix build: Add '--with-git-url'.
  packages: Add 'package-input-rewriting/spec'.
  guix build: Factorize 'package-git-url'.
  guix build: Transformation options match packages by spec.
  guix build: '--with-commit' makes recursive checkouts.
  guix build: '--with-branch' strips slashes from the version string.

 doc/guix.texi           |  61 ++++++++++++++---
 guix/packages.scm       |  38 +++++++++++
 guix/scripts/build.scm  | 146 +++++++++++++++++++++++++++-------------
 tests/packages.scm      |  51 ++++++++++++++
 tests/scripts-build.scm | 109 ++++++++++++++++++++++++++++--
 5 files changed, 343 insertions(+), 62 deletions(-)

-- 
2.21.0



[Message part 3 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: 34838-done <at> debbugs.gnu.org
Subject: Re: [bug#34838] [PATCH 0/6] Add '--with-git-url' and make sure it
 composes well
Date: Sun, 17 Mar 2019 22:56:27 +0100
Ludovic Courtès <ludo <at> gnu.org> skribis:

> This patch series allows for things like this:
>
>   guix build python-numpy \
>     --with-git-url=python=https://github.com/python/cpython \
>     --with-commit=python=86900a49000c4a96ad1dc34e49d8af4245b08843

Merged!

  d831b19079 guix build: '--with-branch' strips slashes from the version string.
  845c44012c guix build: '--with-commit' makes recursive checkouts.
  14328b81a2 guix build: Transformation options match packages by spec.
  0c0ff42a24 guix build: Factorize 'package-git-url'.
  f258d88628 packages: Add 'package-input-rewriting/spec'.
  880916ac52 guix build: Add '--with-git-url'.

Ludo’.


This bug report was last modified 6 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.