Vagrant Cascadian schreef op wo 08-06-2022 om 14:43 [-0700]: > So do you now have... > > ExecStart=/usr/bin/guix-daemon --build-users-group=_guixbuild > Environment=LC_ALL=C.UTF-8 > > > Does this mean the build environment that guix-daemon creates are > running in the C.UTF-8 locale,
Unless there's a hole in the build containeer, the builds (unless you count "guix perform-download" and "guix substitute" as builds) do not have access to Debian's /usr/etcetera and likewise they don't have access to guix-daemon's environment variables (*). So the builds use guix' locale data or no locales at all, and they don't use the C.UTF-8 locale. > or does guix-daemon normalize the locale that builds are performed in > to use a "default" locale from guix; AFAICT only "guix-daemon", "guix perform-download", "guix substitute" and maybe "guix offload" will see the LC_ALL=C.UTF-8. As written previously, the builds themselves do not have access to the LC_ALL(*) of the build daemon. However, the guix daemon does not perform any normalisation (except for removing all environment variables, including LC_ALL, starting a build) -- the locale will be set by the _builder_, in 'install-locale' in (guix build gnu-build- system), and the builder will only have access to Guix locales (and only if the package is built with a glibc-locales package in its (native-)inputs) because of the build sandbox. (*) with some exceptions: the fixed-output derivations for downloading git repositories have access to the http_proxy and LC_ALL of the _user_ that is running "guix build" or the like. However, ‘regular’ builds like "guix build hello" do not have access to any leaked environment varibables. > C.UTF-8 isn't yet present in guix's glibc, could this cause issues? No, because guix's glibc is not involved here (sandboxing). (Usual caveats apply, if my understanding of Guix is incorrect then my answer might be incorrect, etc., my proposed change hasn't seen much practical testing ...) Greetings, Maxime.
signature.asc
Description: This is a digitally signed message part