Update systemd-dev installation instructions in BUILD.md [skip ci]

Clarified instructions for installing systemd-dev and added a dry-run command for safety.
This commit is contained in:
Mike Brady
2026-04-27 09:48:44 +01:00
committed by GitHub
parent 1431a1c529
commit 323fa1eee8
+6 -3
View File
@@ -83,10 +83,13 @@ If you are building classic Shairport Sync, the list of packages is shorter:
libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev \
libavutil-dev libavcodec-dev libavformat-dev
```
Building on Ubuntu 24.10 or Debian 13 ("Trixie") and later – and possibly on other distributions – requires `systemd-dev`. Be very careful here if you are using backports -- there is a [report](https://github.com/mikebrady/shairport-sync/issues/2195#issuecomment-4325326002) that installing `systemd-dev` on a backported system can severely damage it:
Building on Ubuntu 24.10 or Debian 13 ("Trixie") and later – and possibly on other distributions – requires `systemd-dev`. Be very careful here if you are using backports -- there is a [report](https://github.com/mikebrady/shairport-sync/issues/2195#issuecomment-4325326002) that installing `systemd-dev` on a backported system can severely damage it.
```
# apt install --no-install-recommends systemd-dev # it's okay if this fails because the package doesn't exist
$ apt install --dry-run --no-install-recommends systemd-dev
```
Only if that looks okay, proceed to:
```
# apt install --no-install-recommends systemd-dev
```
### Fedora (Fedora 40)