2022-05-30 14:43:58 +00:00
|
|
|
# Building systemd rpms for local development using rpmbuild --build-in-place
|
2021-06-01 06:49:40 +00:00
|
|
|
|
2022-05-30 14:43:58 +00:00
|
|
|
This approach is based on filbranden's [git-rpmbuild](https://github.com/filbranden/git-rpmbuild)
|
|
|
|
and his [talk during ASG2019](https://www.youtube.com/watch?v=fVM1kJrymRM).
|
2021-06-01 06:49:40 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://github.com/systemd/systemd
|
|
|
|
fedpkg clone systemd fedora-systemd
|
|
|
|
cd systemd
|
2024-02-11 11:52:56 +00:00
|
|
|
rpmbuild -bb --build-in-place --noprep --define "_sourcedir $PWD/../fedora-systemd" --define "_rpmdir $PWD/rpms" --with upstream ../fedora-systemd/systemd.spec
|
2021-06-01 06:49:40 +00:00
|
|
|
sudo dnf upgrade --setopt install_weak_deps=False rpms/*/*.rpm
|
|
|
|
```
|
|
|
|
|
|
|
|
`--without lto` and `--without tests` may be useful to speed up the build.
|