The systemd rpms
https://github.com/systemd/systemd/pull/36954 will move all the mkosi configuration in the systemd repository into a mkosi/ subdirectory. This means we have to put mkosi.local.conf in that subdirectory as well, so check if the mkosi/ directory exists and put mkosi.local.conf in there if it exists. The mkosi/ directory will conflict with our checkout of mkosi so we move that checkout one level up. Additionally, we can't use .. anymore as the package directory as that only works when mkosi.local.conf is in the top level directory of the repository so we use an absolute path instead. |
||
|---|---|---|
| .fmf | ||
| plans | ||
| .editorconfig | ||
| .gitignore | ||
| .zuul.yaml | ||
| 0001-Revert-units-use-PrivateTmp-disconnected-instead-of-.patch | ||
| 0002-sysusers-emit-audit-events-for-user-and-group-creati.patch | ||
| 10-map-count.conf | ||
| 10-oomd-defaults.conf | ||
| 10-oomd-per-slice-defaults.conf | ||
| 10-timeout-abort.conf | ||
| 20-yama-ptrace.conf | ||
| 60-block-scheduler.rules | ||
| 98-default-mac-none.link | ||
| 26494.patch | ||
| 30846.patch | ||
| changelog | ||
| inittab | ||
| libabigail.abignore | ||
| macros.sysusers | ||
| macros.sysusers.compat | ||
| owner-check.sh | ||
| owner-check.template | ||
| README.build-in-place.md | ||
| rpminspect.yaml | ||
| sources | ||
| split-files.py | ||
| sysctl.conf.README | ||
| systemd-journal-gatewayd.xml | ||
| systemd-journal-remote.xml | ||
| systemd-udev-trigger-no-reload.conf | ||
| systemd-user | ||
| systemd.rpmlintrc | ||
| systemd.spec | ||
| sysusers.attr | ||
| sysusers.generate-pre.sh | ||
| sysusers.prov | ||
| test_sysusers_defined.py | ||
| triggers.systemd | ||
Building systemd rpms for local development using rpmbuild --build-in-place
This approach is based on filbranden's git-rpmbuild and his talk during ASG2019.
git clone https://github.com/systemd/systemd
fedpkg clone systemd fedora-systemd
cd systemd
rpmbuild -bb --build-in-place --noprep --define "_sourcedir $PWD/../fedora-systemd" --define "_rpmdir $PWD/rpms" --with upstream ../fedora-systemd/systemd.spec
sudo dnf upgrade --setopt install_weak_deps=False rpms/*/*.rpm
--without lto and --without tests may be useful to speed up the build.