guix/tests
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
..
services Reinstate "services: Add a service for Jami." 2021-08-02 17:23:30 -04:00
accounts.scm
base16.scm
base32.scm
base64.scm
boot-parameters.scm Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
bournish.scm
build-utils.scm utils: Define ‘search-input-file’ procedure. 2021-06-04 22:34:26 +02:00
builders.scm tests: Add missing module import. 2021-09-17 01:27:40 +02:00
cache.scm
challenge.scm
channels.scm
civodul.key
combinators.scm
containers.scm
cpan.scm
cpio.scm
cran.scm import: cran: Emit new-style package inputs. 2021-07-11 00:49:16 +02:00
crate.scm
cve-sample.json
cve.scm
debug-link.scm
derivations.scm tests: do not hard code HTTP ports 2021-03-06 11:41:48 +01:00
discovery.scm
dsa.key
ed25519.key
ed25519.sec
ed25519bis.key
ed25519bis.sec
egg.scm import: egg: Emit new-style package inputs. 2021-07-20 23:43:29 +02:00
elpa.scm tests: do not hard code HTTP ports 2021-03-06 11:41:48 +01:00
file-systems.scm pack: Streamline how files are included in tarballs. 2021-07-18 02:10:49 -04:00
gem.scm import: gem: Emit new-style package inputs. 2021-07-20 23:43:29 +02:00
gexp.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
git-authenticate.scm
git.scm
glob.scm
gnu-maintenance.scm gnu-maintenance: 'release-file?' accepts 'v' prefix as in "PKG-v1.2.tgz". 2021-05-28 23:04:44 +02:00
go.scm import: go: Improve error handling. 2021-09-01 23:41:42 +02:00
grafts.scm grafts: Support rewriting UTF-16 and UTF-32 store references. 2021-04-15 03:22:55 -04:00
graph.scm
gremlin.scm tests: gremlin: Skip file-needed/recursive if DT_NEEDED is empty. 2021-06-23 20:30:22 -07:00
guix-archive.sh
guix-authenticate.sh
guix-build-branch.sh
guix-build.sh tests: Adjust '--with-input' test. 2021-09-07 14:54:09 +02:00
guix-daemon.sh
guix-describe.sh
guix-download.sh
guix-environment-container.sh
guix-environment.sh environment: Adjust to earlier 'gcc-bootstrap' search paths changes. 2021-07-11 00:46:54 +02:00
guix-gc.sh
guix-git-authenticate.sh
guix-graph.sh
guix-hash.sh
guix-lint.sh packages: 'package-field-location' handles 'search-path' returning #f. 2021-02-22 12:07:45 +01:00
guix-pack-localstatedir.sh
guix-pack-relocatable.sh
guix-pack.sh
guix-package-aliases.sh
guix-package-net.sh
guix-package.sh diagnostics, ui: Adjust to 'read-error' and 'syntax-error' in Guile 3.0.6. 2021-04-29 01:22:04 +02:00
guix-repl.sh
guix-system.sh gnu: bootloader: Support multiple targets. 2021-08-29 01:05:26 -04:00
hackage.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
import-utils.scm import: utils: Skip not found packages. 2021-09-01 23:41:42 +02:00
inferior.scm inferior: Support querying package replacements. 2021-05-15 12:14:47 +01:00
ipfs.scm Add (guix ipfs). 2021-04-12 18:42:22 +02:00
lint.scm Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
minetest.scm guix: Add ContentDB importer. 2021-08-20 12:41:54 +02:00
modules.scm
monads.scm
nar.scm
networking.scm
offload.scm
opam.scm Merge branch 'master' into core-updates-frozen 2021-09-07 14:19:08 +02:00
openpgp.scm
pack.scm Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
packages.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
pki.scm
print.scm import: print: Emit new-style package inputs when possible. 2021-07-11 00:49:16 +02:00
processes.scm
profiles.scm profiles: Build union of inputs in the right order. 2021-06-22 17:55:05 +02:00
publish.scm publish: Add '--negative-ttl'. 2021-05-16 23:28:11 +02:00
pypi.scm import: pypi: Emit new-style package inputs. 2021-07-11 00:49:15 +02:00
records.scm records: Support field sanitizers. 2021-08-12 12:34:13 +02:00
rsa.key
scripts.scm
search-paths.scm
services.scm
sets.scm
signing-key.pub
signing-key.sec
size.scm
status.scm
store-database.scm database: Validate #:nar-size and #:time when registering store items. 2021-01-31 21:49:58 +01:00
store-deduplication.scm
store-roots.scm
store.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
style.scm Add 'guix style'. 2021-07-11 00:49:15 +02:00
substitute.scm daemon: 'guix substitute' replies on FD 4. 2021-04-09 17:46:38 +02:00
swh.scm swh: Test proper handling of null visit snapshot URL. 2021-01-21 11:22:08 +01:00
syscalls.scm syscalls: Add 'mounts' and the <mount> record type. 2021-02-25 11:29:35 +01:00
system.scm Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
test.drv
texlive.scm tests: do not hard code HTTP ports 2021-03-06 11:41:48 +01:00
transformations.scm transformations: Git tags and 'git describe' style IDs are used as version. 2021-09-08 18:03:50 +02:00
ui.scm
union.scm
upstream.scm
utils.scm utils: Define a target-x86-32? and target-x86-64? predicate. 2021-07-14 15:38:03 +02:00
uuid.scm
workers.scm