The systemd rpms
Find a file
Zbigniew Jędrzejewski-Szmek 2eec25c1e6 Require systemd-rpm-macros for build
We use our own macros. They get pulled into the buildroot in Fedora
builds, but we shouldn't rely on this. In OBS builds, they are not
pulled in and the build fails.

(cherry picked from commit 7208fa2b1b)
2025-11-10 18:31:13 +01:00
.fmf Run upstream integration test suite with Fedora CI 2025-01-15 10:38:03 +01:00
plans fmf: Run tests from systemd-tests rpm if possible 2025-04-09 09:43:41 +02:00
.editorconfig Add a .editorconfig file 2025-01-16 12:29:21 +01:00
.gitignore Add a few mkosi artifact directories to .gitignore 2025-01-16 12:29:01 +01:00
.zuul.yaml zuul: adjust config 2023-09-19 09:27:54 +02:00
0001-Revert-units-use-PrivateTmp-disconnected-instead-of-.patch Revert use of PrivateTmp=disconnected 2025-01-10 17:05:52 +01:00
10-map-count.conf Increase vm.max_map_count 2023-06-02 18:51:48 +02:00
10-oomd-defaults.conf Increase oomd user memory pressure limit to 50% for 20s (#1941170) 2021-03-30 12:11:37 +02:00
10-oomd-per-slice-defaults.conf Raise ManagedOOMMemoryPressureLimit from 50% to 80% 2023-05-11 18:46:17 +00:00
10-timeout-abort.conf Set TimeoutStopFailureMode=abort for services 2023-02-22 16:03:38 +01:00
20-yama-ptrace.conf Add example file with yama config 2015-07-05 22:52:35 -04:00
60-block-scheduler.rules Simplify BFQ scheduler enablement 2024-07-20 17:08:03 +02:00
98-default-mac-none.link fix comment instructions for 98-default-mac-none.link 2023-02-21 14:51:35 +00:00
26494.patch Restore compatibility with F40 2024-05-14 20:55:59 +02:00
30846.patch Version 258~rc1 2025-07-23 23:13:29 +02:00
38724.patch Add workaround patch to hopefully pass podman CI tests 2025-08-26 15:15:17 +02:00
38769.patch Add to patch to create userdb root directory with correct label 2025-09-04 13:56:28 +02:00
changelog Trim changelog entries that are not relevant to users 2025-01-17 14:04:00 +01:00
inittab Add /etc/inittab and /etc/crypttab 2014-10-07 15:51:56 -04:00
libabigail.abignore Rename source .abignore file 2025-01-07 19:25:06 +01:00
macros.sysusers Neuter sysusers macros 2025-03-06 09:30:31 +01:00
macros.sysusers.compat Also drop auxiliary files related to sysusers compat 2025-03-07 11:25:27 +01:00
owner-check.sh owner-check: make sending of mails optional 2021-03-30 12:11:34 +02:00
owner-check.template Add script to mail inactive maintainers 2021-02-11 13:08:32 +01:00
README.build-in-place.md Replace inplace macro with upstream macro 2024-02-11 20:31:41 +01:00
rpminspect.yaml rpminspect: disable udev rules check 2023-11-14 22:57:07 +01:00
sources Version 258.1 2025-10-13 17:09:52 +02:00
split-files.py Version 258~rc1 2025-07-23 23:13:29 +02:00
sysctl.conf.README Steal sysctl.conf from initscripts 2014-10-07 15:51:56 -04:00
systemd-journal-gatewayd.xml Add firewalld port descriptions 2015-01-05 22:46:35 -05:00
systemd-journal-remote.xml Add firewalld port descriptions 2015-01-05 22:46:35 -05:00
systemd-udev-trigger-no-reload.conf Prevent systemd-udev-trigger.service from restarting 2016-10-07 07:55:56 -04:00
systemd-user Do not use patch to modify systemd-user pam config file 2024-08-28 11:38:58 +02:00
systemd.rpmlintrc Add abignore file to make abigail happy 2020-04-11 10:37:42 +02:00
systemd.spec Require systemd-rpm-macros for build 2025-11-10 18:31:13 +01:00
sysusers.attr Add the sysusers compat parts 2020-02-10 17:19:18 +01:00
sysusers.generate-pre.sh sysusers: support new ! line flag for creating fully locked accounts 2024-12-16 03:40:18 +09:00
sysusers.prov sysusers: support new ! line flag for creating fully locked accounts 2024-12-16 03:40:18 +09:00
test_sysusers_defined.py Use old setup sysusers files on Fedora < 43 2025-03-21 14:38:40 +01:00
triggers.systemd Do not use dynamic spec generation for non-upstream builds 2025-02-19 10:46:38 +01:00

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.