nixpkgs/pkgs/build-support/setup-hooks
Robert Hensing 01d7f19346 multi-outputs.sh: Improve _assignFirst error message
Closes #16182

This improves the error message

    Error: _assignFirst found no valid variant!

which occurred when the set of outputs was not sufficient to set
the various outputDev, outputBin, etc variables. Specifically, this
would mean that "out" is not among the outputs, which is valid for
a derivation.

This changes the message to something like

    error: _assignFirst: could not find a non-empty variable to assign to outputDev. The following variables were all unset or empty: dev out.
          If you did not define an "out" output, make sure to define all the specific required outputs: define an output for one of the unset variables.

While this isn't a full explanation of what stdenv can and can not do,
I think it's vast improvement over the 0 bits of information that it
used to provide. This at least gives a clue as to what's going on, and
even suggests a fix, although probably multiple such fixes are required
in an instance where someone starts with a no-out derivation from scratch
(and decide to persist).
2023-01-16 12:57:01 +01:00
..
make-binary-wrapper setup hooks: substitutions.passthru -> passthru 2022-08-13 10:29:10 +02:00
patch-ppd-files stdenv: support opt-in __structuredAttrs 2022-12-08 06:13:19 +02:00
patch-rc-path-hooks patchRcPath hooks: use the passthru argument 2022-11-10 09:27:40 +08:00
postgresql-test-hook trivial-builders.nix: Add input argument passthru to makeSetupHook 2022-08-13 04:20:12 +08:00
wrap-gapps-hook wrapGAppsHook: Set name 2022-08-13 11:53:06 +02:00
audit-blas.sh setup-hooks/audit-blas.sh: init 2020-04-17 16:24:25 -05:00
audit-tmpdir.sh audit-tmpdir.sh: fix on darwin 2022-12-13 00:57:35 +02:00
auto-patchelf.py autoPatchelfHook: support glob patterns 2022-10-10 17:55:11 +13:00
auto-patchelf.sh build-support/setup-hooks: change shebang to shellcheck directive 2022-12-13 00:24:33 +02:00
autoreconf.sh stdenv: conservative undefined variables 2021-08-03 12:43:34 +09:00
breakpoint-hook.sh
canonicalize-jars.sh canonicalize-jars-hook: add 2021-10-27 13:21:27 +03:00
compress-man-pages.sh setup-hooks: compress-man-pages.sh: Do not attempt to compress .xz files 2021-08-19 17:13:05 -04:00
copy-desktop-items.sh copyDesktopItems: Use variable for repeated path 2022-04-07 11:04:11 +00:00
copy-pkgconfig-items.sh makePkgconfigItem: init new function to generate pc files 2022-07-20 06:22:39 +03:00
desktop-to-darwin-bundle.sh build-support/setup-hooks: change shebang to shellcheck directive 2022-12-13 00:24:33 +02:00
die.sh
enable-coverage-instrumentation.sh enable-coverage-instrumentation.sh: Fix unbound variable error 2020-02-28 12:31:50 +01:00
find-xml-catalogs.sh
fix-darwin-dylib-names.sh fixDarwinDylibNames: set name of install_name_tool 2021-05-17 00:27:01 +09:00
gog-unpack.sh
install-shell-files.sh Recover the complicated situation after my bad merge 2020-10-26 09:01:04 +01:00
keep-build-tree.sh
ld-is-cc-hook.sh
make-coverage-analysis-report.sh
make-symlinks-relative.sh make-symlinks-relative: fix no such file or directory if output is created in postFixup 2022-12-06 00:08:11 +02:00
make-wrapper.sh makeWrapper,makeBinaryWrapper: implement --append-flags 2022-05-30 23:07:58 +02:00
move-docs.sh move-docs.sh: update comment 2022-12-12 21:39:56 +02:00
move-lib64.sh
move-sbin.sh
move-systemd-user-units.sh build-support/setup-hooks: change shebang to shellcheck directive 2022-12-13 00:24:33 +02:00
multiple-outputs.sh multi-outputs.sh: Improve _assignFirst error message 2023-01-16 12:57:01 +01:00
patch-shebangs.sh stdenv/patchShebangs: fix off by one reading old interpreter 2021-02-09 13:05:38 +09:00
prune-libtool-files.sh
reproducible-builds.sh stdenv: conservative undefined variables 2021-08-03 12:43:34 +09:00
role.bash pkgs/build-support: Redirect to standard error rather than file "2" 2021-11-11 18:14:21 +13:00
separate-debug-info.sh setup-hooks/separate-debug-info.sh: don't inhibit strip hook 2022-08-07 12:49:37 +01:00
set-java-classpath.sh
set-source-date-epoch-to-latest.sh
setup-debug-info-dirs.sh
shorten-perl-shebang.sh misc: Replace tab indentation with spaces 2021-11-14 16:04:46 +13:00
strip.sh stdenv: support opt-in __structuredAttrs 2022-12-08 06:13:19 +02:00
update-autotools-gnu-config-scripts.sh
use-old-cxx-abi.sh
validate-pkg-config.sh validatePkgConfig: fix cross-compilation 2021-10-23 15:50:21 -07:00
win-dll-link.sh stdenv: support opt-in __structuredAttrs 2022-12-08 06:13:19 +02:00