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

Demi Marie Obenour
2025-09-08T18:09:05Z

[-- Attachment #1.1.1: Type: text/plain, Size: 1095 bytes --]

On 9/8/25 05:13, Alyssa Ross wrote:
> 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?

This is redundant with that, but I was not aware of
stdenv/setup.sh, much less that it added set -eu. I'm
a Nix newbie 🙂.
--
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]