guix/guix/build-system
Ludovic Courtès df46bef48e
gexp: Leave grafting as is when lowering allowed/disallowed references.
Fixes <https://issues.guix.gnu.org/50676>.
Reported by Mathieu Othacehe <othacehe@gnu.org>.

Commit a779363b6a was partially incorrect:
references passed to #:allowed-references or #:references-graphs *can*
be lowered as references to grafted elements.  This is for example the
case when doing:

  (computed-file "partition.img" exp
                  #:options `(#:references-graphs ,inputs))

Here INPUTS must be lowered as a reference to suitably grafted elements.
Failing to do that, the reference graph will not match the actual
INPUTS.

However, when building a package, those references must indeed refer
only to ungrafted packages.  This commit preserves that by having build
systems pass #:graft? #f.

* guix/gexp.scm (lower-reference-graphs, lower-references): Remove uses
of 'without-grafting'.  This reverts
a779363b6a.
* guix/build-system/cmake.scm (cmake-build, cmake-cross-build):
Pass #:graft? #f.
* guix/build-system/glib-or-gtk.scm (glib-or-gtk-build)
(glib-or-gtk-cross-build): Likewise.
* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Likewise.
* guix/build-system/meson.scm (meson-build, meson-cross-build): Likewise.
* guix/build-system/trivial.scm (trivial-build, trivial-cross-build):
Likewise.
* tests/gexp.scm ("lower-object, computed-file + grafts"): New test.
* tests/packages.scm ("trivial with #:allowed-references + grafts"): New
test.
2021-09-25 00:41:32 +02:00
..
android-ndk.scm
ant.scm
asdf.scm build-system: asdf: Remove %build-inputs reference. 2021-07-29 10:25:21 +02:00
cargo.scm
chicken.scm Merge branch 'master' into core-updates-frozen 2021-09-07 14:19:08 +02:00
clojure.scm
cmake.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
copy.scm
dub.scm
dune.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
emacs.scm
font.scm
glib-or-gtk.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
gnu.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
go.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
guile.scm
haskell.scm build-system/haskell: Fix regression. 2021-07-28 20:35:38 +02:00
julia.scm
linux-module.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
maven.scm
meson.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
minetest.scm gnu: minetest: move to minetest.scm. 2021-08-20 13:37:32 +02:00
minify.scm Merge branch 'master' into core-updates-frozen 2021-07-29 22:34:57 +02:00
node.scm
ocaml.scm
perl.scm
python.scm
qt.scm
r.scm
rakudo.scm
renpy.scm
ruby.scm
scons.scm
texlive.scm
trivial.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
waf.scm