FS#76166 - [gnupg] systemctl says that units are disabled
Attached to Project:
Arch Linux
Opened by Yuri Kanivetsky (x-yuri) - Tuesday, 11 October 2022, 01:56 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:26 GMT
Opened by Yuri Kanivetsky (x-yuri) - Tuesday, 11 October 2022, 01:56 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:26 GMT
|
Details
Description: This one is probably questionable, but if you
don't known much about gpg, and, to top it off, the gnupg
home is not in ~/.gnupg (in which case socket activation
won't work), this might be confusing.
As things stand: $ systemctl --user is-enabled dirmngr.socket disabled Which is confusing. But if you delete the [Install] section: $ systemctl --user is-enabled dirmngr.socket static Which makes sense. This happens because enable/disable/is-enabled concern themselves only with ~/.config/systemd and /etc/systemd: https://lists.freedesktop.org/archives/systemd-devel/2022-September/048338.html Putting the symlinks into /usr/lib/systemd for units with [Install] sections is like providing a way to enable the units twice. One way to solve this is copy the units into the arch repo. Another: $ cat doc/examples/systemd-user/dirmngr.socket | sed '/\[Install\]/,$d' You can also delete the last empty line if you will: $ cat doc/examples/systemd-user/dirmngr.socket | sed '/\[Install\]/,$d' | sed '$d' But this way it may break one day. No good solution. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:26 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/gnupg/issues/3
Saturday, 25 November 2023, 20:26 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/gnupg/issues/3
See https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/issues/220 for a similar issue.