Skip to content

meson: allow installing systemd service without systemd - #64

Closed
JustSoup312 wants to merge 1 commit into
linux-speakup:masterfrom
JustSoup312:systemd-without-systemd
Closed

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

Conversation

@JustSoup312

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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

sthibaul commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

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.

@fossdd

fossdd commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Addressed the feedback in #66

sthibaul pushed a commit that referenced this pull request Jun 29, 2026
Allows building the service files without a systemd dependency by
defining a default systemd user unit directory.

Relevant in Alpine, where we can package the service files in a
subpackage without having systemd in Alpine.

Addresses feedback of #64,
therefore superseeds it.
@sthibaul sthibaul closed this Jun 29, 2026
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.

3 participants