guix/guix
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
..
build Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
build-system gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
import Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
scripts Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
store
tests
android-repo-download.scm
avahi.scm
base16.scm base16: Reduce GC pressure in bytevector->base16-string. 2021-09-10 17:30:54 +02:00
base32.scm base32: Work around (ash x N) miscompilation at '-O1' and below. 2021-09-21 09:45:21 +02:00
base64.scm
build-system.scm
bzr-download.scm
cache.scm
channels.scm
ci.scm ci: Add jobs history support. 2021-08-22 21:36:29 +02:00
colors.scm
combinators.scm
config.scm.in
cpio.scm cpio: Fix device number calculation. 2021-07-04 04:35:35 +02:00
cve.scm
cvs-download.scm
d3.v3.js
deprecation.scm deprecation: Add 'define-deprecated/public'. 2021-09-06 22:02:11 +02:00
derivations.scm derivations: Make 'coalesce-duplicate-inputs' linear in the number of inputs. 2021-07-27 18:26:08 +02:00
describe.scm
diagnostics.scm
discovery.scm
docker.scm guix: docker: Ensure repository name length limits are met. 2021-07-05 16:34:07 -04:00
download.scm download: Disarchive mirrors can be URL-returning procedures. 2021-09-14 11:50:58 +02:00
elf.scm
ftp-client.scm
gexp.scm gexp: Leave grafting as is when lowering allowed/disallowed references. 2021-09-25 00:41:32 +02:00
git-authenticate.scm
git-download.scm
git.scm transformations: Git tags and 'git describe' style IDs are used as version. 2021-09-08 18:03:50 +02:00
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm
graph.js
graph.scm
hg-download.scm
http-client.scm
i18n.scm
inferior.scm inferior: 'cached-channel-instance' no longer calls 'show-what-to-build'. 2021-08-09 18:14:37 +02:00
ipfs.scm
licenses.scm licenses: Remove 'cc-sampling-plus-1.0' export. 2021-08-02 18:11:32 +02:00
lint.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
narinfo.scm
openpgp.scm
packages.scm Merge branch 'master' into core-updates-frozen 2021-09-17 01:25:52 +02:00
pki.scm
profiles.scm Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
profiling.scm
progress.scm
quirks.scm
records.scm records: Support field sanitizers. 2021-08-12 12:34:13 +02:00
remote.scm
repl.scm
scripts.scm
search-paths.scm
self.scm self: Use default config variable values for derivations. 2021-08-09 18:14:33 +02:00
serialization.scm
sets.scm
ssh.scm
status.scm status: Add missing newline after substitution completion message. 2021-07-04 23:00:36 +02:00
store.scm store: 'map/accumulate-builds' processes the whole list in case of cutoff. 2021-09-15 16:52:13 +02:00
substitutes.scm substitutes: Properly construct URLs. 2021-07-16 19:36:11 +02:00
svn-download.scm
swh.scm swh: 'swh-download' reports revision lookup failures. 2021-09-10 17:30:54 +02:00
tests.scm tests: Unset NIX_STORE_DIR when running external tests. 2021-07-05 15:34:24 +02: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 ui: Improve output appearance when listing generations. 2021-07-15 16:11:47 -04:00
upstream.scm
utils.scm utils: Define target-ppc64le? predicate. 2021-08-17 12:41:44 +03:00
workers.scm