[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43578] [PATCH 0/4] Rewriting implicit inputs with 'package-input-re
[bug#43578] [PATCH 0/4] Rewriting implicit inputs with 'package-input-rewriting' & co.
Wed, 23 Sep 2020 18:12:53 +0200
This patch set aims to hit two bird hunters with one stone:
initially my goal was to fix <https://issues.guix.gnu.org/42156>,
which has become a hindrance to the use of package transformation
options, but it also ends up addressing the fact that those
options did not, until now, rewrite implicit dependencies.
Concretely, the following commands had no effect thus far:
guix build python-itsdangerous --with-input=python=python2
guix build hello --with-input=gcc=gcc-toolchain@10
In both cases, this is because the input we want to change is
an implicit input. This patch set fixes that, and it fixes
<https://issues.guix.gnu.org/42156> as a side effect.
This opens new possibilities. ‘--with-input=python=python2’ is one
of them, but ‘--with-input=gcc=gcc-toolchain@10’ is not (it fails
to build for obscure reasons that I’ll fix in ‘core-updates’, and
it rebuilds the world anyway, which is not practical). Another
thing that I find interesting is:
$ guix build hello --firstname.lastname@example.org
It “relinks” the package against a different libc, assuming the
ABI is compatible (this particular example downgrades glibc, probably
less useful in the real world than upgrading; it works for ‘hello’
but not for ‘inkscape’ due to ABI differences.)
Ludovic Courtès (4):
packages: 'package-mapping' can recurse on implicit inputs.
packages: 'package-input-rewriting/spec' can rewrite implicit
packages: 'package-mapping' correctly recurses into 'replacement'.
packages: 'package-input-rewriting' has a #:deep? parameter.
doc/guix.texi | 28 ++++----
gnu/packages/guile.scm | 6 +-
guix/packages.scm | 153 ++++++++++++++++++++++++++++------------
tests/guix-build.sh | 11 +++
tests/packages.scm | 149 ++++++++++++++++++++++++++++++++++++--
tests/scripts-build.scm | 12 +++-
6 files changed, 291 insertions(+), 68 deletions(-)
- [bug#43578] [PATCH 0/4] Rewriting implicit inputs with 'package-input-rewriting' & co.,
Ludovic Courtès <=