The systemd rpms
Find a file
Daan De Meyer e2b2ea3776 fmf: Use mkosi/mkosi.local.conf if the mkosi/ directory exists
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.
2025-04-03 09:39:29 +02:00
.fmf Run upstream integration test suite with Fedora CI 2025-01-15 10:38:03 +01:00
plans fmf: Use mkosi/mkosi.local.conf if the mkosi/ directory exists 2025-04-03 09:39:29 +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
0002-sysusers-emit-audit-events-for-user-and-group-creati.patch Backport patch to emit audit events from systemd-sysusers 2025-01-17 14:10:24 +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 Update PR patch metadata 2024-07-16 18:17:54 +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 257.4 2025-03-07 09:33:55 +01:00
split-files.py Remove purge-nobody-user script 2025-03-23 11:00:27 +01: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 Relax dependencies from noarch packages on archful packages for OBS builds 2025-03-25 12:35:43 +00: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.