guix-play/guix/build
Brendan Tildesley 7f8a896c5f
utils: Fix wrap-script argument handling.
* guix/build/utils.scm (wrap-script):
Don't add (car cl) one too many times, cl its self contains it's car.
Split the aguments string with string-tokenize to avoid leaving an empty
string argument when there should be none. These two bugs seemed to
be partially cancelling each other out so that scripts still worked when
ran with no arguments.

* tests/build-utils.scm: Adjust wrap-script to above changes.
Add two tests to ensure the command line arguments appear identical to a
script and its wrapped version.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-01-10 11:44:29 -05:00
..
maven Merge branch 'master' into core-updates 2021-06-23 18:45:21 +02:00
android-ndk-build-system.scm
android-repo.scm android-repo-download: Use parallel-job-count instead of hard-coding job 2020-09-03 00:09:38 +02:00
ant-build-system.scm
asdf-build-system.scm doc, gnu, guix: Fix typos. 2021-06-13 23:57:45 +02:00
bournish.scm bournish: Prevent inlining of run-time support procedures. 2020-04-02 16:07:08 +02:00
bzr.scm
cargo-build-system.scm build-system/cargo: Don't clobber packaged crates while building. 2021-03-15 15:53:11 +02:00
cargo-utils.scm build/cargo-utils: Use all allocated threads to generate checksums. 2020-07-15 10:26:35 +03:00
chicken-build-system.scm build-system: Add chicken-build-system. 2020-12-03 16:18:33 +01:00
clojure-build-system.scm build-system: Add 'clojure-build-system'. 2018-11-19 12:07:44 +01:00
clojure-utils.scm
cmake-build-system.scm
compile.scm compile: Build gnu/{packages,tests}/* with '-O1'. 2020-06-22 15:42:55 +02:00
copy-build-system.scm build-system/copy: Avoid use of 'set!'. 2021-05-04 18:33:20 +03:00
cvs.scm
debug-link.scm grafts: Add (guix build debug-link) and use it. 2018-08-24 18:01:05 +02:00
download-nar.scm Use guile-zlib extension in build-side code. 2020-08-24 10:41:06 +02:00
download.scm download: Print URL of the Disarchive spec being read. 2021-10-14 16:45:06 +02:00
dub-build-system.scm
dune-build-system.scm guix: dune-build-system: Put dune into a reproducible release mode. 2021-09-08 13:39:27 +02:00
emacs-build-system.scm build-system: emacs: Do not rely on input labels in the 'build' phase. 2021-12-14 11:18:46 -05:00
emacs-utils.scm Update copyright assignments for Liliana Marie Prikler. 2021-09-25 09:34:36 +02:00
font-build-system.scm build-system/gnu: Add 'bootstrap' phase. 2018-03-11 22:04:40 +01:00
git.scm
glib-or-gtk-build-system.scm build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase. 2021-11-11 12:18:19 -05:00
gnu-bootstrap.scm
gnu-build-system.scm build-system/gnu: patch-shebangs: Also patch shebangs in "/libexec". 2021-07-08 00:28:57 +02:00
gnu-dist.scm build-system/gnu: Fix 'install' phase of 'gnu-dist'. 2020-06-18 14:48:17 +02:00
go-build-system.scm build-system/go: Initialize build cache from input packages. 2021-12-24 16:32:25 -05:00
graft.scm grafts: Support rewriting UTF-16 and UTF-32 store references. 2021-04-15 03:22:55 -04:00
gremlin.scm gremlin: 'elf-dynamic-info' returns a file name rathern than a dynamic entry. 2021-04-22 14:04:27 +02:00
guile-build-system.scm
haskell-build-system.scm build-system/haskell: Explain failure. 2021-10-08 09:13:52 +02:00
hg.scm svn-download, hg-download: Use 'report-invoke-error'. 2020-10-10 22:37:45 +02:00
java-utils.scm guix: java-utils: Look for actual jar files. 2021-06-22 13:10:36 +02:00
json.scm
julia-build-system.scm build: julia-build-system: Create 'Project.toml' file when missing. 2022-01-10 15:15:31 +02:00
linux-module-build-system.scm build-system: linux-module: Don't explicitly return #t from phases. 2021-10-01 21:27:35 +02:00
lisp-utils.scm Merge branch 'staging' 2020-10-19 13:11:40 -04:00
make-bootstrap.scm
maven-build-system.scm guix: maven: Support fixing modules. 2021-06-22 13:10:28 +02:00
meson-build-system.scm build: meson: Replace the 'test-target' argument by 'test-options'. 2021-11-11 12:18:32 -05:00
meson-configuration.scm build-system/meson: Support cross-compilation. 2021-07-14 15:57:40 +02:00
minetest-build-system.scm build-system/minetest: Install config.txt and _config.txt. 2021-10-16 17:30:31 +02:00
minify-build-system.scm Merge branch 'master' into core-updates-frozen 2021-07-29 22:34:57 +02:00
node-build-system.scm guix: node-build-system: Add 'delete-dependencies' helper function. 2022-01-09 02:07:12 +01:00
ocaml-build-system.scm
pack.scm build: pack: Mute error output when checking if tar supports --sort. 2021-07-18 02:11:13 -04:00
perl-build-system.scm
po.scm maint: Factorize po xref translation. 2021-10-17 18:26:44 +02:00
profiles.scm profiles: Build union of inputs in the right order. 2021-06-22 17:55:05 +02:00
python-build-system.scm python-build-system: Look up the interpreter in 'inputs'. 2021-06-04 22:34:31 +02:00
qt-build-system.scm Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
qt-utils.scm Merge branch 'master' into core-updates-frozen 2021-11-17 23:43:14 +01:00
r-build-system.scm
rakudo-build-system.scm rakudo-build-system: Look up the interpreter in 'inputs'. 2021-06-04 22:34:32 +02:00
renpy-build-system.scm Update copyright assignments for Liliana Marie Prikler. 2021-09-25 09:34:36 +02:00
ruby-build-system.scm build: ruby-build-system: Remove an extraneous binding. 2020-09-01 13:19:08 -04:00
scons-build-system.scm
store-copy.scm guix system: 'init' copies, resets timestamps, and deduplicates at once. 2020-12-15 17:32:11 +01:00
svn.scm svn-download, hg-download: Use 'report-invoke-error'. 2020-10-10 22:37:45 +02:00
syscalls.scm linux-container: Handle CLONE_NEWCGROUP and use it by default. 2022-01-05 23:44:18 +01:00
texlive-build-system.scm gnu: TeX Live: Use IniTeX to build a couple of packages 2021-07-21 15:55:26 +02:00
union.scm union: Do not warn about "ld.so.cache" collisions. 2021-09-25 18:52:05 +02:00
utils.scm utils: Fix wrap-script argument handling. 2022-01-10 11:44:29 -05:00
waf-build-system.scm