• Bug#1106484: systemd: syntax of /usr/lib/environment.d/99-environment.c

    From Luca Boccassi@21:1/5 to alexandre.detiste@gmail.com on Tue May 27 16:40:01 2025
    Control: tags -1 wontfix
    Control: close -1

    On Sat, 24 May 2025 23:04:24 +0200 Alexandre Detiste <alexandre.detiste@gmail.com> wrote:
    Package: systemd
    Version: 257.5-2
    Severity: normal

    Dear Maintainer,

    systemd-environment-d-generator generate errors in the Journal.

    That is annoying.

    Moreover the initial goal is probably not achieved
    or achieved by other means anyway.

    I can not remmember while I needed this setting in 2018.

    Maybe it can now be dropped altogether in both places.

    Greetings

    Alexandre

    -----


    systemd package from 2025:

      mai 24 21:43:28 brix 30-systemd-environment-d-generator[684]:
    /usr/lib/environment.d/99-environment.conf:2: invalid variable name
    "export NO_AT_BRIDGE", ignoring.
      mai 24 21:44:03 brix 30-systemd-environment-d-generator[764]:
    /usr/lib/environment.d/99-environment.conf:2: invalid variable name
    "export NO_AT_BRIDGE", ignoring.
      mai 24 21:44:04 brix 30-systemd-environment-d-generator[806]:
    /usr/lib/environment.d/99-environment.conf:2: invalid variable name
    "export NO_AT_BRIDGE", ignoring.

      root@brix:~# cat /usr/lib/environment.d/99-environment.conf
      export NO_AT_BRIDGE=1



    manual setting from 2018:

      tchet@brix ~ $ ls -l /etc/environment
      -rw-r--r-- 1 root root 22 11 mai  2018 /etc/environment
      tchet@brix ~ $ cat /etc/environment
      export NO_AT_BRIDGE=1

    The syntax you used here is invalid, you have to drop the 'export'. The
    format is well documented and hasn't changed:

    https://www.freedesktop.org/software/systemd/man/latest/environment.d.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)