profiles: 'profile-derivation' rejects unsupported packages.
authorLudovic Courtès <ludo@gnu.org>
Thu, 17 Feb 2022 15:06:39 +0000 (16:06 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 18 Feb 2022 13:14:38 +0000 (14:14 +0100)
commit5a57313918a5c1bd5cf8238c2dcae64a03523952
tree3b3aaf86f1ec2bc06cc39548ee1d152e5fa27ebd
parent0572737a6218d7390bac352011da47621e18d35b
profiles: 'profile-derivation' rejects unsupported packages.

Previously user-facing commands would happily start building packages
even if they do not support that system.  With this change, all the
user-facing commands reject unsupported packages without going further.

* guix/profiles.scm (profile-derivation): Add #:allow-unsupported-packages?.
Define 'check-supported-packages' and honor #:allow-unsupported-packages?.
* tests/guix-pack.sh, tests/guix-package.sh, tests/guix-shell.sh: Ensure
that unsupported packages are rejected.
* tests/guix-system.sh: Pass "--system=armhf-linux" when attempting to
build gnu/system/examples/asus-c201.tmpl.
guix/profiles.scm
tests/guix-pack.sh
tests/guix-package.sh
tests/guix-shell.sh
tests/guix-system.sh