Package: dpkg-dev,debhelper
Followup-For: Bug #942111
Control: reopen 942111

Dear Maintainer,

Sorry for being late to the party.
Please reconsider the XDG_RUNTIME_DIR part of this change.

XDG_RUNTIME_DIR is a systemd-ism, and due to the way it is specified,
it's extremely unlikely to be implemented in other init systems. It also
poses problems for tools like su/sudo.

In particular, this part:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
| The lifetime of the directory MUST be bound to the user being logged in.
| It MUST be created when the user first logs in and if the user fully
| logs out the directory MUST be removed. If the user logs in more than
| once he should get pointed to the same directory, and it is mandatory
| that the directory continues to exist from his first login to his last
| logout on the system, and not removed in between. Files in the directory
| MUST not survive reboot or a full logout/login cycle.

is an insurmountable obstacle unless one (re-)implements systemd's idea
of login tracking. The only other conforming behaviour is unexporting
XDG_RUNTIME_DIR.

Hence, any tool (outside systemd and related packages) relying on
XDG_RUNTIME_DIR being set is buggy. I don't think catering to these bugs
is a good idea.


Personally, I think it's a shame XDG_RUNTIME_DIR has been defined this
way; if creating at boot/login and deleting at shutdown was a
permissible implementation, it could be cross-init, and thus actually
useful. Water under the bridge now tho.

Thank you for maintaining debhelper.
regards,
    Jan


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (650, 'testing-debug'), (550, 
'unstable-debug'), (550, 'unstable'), (10, 'experimental-debug'), (10, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Attachment: signature.asc
Description: PGP signature

Reply via email to