Re: [PATCH 10/20] host/rootfs: Set -eu in build

Alyssa Ross
2025-09-08T09:13:37Z

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

Demi Marie Obenour <demiobenour@gmail.com> writes:

> This reduces the set of errors in the build that can cause a broken
> image to be produced without failing the build.
>
> Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
> ---
> host/rootfs/default.nix | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix
> index 998220d7b6ed322f64ee52c704e71ec9b4643f59..e09340a94e24d35080ad65d447fe1c8812df67d0 100644
> --- a/host/rootfs/default.nix
> +++ b/host/rootfs/default.nix
> @@ -138,6 +138,7 @@ let
> depsBuildBuild = [ inkscape ];
> nativeBuildInputs = [ xorg.lndir ];
> } ''
> + set -eu
> mkdir -p $out/usr/bin $out/usr/share/dbus-1/services \
> $out/usr/share/icons/hicolor/20x20/apps

What happens to the -eu set by stdenv/setup.sh?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]