Commit Graph
12 Commits
Author SHA1 Message Date
Yu Watanabe 5ff3f5ed44 systemd/systemd: adds libbz2 dependency
Before this change, systemd package depends on other compression
libraries, but does not depend on libbz2. Let's also make it depend
on libbz2.

This also makes bzip2-dev explicitly installed on build, like other
compression libraries like lz4-dev, xz-dev, zlib-dev, and zstd-dev.
Currently, it is indirectly installed as glib-dev depends on it.
So the makedepends= change does not effectively changes anything.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8926>
2026-06-29 13:28:06 +00:00
Yu Watanabe 7eb30fa6f2 systemd/systemd: drop unnecessary conditionalization for $source
The upstream mkosi build does not fetch source files. Hence, it is not
necessary to exclude the tar ball from $source.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8832>
2026-06-17 10:16:34 +00:00
Yu Watanabe 863cc44ac9 systemd/systemd: bump pkgrel
In the previous commits,
- enabled bootloader support on 32-bit architectures,
- fixed libpwquality dependency,
- enabled libarchive and zlib supports,
- enabled xen kexec support,
- enabled valgrind support,
- added systemd-tests subpackage,
- added upstream build support.

So, let's bump the pkgrel to make them take effects.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 13:42:43 +09:00
Yu Watanabe f432f70de9 systemd/systemd: add upstream mkosi build support
For https://github.com/systemd/systemd/pull/39823

The upstream systemd's mkosi build requires that systemd-boot and ukify
are also built from the upstream source files.

Also, mkosi needs to pass specific source and build directories,
override default meson options, and so on. To support them, this adds
several extra environment variables support:
- $_systemd_upstream,
- $_meson_extra_configure_options,
- $_meson_builddir,
- $_upstream_srcdir.

Note, postmarketOS image built with mkosi already enables usr-merge. Hence
several symlink paths are changed when $_systemd_upstream is set.

This should not change any behavior when the above environment variables
are _not_ set.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 13:42:43 +09:00
Yu Watanabe 0bc8f74905 systemd/systemd: enable bootloader support on 32-bit architecture
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 13:42:37 +09:00
Yu Watanabe 87c4c8c4e0 systemd/systemd: introduce systemd-tests subpackage
Then, we can run unit tests and integration tests on postmarketOS systems.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 12:08:49 +09:00
Yu Watanabe 6ba54d5a25 systemd/systemd: add valgrind support
Note, systemd uses `RUNNING_ON_VALGRIND` macro, hence when executables
are not running on valgrind, this should introduce any runtime behavior
differences.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 12:08:49 +09:00
Yu Watanabe 3de1007991 systemd/systemd: add xenctl support
Then, we can support xen kexec commends on reboot.
Note, this does not requires any runtime library.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 12:08:43 +09:00
Yu Watanabe f8dbf2b686 systemd/systemd: enable libarchive and zlib support
Then, people can use foo.tar.gz by systemd-import and friends.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:28 +09:00
Yu Watanabe d7af540929 systemd/systemd: fix libpwquality dependency
Without installing -dev package on build, libpwquality support is not
enabled.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:28 +09:00
Yu Watanabe 33f463cd23 systemd/systemd: gnu grep is required by test-kernel-install
test-kernel-install requires 'grep -G', which is not supported by
BusyBox grep.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:28 +09:00
Yu Watanabe 1be5715359 systemd/systemd: various trivial cleanups
- -Dsysvinit-path= has been deprecated,
- dropped stale comment,
- fix indent.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:19 +09:00