a95f14a72e
Currently, the inplace macro only influences whether we use tools/meson-vcs-tag.sh to figure out the version instead of using the predefined one. But doing an inplace build shouldn't really affect the version, since it's possible to do an inplace builds that's not a git main upstream build, so the two concepts are disjoint. Instead, let's replace the "inplace" macro with an "upstream" macro to indicate that we're building from systemd git upstream. Aside from influencing the version, this also disables various patches and adds a libarchive dependency that was added upstream recently but isn't in an official release yet.
653 B
653 B
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.