guix-play/guix
Ludovic Courtès 3bd4b92f55
build-system/gnu: Turn #:phases into a gexp when cross-compiling.
Previously, we'd get this error:

  $ guix build --target=aarch64-linux-gnu r-minimal -d --no-grafts
  guix build: error: path ‘/gnu/store/[^-]+-glibc-[^-]+-static’ is not valid

This is because the sexp would be passed as an input of the surrounding
gexp in 'gnu-cross-build', and thus
"/gnu/store/[^-]+-glibc-[^-]+-static" would be interpreted as a source
file name, as in this example:

  scheme@(guix gexp)> #~(foo #$(list 'whatever "/gnu/store/[^-]+-glibc-[^-]+-static"))
  $11 = #<gexp (foo #<gexp-input (whatever "/gnu/store/[^-]+-glibc-[^-]+-static"):out>) 7f098badec30>
  scheme@(guix gexp)> (gexp-inputs $11)
  $12 = (#<gexp-input "/gnu/store/[^-]+-glibc-[^-]+-static":out>)

Fixes <https://issues.guix.gnu.org/59073>.
Reported by Christopher Baines <mail@cbaines.net>.

* guix/build-system/gnu.scm (gnu-cross-build): When PHASES is a pair,
pass it through 'sexp->gexp'.
2022-11-08 14:06:00 +01:00
..
build build-system/pyproject: Always run tests verbosely for supported backends. 2022-10-27 21:30:03 +02:00
build-system build-system/gnu: Turn #:phases into a gexp when cross-compiling. 2022-11-08 14:06:00 +01:00
import import/utils: beautify-description: Update to pass tests. 2022-10-05 23:59:48 +02:00
platforms platforms: x86: Rename Hurd hurd to i586-gnu. 2022-09-24 14:49:07 +02:00
scripts guix gc: Add '--vacuum-database'. 2022-11-06 14:02:08 +02:00
store guix gc: Add '--vacuum-database'. 2022-11-06 14:02:08 +02:00
tests tests: git: Write files as UTF-8. 2022-08-09 15:58:14 +02:00
android-repo-download.scm android-repo-download: Add guile-json extension. 2021-05-02 18:45:27 +02:00
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 15:15:52 +02:00
base64.scm
build-system.scm
bzr-download.scm gnu: bazaar: Obsolete with breezy. 2022-05-31 14:54:02 -04:00
cache.scm cache: Catch invalid 'last-expiry-cleanup'. 2022-06-04 12:04:23 +02:00
channels.scm channels: Interpret the 'commit' field of channel as a tag or commit. 2022-10-17 09:37:27 +02:00
ci.scm ci: Add 'start-time' and 'stop-time' to <build> records. 2022-10-20 23:07:37 +02:00
colors.scm colors: Add 'colorize-full-matches'. 2022-04-19 18:07:49 +02:00
combinators.scm combinators: Add 'define-compile-time-procedure'. 2021-12-20 16:21:40 +01:00
config.scm.in
cpio.scm syscalls: Deduplicate device number conversion. 2021-09-23 18:17:16 +02:00
cpu.scm guix: cpu: Add detection for aarch64 CPUs. 2022-05-17 15:19:41 +03:00
cve.scm cve: Gracefully handle bogus CVE entries. 2021-04-25 14:35:42 +02:00
cvs-download.scm cvs-download: Fix module exports 2021-05-05 16:56:43 +02:00
d3.v3.js
deprecation.scm guix: Add define-deprecated/public-alias. 2022-04-12 20:32:32 +02:00
derivations.scm derivations: Coalesce inputs that have the same output path. 2022-03-07 22:49:27 +01:00
describe.scm describe: 'current-channel-entries' ignores non-channel profile entries. 2021-06-13 23:57:44 +02:00
diagnostics.scm diagnostics: Fix typo about 0-indexed COL in location. 2022-05-31 14:52:14 -04:00
discovery.scm discovery: Hide Guile warnings when loading modules. 2021-09-30 23:44:49 +02:00
docker.scm docker: Enable arm64 docker image building for 'guix pack'. 2021-11-23 10:24:27 +01:00
download.scm download: Add a kernel.org mirror. 2022-09-26 23:29:36 +02:00
elf.scm
ftp-client.scm
gexp.scm Remove now unnecessary uses of (guix grafts). 2022-10-22 01:46:55 +02:00
git-authenticate.scm git-authenticate: Ensure the target is a descendant of the introductory commit. 2022-02-14 11:23:08 +01:00
git-download.scm git-download: Set locale to deal with Unicode in git metadata. 2022-04-20 23:46:43 +02:00
git.scm git: 'update-cached-checkout' returns the commit ID when given a tag. 2022-10-17 09:37:27 +02:00
glob.scm guix: Add globstar support. 2020-12-09 22:25:17 +01:00
gnu-maintenance.scm gnu-maintenance: Remove retired 'gforge.inria.fr' site. 2022-10-03 11:16:13 -04:00
gnupg.scm gnupg: Honor GnuPG's configuration for the key server. 2021-11-18 14:41:53 -05:00
grafts.scm grafts: Rewrite using gexps. 2022-10-22 01:49:57 +02:00
graph.js
graph.scm graph: Factorize 'lookup-backend'. 2022-03-18 16:03:33 +01:00
hash.scm guix hash: Extract file hashing procedures. 2022-01-06 16:27:30 +01:00
hg-download.scm hg-download: Make (guix swh) output visible. 2021-06-14 18:35:18 +02:00
http-client.scm http-client: 'http-fetch/cached' converts strings to URIs. 2022-05-22 01:07:52 +02:00
i18n.scm
inferior.scm channels: Interpret the 'commit' field of channel as a tag or commit. 2022-10-17 09:37:27 +02:00
ipfs.scm
least-authority.scm least-authority: Fix typo. 2022-06-10 23:52:34 -04:00
licenses.scm licenses: Let 'license?' expand to #t in trivial cases. 2022-10-10 11:16:06 +02:00
lint.scm Remove now unnecessary uses of (guix grafts). 2022-10-22 01:46:55 +02:00
man-db.scm guix: Index the man-db database via man pages names. 2022-03-02 00:00:55 -05:00
memoization.scm memoization: Add 'invalidate-memoization!. 2017-12-13 23:11:53 +01:00
modules.scm
monad-repl.scm monad-repl: Add "build", "lower", and "verbosity" commands. 2022-07-15 17:36:57 +02:00
monads.scm monads: Add 'mparameterize'. 2022-07-10 23:57:14 +02:00
nar.scm
narinfo.scm narinfo: Fix misleading docstring. 2022-09-24 17:59:04 +02:00
openpgp.scm
packages.scm packages: Raise an exception for invalid 'license' values. 2022-10-10 11:16:07 +02:00
pki.scm
platform.scm guix: platform: Use #false instead of #f. 2022-09-07 14:24:52 +02:00
profiles.scm profiles: info-dir-file: Remove install-info '--silent' option. 2022-10-27 23:34:45 -04:00
profiling.scm profiling: Add a "gc" profiling component. 2019-01-15 20:24:08 +01:00
progress.scm progress: Rate limit drawing in the progress-reporter/bar. 2021-12-12 14:12:15 +00:00
quirks.scm quirks: Adjust patch to allow traveling back to Dec. 2018. 2020-07-24 18:56:25 +02:00
read-print.scm read-print: Recognize 'define-record-type' and 'define-record-type*'. 2022-10-17 10:00:50 +02:00
records.scm records: Support field sanitizers. 2021-08-12 12:34:13 +02:00
remote.scm store: 'map/accumulate-builds' handler checks the store received. 2021-10-28 21:30:27 +02:00
repl.scm
scripts.scm Remove now unnecessary uses of (guix grafts). 2022-10-22 01:46:55 +02:00
search-paths.scm search-paths: Tweak $SSL_CERT_DIR comment. 2022-09-08 16:22:21 +02:00
self.scm self: Switch to Guile-GnuTLS. 2022-10-18 14:27:01 +02:00
serialization.scm
sets.scm
ssh.scm ssh: 'open-ssh-session' gracefully handles connection timeouts. 2022-08-10 16:53:58 +02:00
status.scm status: Relay "updating substitutes" messages. 2022-06-26 23:19:14 +02:00
store.scm grafts: Move '%graft?' and related bindings to (guix store). 2022-10-22 01:46:54 +02:00
substitutes.scm substitutes: Build correct narinfo URLs for cache URLs without trailing slash. 2021-12-12 00:27:53 +01:00
svn-download.scm svn-download: Add missing exports. 2022-10-17 23:15:08 +02:00
swh.scm swh: Allows token from Software Heritage authentication service. 2021-10-15 23:16:28 +02:00
tests.scm tests: Set a hard build timeout. 2022-02-14 11:23:07 +01:00
transformations.scm transformations: Switch to SRFI-71. 2022-10-02 22:14:45 +02:00
ui.scm guix: ui: Add default synopsis for “doc” output. 2022-11-05 10:23:24 +01:00
upstream.scm upstream: Sort '%updaters' alphabetically. 2022-07-19 18:54:41 +02:00
utils.scm utils: Add target-mips64el?. 2022-08-05 00:14:30 +02:00
workers.scm