FS#64634 - [systemd] Should have `gnutls` as a dependency (possibly optional)

Attached to Project: Arch Linux
Opened by Daniel Edgecumbe (esotericnonsense) - Sunday, 24 November 2019, 15:25 GMT
Last edited by Christian Hesse (eworm) - Monday, 27 July 2020, 18:33 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:
`systemd-resolved` fails to work without the `gnutls` package.

```
Nov 24 14:47:34 kalix-repro systemd-resolved[45]: /usr/lib/systemd/systemd-resolved: error while loading shared libraries: libgnutls.so.30: cannot open shared object file: No such file or directory
```

Unsure whether it should be an optional or required dep. The system works and boots fine without it but it may be confusing to users.

Steps to Reproduce:

Install `systemd` without `gnutls`.
Try to start the `systemd-resolved` service.

Version tested:
systemd-243.162-2
This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 27 July 2020, 18:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  systemd 245.7-1
Comment by Daniel Edgecumbe (esotericnonsense) - Sunday, 24 November 2019, 15:35 GMT
Note that this is fairly academic because on further inspection pacman has gnutls as a transitive dependency.

This is obviously rather contrived, but an example of how you could get here would be to pacstrap systemd into a container and then boot it with systemd-nspawn.
Comment by loqs (loqs) - Sunday, 24 November 2019, 17:07 GMT
Or switch the build to use openssl with either dns-over-tls=openssl or gnutls=false
Comment by Barius Drubeck (barius) - Sunday, 26 July 2020, 20:17 GMT
For me this is not so academic - I am using systemd-nspawn as a container solution and building minimal container images with pacstrap. Pacman is not needed in such containers.
I just hit this issue with systemd-245.6-8.
IMO gnutls or libgnutls.so should be an optional dependency because systemd-resolved is an optional feature (although recommended and enabled by default).

Loading...