Commit graph

1,186 commits

Author SHA1 Message Date
Daan De Meyer
7db154308b Conditionalize dracut Conflicts more
Make sure on centos stream 10 we also conflict with dracut 060-2
and that on centos stream 9 so that the spec can still be used to
build systemd rpms for centos stream 9 upstream in systemd CI that
can be installed on centos stream 9.

(dracut is pulled in as a required dependency of kernel-core so we
can't just not install it on centos stream 9 unfortunately).
2024-07-05 11:09:10 +02:00
Daan De Meyer
f9fe17dbde Use vmlinux.h from kernel-devel
Let's make sure we use the vmlinux.h from kernel-devel or none at
all. This makes sure the systemd BPF programs are built against a
known version of vmlinux.h and we don't depend on /sys being available
to generate vmlinux.h ourselves.

Use rpmdev-vercmp to select vmlinux.h from the latest kernel.
2024-07-02 19:41:34 +02:00
Zbigniew Jędrzejewski-Szmek
9cbad936a6 Pull in openssl-devel-engine 2024-07-02 13:40:53 +02:00
Daan De Meyer
8ae009f929 Only add Requires on python3-zstd on Fedora
python3-zstd is not packaged on for CentOS Stream.
2024-07-01 15:18:47 +02:00
Daan De Meyer
750e910c7c Drop BuildRequires on python3-zstd
python3-zstd is only required by ukify and ukify already has a Requires
dependency on python3-zstd so let's drop the BuildRequires.
2024-07-01 15:18:07 +02:00
Zbigniew Jędrzejewski-Szmek
8153d9b0f9 Revert "Remove tmpfiles snippet for /home and /srv"
This reverts commit a76669ee22.

People create /usr-only images by making an installation and only picking
up /usr from it. In that case, the snippet is needed to re-recreate /home
on the rootfs.
2024-06-25 10:29:02 +02:00
Zbigniew Jędrzejewski-Szmek
a76669ee22 Remove tmpfiles snippet for /home and /srv 2024-06-18 21:18:10 +02:00
Zbigniew Jędrzejewski-Szmek
b3e1d52cb4 Soft-disable tmpfiles --purge until a good use case comes up 2024-06-18 21:18:10 +02:00
Zbigniew Jędrzejewski-Szmek
4a29ab3f3b Version 256.1 2024-06-18 21:03:17 +02:00
U2FsdGVkX1
ebf352d292 disable auto-features when bootstrapping 2024-06-15 22:56:39 -04:00
Zbigniew Jędrzejewski-Szmek
1ae0516ae7 Version 256
- Only minor changes since -rc4.
- Hardward db is updated.
2024-06-12 00:08:45 +02:00
Zbigniew Jędrzejewski-Szmek
b32641170e Restore patch to drop varlink method call
It still seems to fail in the CI. Maybe the selinux policy does not
work as expected.
2024-06-07 17:03:26 +02:00
Zbigniew Jędrzejewski-Szmek
421f0041b3 Version 256~rc4 2024-06-06 22:04:51 +02:00
Zbigniew Jędrzejewski-Szmek
65d9b49791 Fix typo
[skip changelog]
2024-06-06 21:55:27 +02:00
Zbigniew Jędrzejewski-Szmek
c56891fb68 Drop sysusers.d/basic.conf
- We rely on setup to provide all necessary groups.
2024-06-06 21:55:27 +02:00
Zbigniew Jędrzejewski-Szmek
69472997b9 Renumber sources and make order more consistent
[skip changelog]
2024-06-06 21:55:27 +02:00
Adam Williamson
1f94b56cee Partially backport PR #33016 to fix crashes in KDE 6.3.0 2024-06-02 10:07:04 -07:00
Zbigniew Jędrzejewski-Szmek
74810c5bc4 Fix release field
[skip changelog]
2024-05-29 14:54:54 +02:00
Zbigniew Jędrzejewski-Szmek
a94605b586 Add patch to work-around libbpf bug
... (rhbz#2280935)
2024-05-29 14:24:15 +02:00
Zbigniew Jędrzejewski-Szmek
c72623872a Version 256~rc3
The revert patch Patch0001 could be droppped, since the policy has
been updated, but let's do that later separately.
2024-05-23 10:11:57 +02:00
Zbigniew Jędrzejewski-Szmek
b64db84892 Version 256~rc2
- Various small changes all over
- A fix for rhbz#2273069
2024-05-15 11:07:54 +02:00
Zbigniew Jędrzejewski-Szmek
8fe1f037d2 Restore compatibility with F40
In systemd upstream CI, we only have the rawhide branch, because we import
dist-git via git submodule. But we want to build systemd on F40 too from this
branch, so conditionally ressurect the patch to make that work. This partially
reverts 69d6e44695.

[skip changelog]
2024-05-14 20:55:59 +02:00
Zbigniew Jędrzejewski-Szmek
f2d12ae6d1 Make %release_override overridable from outside 2024-05-13 13:26:25 +02:00
Zbigniew Jędrzejewski-Szmek
491a9ed5d1 Override release tag
I think this is a bug in rpmautospec. The release tag is always generated
as "1". Before this is investigated and fixed, just set it manually.

[skip changelog]
2024-05-11 14:08:39 +02:00
Zbigniew Jędrzejewski-Szmek
a2d3bbf3d2 Temporarily drop call to varlink method to avoid SELinux denial
There were a bunch of other commits incl. bugfixes that mean that it'd
make sense to update to the latest snapshot, but I chose not to do that to
avoid introducing new issues. We'll get -rc2 soon enough anyway.
2024-05-11 13:32:56 +02:00
Zbigniew Jędrzejewski-Szmek
f872d00c6a Version 256-rc1^20240509git
- There were some fixes merged upstream, so let's try again before
  v256-rc2 is released.
2024-05-09 12:20:52 +02:00
Jan Macku
b9ec39c0ef spec: systemd-ukify should depend on systemd-boot
`systemd-ukify` requires `/usr/lib/systemd/boot/efi/{addonx64,linuxx64}.efi.stub` to work properly, e.g.

```
Traceback (most recent call last):
  File "/usr/bin/ukify", line 1660, in <module>
    main()
  File "/usr/bin/ukify", line 1648, in main
    check_inputs(opts)
  File "/usr/bin/ukify", line 390, in check_inputs
    value.open().close()
  File "/usr/lib64/python3.9/pathlib.py", line 1252, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/lib64/python3.9/pathlib.py", line 1120, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/systemd/boot/efi/addonx64.efi.stub'
```

`/usr/lib/systemd/boot/efi/{addonx64,linuxx64}.efi.stub` are now contained in `systemd-boot-unsigned` sub-package so adding a dependency on it seems like the easiest solution.

Originally reported by: Vitaly Kuznetsov <vkuznets@redhat.com> in https://issues.redhat.com/browse/RHEL-33990

Signed-off-by: Jan Macku <jamacku@redhat.com>
2024-05-02 08:54:12 +02:00
Zbigniew Jędrzejewski-Szmek
580f7f149a Override release tag
I think this is a bug in rpmautospec. The release tag is always generated
as "1". Before this is investigated and fixed, just set it manually.

[skip changelog]
2024-04-27 21:28:18 +02:00
Zbigniew Jędrzejewski-Szmek
c6f7df8b6c Add additional daemon-reexec for upgrades from old systemd versions
https://github.com/systemd/systemd/issues/32508#issuecomment-2079991745

> The new systemd package does the reexec in %postun, but the old one does it in
> %post. So if we install the new one, we don't do any reexec (since %postun
> doesn't run in this case), but once we remove the old one we also don't do any
> reexec, because in this case there's no reexec in %postun:

> # dnf upgrade --rpmverbosity=debug ./*.rpm |& tee log.txt
> ...
> : %postun(systemd-255.5-1.fc41.x86_64): scriptlet start
> D: %postun(systemd-255.5-1.fc41.x86_64): execv(/bin/sh) pid 2649
> D: Plugin: calling hook scriptlet_fork_post in selinux plugin
> D: setexecfilecon: (/bin/sh, rpm_script_t)
> + '[' 1 -eq 1 ']'
> + '[' -w /var ']'
> + journalctl --update-catalog
> + systemd-tmpfiles --create
2024-04-27 20:52:59 +02:00
Zbigniew Jędrzejewski-Szmek
529e5aa70e Drop trigger scriptlets for upgrades from systemd < 247 2024-04-27 20:52:42 +02:00
Zbigniew Jędrzejewski-Szmek
9ebc196a77 Add Recommends for dlopen libraries
They were already in place, but disabled using %{with upstream}. So it's
enough to drop this conditionalization.
2024-04-27 20:47:38 +02:00
Zbigniew Jędrzejewski-Szmek
c29942f58b Version 256~rc1
- See https://raw.githubusercontent.com/systemd/systemd/v256-rc1/NEWS.
  Too many changes to list or discuss here.
2024-04-26 09:04:32 +02:00
Zbigniew Jędrzejewski-Szmek
4e7c10c3a5 Reexec systemd in %postun (https://github.com/systemd/systemd/issues/5096)
- The workaround dbus issues in upgrades from systemd-239 is dropped
2024-04-24 17:29:40 +02:00
Zbigniew Jędrzejewski-Szmek
69d6e44695 Drop workaround to run generators without sandboxing
... (requirement on dracut >= 60 is added)
2024-04-24 16:45:03 +02:00
Zbigniew Jędrzejewski-Szmek
041d0e2394 Version 255.5
- Many different small fixes: systemd itself, systemd-networkd,
  systemd-journal-remote, compilation fixes for newer kernels and
  clang, systemd-homed, systemd-resolved, ukify, systemd-tmpfiles,
  various other.
2024-04-24 16:43:34 +02:00
Zbigniew Jędrzejewski-Szmek
cffa0853c9 Move systemctl symlinks to /usr/bin too
[skip changelog]
2024-04-18 16:00:40 +02:00
Zbigniew Jędrzejewski-Szmek
a37923658f Prepare for bin-sbin merge
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Skip symlinks if they'd point to themselves,
rely on filesystem to create symlinks for us.
2024-04-10 22:08:06 +02:00
Zbigniew Jędrzejewski-Szmek
3f8c38e5d6 Drop perl from BR
It was removed upstream in 711169905e75617eabf3934273aa37dac02c6458,
except for one call in test/test-functions, but we don't run those
during package build.

[skip changelog]
2024-04-08 13:54:32 +02:00
Zbigniew Jędrzejewski-Szmek
5a7cc0a327 Fix build with newer kernel headers
[skip changelog]
2024-04-07 10:57:49 +02:00
Zbigniew Jędrzejewski-Szmek
976e1b0a68 spec: add %bcond to build without documentation
Building of the man pages takes quite a while. We can skip this step
in integration mkosi tests, we don't care about documentation there.
2024-03-27 11:40:36 +01:00
Zbigniew Jędrzejewski-Szmek
3a8ac5baa8 spec: sort and deduplicate gid configuration
[skip changelog]
2024-03-27 11:39:37 +01:00
Zbigniew Jędrzejewski-Szmek
f1d38667ef Revert "Adjust release tag for riscv64"
This reverts commit b6f8f82d8b.

It was a misunderstanding, it wasn't supposed to go in.
2024-03-22 13:10:38 +01:00
David Abdurachmanov
ac2364bc4b Enable bootloader stack for riscv64 2024-03-22 13:03:35 +01:00
Zbigniew Jędrzejewski-Szmek
b6f8f82d8b Adjust release tag for riscv64
If it is specified externally, we hounour that. Otherwise, default
to "1.0.riscv64" on riscv.
2024-03-22 13:02:00 +01:00
Zbigniew Jędrzejewski-Szmek
58b044d8e9 Adjust indentation
[skip changelog]
2024-03-22 13:02:00 +01:00
Zbigniew Jędrzejewski-Szmek
e3e9477031 BR: valgrind is not available on riscv64
[skip changelog]
2024-03-22 13:02:00 +01:00
Zbigniew Jędrzejewski-Szmek
ec5f3a94bc BR: add versioned dependency on binutils for ukify tests
[skip changelog]
2024-03-22 13:02:00 +01:00
David Tardon
2e32a339a1 Make Requires(*) on systemd versioned
Most systemd tools run from scriptlets need libsystemd-shared-X.so (from
systemd package), which contains version and release in it's name.
Therefore, the same version of systemd package must be already installed
when they run.

Resolves: #2282821
2024-03-20 11:01:27 +01:00
Zbigniew Jędrzejewski-Szmek
95a3861e92 Add R:systemd-udev to systemd-networkd subpackage
... (rhbz#2173425)
2024-03-20 09:57:27 +01:00
Daan De Meyer
ae8a47e92e Add psutil dependency to systemd-tests
Required by systemd-networkd-tests.py
2024-03-18 14:25:44 +01:00