Skip to content

meson: allow installing systemd service without systemd#64

Open
JustSoup312 wants to merge 1 commit intolinux-speakup:masterfrom
JustSoup312:systemd-without-systemd
Open

meson: allow installing systemd service without systemd#64
JustSoup312 wants to merge 1 commit intolinux-speakup:masterfrom
JustSoup312:systemd-without-systemd

Conversation

@JustSoup312
Copy link

A vendor may support systemd while not installing it in the build environment. This would cause systemd to not be detected and the service to not be installed.

Changes the logic to be based off of explicitly listing the option instead of automatically detected.

A vendor may support systemd while not installing it in the build environment.
This would cause systemd to not be detected and the service to not be installed.

Changes the logic to be based off of explicitly listing the option instead of
automatically detected.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
@sthibaul
Copy link
Contributor

A vendor may support systemd while not installing it in the build environment

Eh? This looks like a bug in the build environment. We shouldn't be guessing where to install systemd units, and just use systemd-pkgconfig-provided information.

@JustSoup312
Copy link
Author

That isn't a bug in the build environment. Alpine Linux does not package systemd, but its downstream distribution postmarketOS does. Because postmarketOS uses the repositories from Alpine Linux, a compromise was made to package systemd units in Alpine's repositories for usage in postmarketOS. In practice, this means that at build-time, systemd doesn't exist.

@sthibaul
Copy link
Contributor

sthibaul commented Feb 2, 2026

Ew, ok.

But then we should still try to get the path from pkgconfig when it is available, and only default to the prefix libdir when that fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants