Compare commits

...
Sign in to create a new pull request.

20 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
7381b6bdb3 Version 255.18
- Fixes in systemd itself, systemd-repart, hibernation code,
  systemd-machined, systemd-stdio-bridge, systemd-userdb,
  systemd-tmpfiles, systemd-sysupdate, systemd-id128,
  systemd-timedated, udev, shared library code, sd-stub, ukify,
  systemctl, homectl, shell completions, documentation
- Hardware database is updated
- Adds new DNSSEC anchor key for systemd-resolved
- Adds new Fedora and OpenSUSE keys for systemd-importd
- Adds a Georgian mapping to the keymap list
2025-03-07 16:24:36 +01:00
Zbigniew Jędrzejewski-Szmek
36f64c05ae Version 255.16
- Fixes for sd-daemon, systemd-battery-check, systemd-logind,
  systemd-resolved, systemctl edit, man pages
2025-01-09 10:01:08 +01:00
Zbigniew Jędrzejewski-Szmek
3a98ae53bf Recommend qemu-kvm-core instead of qemu-kvm
... (rhbz#2329979)

(cherry picked from commit 8dc31eaf04)
(cherry picked from commit 4eb922626d)
2024-12-03 14:13:42 +01:00
Zbigniew Jędrzejewski-Szmek
847b7a3b81 Version 255.15 2024-11-30 09:39:29 +01:00
David Tardon
e631178936 Use %systemd_preun in systemd-resolved
With that, systemd-resolved.service is not only disabled but also
stopped on package uninstall.

... (rhbz#2305391)

(cherry picked from commit 009c64d6a2)
(cherry picked from commit 3ceacb33df)
2024-11-29 15:15:18 +01:00
Zbigniew Jędrzejewski-Szmek
23e61c5094 Pull in qemu from systemd-container
Based on https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/issues/27.

(cherry picked from commit 37c10f5b03)
(cherry picked from commit c3994a98c6)
2024-11-19 13:18:02 +01:00
Zbigniew Jędrzejewski-Szmek
2c2d514d6b Version 255.14
- Various small fixes in multiple components
- Hardware database update
2024-11-16 16:46:12 +01:00
Zbigniew Jędrzejewski-Szmek
0cbf435d82 Version 255.13
- Various small fixes all over
2024-10-11 18:57:48 +02:00
Zbigniew Jędrzejewski-Szmek
e1b8888d0f Reword some descriptions
Also reflow %descriptions to 80 columns.

[skip changelog]
2024-10-11 18:39:25 +02:00
Zbigniew Jędrzejewski-Szmek
f43051c8d1 Version 255.12
- Various small changes all over
2024-09-11 10:12:06 +02:00
Zbigniew Jędrzejewski-Szmek
f6ffb69dde Fix release field
[skip changelog]

(cherry picked from commit 74810c5bc4)
2024-08-05 14:04:59 +02:00
Zbigniew Jędrzejewski-Szmek
8fedbf977d Link systemd-executor statically
... (rhbz#2301692)

(cherry picked from commit 1cc4f83002)
2024-08-05 13:38:13 +02:00
Zbigniew Jędrzejewski-Szmek
85035e86c9 Version 255.10
- Too many small fixes all-over to list.
2024-07-25 12:55:20 +02:00
Zbigniew Jędrzejewski-Szmek
cb42658c16 Backport udma buffer access patch
... (rhbz#2298422)

(cherry picked from commit 8d080fb5cb)
2024-07-17 11:51:48 +02:00
Zbigniew Jędrzejewski-Szmek
2947ac90c6 In standalone subpackages, suggest coreutils-single
In a minimal installation, we pull in coreutils via dependencies.
coreutils-single is much smaller, so bias the resolved towards that.

$ sudo dnf5 install --releasever=rawhide --installroot=/var/tmp/inst1 --use-host-config \
  /var/lib/mock/fedora-rawhide-x86_64/result/systemd-standalone-{repart,shutdown,sysusers,tmpfiles}-256.2-5*rpm
After this operation 57 MiB will be used (install 57 MiB, remove 0 B).

$ sudo dnf5 install --releasever=rawhide --installroot=/var/tmp/inst1 --use-host-config \
  /var/lib/mock/fedora-rawhide-x86_64/result/systemd-standalone-{repart,shutdown,sysusers,tmpfiles}-256.2-6*rpm
After this operation 41 MiB will be used (install 41 MiB, remove 0 B).

(cherry picked from commit 3889da947e)
2024-07-17 11:50:49 +02:00
Zbigniew Jędrzejewski-Szmek
bfd0a535a4 Drop versions from Conflicts for standalone packages
Because the conflicts are in one direction, dnf may try to install older
systemd/systemd-duev and newer systemd-standalone-*. This is not what we want:

$ sudo dnf5 install systemd-standalone-repart
Updating and loading repositories:
Repositories loaded.
Package                             Arch    Version       Repository          Size
Downgrading:
 systemd                            x86_64  255.4-1.fc40  fedora          14.6 MiB
   replacing systemd                x86_64  256.2-1.fc40  @commandline    16.8 MiB
 systemd-container                  x86_64  255.4-1.fc40  fedora           1.4 MiB
   replacing systemd-container      x86_64  256.2-1.fc40  @commandline     1.5 MiB
 systemd-devel                      x86_64  255.4-1.fc40  fedora         550.3 KiB
   replacing systemd-devel          x86_64  256.2-1.fc40  @commandline   556.1 KiB
 systemd-libs                       x86_64  255.4-1.fc40  fedora           1.9 MiB
   replacing systemd-libs           x86_64  256.2-1.fc40  @commandline     2.0 MiB
 systemd-networkd                   x86_64  255.4-1.fc40  fedora           2.0 MiB
   replacing systemd-networkd       x86_64  256.2-1.fc40  @commandline     2.1 MiB
 systemd-oomd-defaults              noarch  255.4-1.fc40  fedora         187.0   B
   replacing systemd-oomd-defaults  noarch  256.2-1.fc40  @commandline   187.0   B
 systemd-pam                        x86_64  255.4-1.fc40  fedora           1.0 MiB
   replacing systemd-pam            x86_64  256.2-1.fc40  @commandline     1.1 MiB
 systemd-resolved                   x86_64  255.4-1.fc40  fedora         629.9 KiB
   replacing systemd-resolved       x86_64  256.2-1.fc40  @commandline   667.1 KiB
 systemd-rpm-macros                 noarch  255.4-1.fc40  fedora           9.5 KiB
   replacing systemd-rpm-macros     noarch  256.2-1.fc40  @commandline     9.3 KiB
 systemd-tests                      x86_64  255.4-1.fc40  fedora          16.5 MiB
   replacing systemd-tests          x86_64  256.2-1.fc40  @commandline    20.0 MiB
 systemd-udev                       x86_64  255.4-1.fc40  fedora          11.5 MiB
   replacing systemd-udev           x86_64  256.2-1.fc40  @commandline    11.7 MiB
 systemd-ukify                      noarch  255.4-1.fc40  fedora          69.9 KiB
   replacing systemd-ukify          noarch  256.2-1.fc40  @commandline    73.3 KiB
Installing:
 systemd-standalone-repart          x86_64  255.8-1.fc40  updates        986.6 KiB

Transaction Summary:
 Installing:        1 packages
 Replacing:        12 packages
 Downgrading:      12 packages

Also, declare the Conflicts on both sides, so that the issue is resolved
immediately. Otherwise, it could still occur when an older version of the
non-standalone packages are available (or installed).

(cherry picked from commit b7800e3e66)
2024-07-17 11:50:45 +02:00
Zbigniew Jędrzejewski-Szmek
66be3003d2 Use a more precise Recommends for libkxbcommon
The old one was the first one added, and referred to the package.
The later ones refer to the soname. Let's convert that one to that
too.

(cherry picked from commit a3524fc837)
2024-07-17 11:50:40 +02:00
Zbigniew Jędrzejewski-Szmek
948fb506e4 Version 255.8
- Various small fixes (systemd, systemd-resolved, repart, pcrlock…)
2024-06-29 08:41:18 +02:00
Zbigniew Jędrzejewski-Szmek
dc28be3879 Version 255.7 2024-05-27 20:19:36 +02:00
Zbigniew Jędrzejewski-Szmek
a7c0e3add5 Version 256.6
- Fixes for systemd, systmed-resolved, systemd-journald,
  systemd-journal-remote, systemd-cryptsetup, systemd-portabled,
  systemd-networkd, systemd-boot, varlink implementation, shell completions,
  build reproducibility, and various smaller fixes in other tools.
2024-05-09 12:40:58 +02:00
3 changed files with 82 additions and 28 deletions

37
33738.patch Normal file
View file

@ -0,0 +1,37 @@
From 69c5d6bea7cc2168a2a483d232aa9a77202173f0 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Tue, 16 Jul 2024 17:46:09 +0200
Subject: [PATCH] rules: Add uaccess tag to /dev/udmabuf
In some cases userspace may need to create dmabuffers from userspace
on such example is the software ISP part of libcamera which needs to
allocate dma-buffers for the output of the software ISP.
At first the plan was to allow console users access to /dev/dma_heap/*,
this was discussed with various kernel folks here:
https://lore.kernel.org/all/bb372250-e8b8-4458-bc99-dd8365b06991@redhat.com/
Giving console users access to the dma_heap's was deemed a bad idea
because memory allocated this way is not accounted in cgroup limits.
Giving access to /dev/udmabuf OTOH was deemed acceptable so that
is what this patch adds.
Resolves: #32662
---
rules.d/70-uaccess.rules.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rules.d/70-uaccess.rules.in b/rules.d/70-uaccess.rules.in
index b82ce04a39d38..e683bb1114461 100644
--- a/rules.d/70-uaccess.rules.in
+++ b/rules.d/70-uaccess.rules.in
@@ -34,6 +34,8 @@ SUBSYSTEM=="sound", TAG+="uaccess", \
SUBSYSTEM=="video4linux", TAG+="uaccess"
SUBSYSTEM=="dvb", TAG+="uaccess"
SUBSYSTEM=="media", TAG+="uaccess"
+# libcamera software ISP used with some cams requires udmabuf access
+KERNEL=="udmabuf", TAG+="uaccess"
# industrial cameras, some webcams, camcorders, set-top boxes, TV sets, audio devices, and more
SUBSYSTEM=="firewire", TEST=="units", ENV{IEEE1394_UNIT_FUNCTION_MIDI}=="1", TAG+="uaccess"

View file

@ -1 +1 @@
SHA512 (systemd-255.5.tar.gz) = 9c0b39379e9ef2af983d885ec3cac0377c90435846341bb4e22abf33c00cc1c9f40abba1d6f598300ffac18e2b27bf917eea41885b1413f63cb9902d2efe9bcc
SHA512 (systemd-255.18.tar.gz) = 4550fa313a45b277dc32df74a13cfd06486ced724f40c1eebc61a9ba76f79b58dd4372da851710cb5d8bb13e98a5cfcb377fe22171ef5bee0209f4bf067c87ad

View file

@ -32,12 +32,16 @@
# Build from git main
%bcond upstream 0
# Override %%autorelease. This is ugly, but rpmautospec doesn't implement
# autorelease correctly if the macro is conditionalized in the Release field.
%{?release_override:%global autorelease %{release_override}%{?dist}}
Name: systemd
Url: https://systemd.io
# Allow users to specify the version and release when building the rpm by
# setting the %%version_override and %%release_override macros.
Version: %{?version_override}%{!?version_override:255.5}
Release: %{?release_override:%{release_override}%{?dist}}%{!?release_override:%autorelease}
Version: %{?version_override}%{!?version_override:255.18}
Release: %autorelease
%global stable %(c="%version"; [ "$c" = "${c#*.*}" ]; echo $?)
@ -98,6 +102,8 @@ GIT_DIR=../../src/systemd/.git git diffab -M v233..master@{2017-06-15} -- hwdb/[
# applying upstream pull requests.
%if %{without upstream}
# Requested in https://bugzilla.redhat.com/show_bug.cgi?id=2298422
Patch0011: https://github.com/systemd/systemd/pull/33738.patch
# Those are downstream-only patches, but we don't want them in packit builds:
# https://bugzilla.redhat.com/show_bug.cgi?id=1738828
@ -188,7 +194,7 @@ BuildRequires: python3dist(pillow)
BuildRequires: python3dist(pytest-flakes)
%endif
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(zstd)
BuildRequires: python3dist(zstandard)
%if 0%{?want_bootloader}
BuildRequires: python3dist(pyelftools)
%endif
@ -233,7 +239,6 @@ Requires: %{name}-libs%{_isa} = %{version}-%{release}
%{?fedora:Recommends: %{name}-resolved = %{version}-%{release}}
Recommends: diffutils
Requires: (util-linux-core or util-linux)
Recommends: libxkbcommon%{_isa}
Provides: /bin/systemctl
Provides: /sbin/shutdown
Provides: syslog
@ -254,11 +259,11 @@ Conflicts: dracut < 060
Obsoletes: timedatex < 0.6-3
Provides: timedatex = 0.6-3
Conflicts: %{name}-standalone-tmpfiles < %{version}-%{release}^
Conflicts: %{name}-standalone-tmpfiles
Provides: %{name}-tmpfiles = %{version}-%{release}
Conflicts: %{name}-standalone-sysusers < %{version}-%{release}^
Conflicts: %{name}-standalone-sysusers
Provides: %{name}-sysusers = %{version}-%{release}
Conflicts: %{name}-standalone-shutdown < %{version}-%{release}^
Conflicts: %{name}-standalone-shutdown
Provides: %{name}-shutdown = %{version}-%{release}
%if "%{_sbindir}" == "%{_bindir}"
@ -275,6 +280,7 @@ Provides: /usr/sbin/telinit
%endif
# Recommends to replace normal Requires deps for stuff that is dlopen()ed
Recommends: libxkbcommon.so.0%{?elf_suffix}
Recommends: libidn2.so.0%{?elf_suffix}
Recommends: libidn2.so.0(IDN2_0.0.0)%{?elf_bits}
Recommends: libpcre2-8.so.0%{?elf_suffix}
@ -424,7 +430,7 @@ Obsoletes: u2f-hidraw-policy < 1.0.2-40
# self-obsoletes to install both packages after split of systemd-boot
Obsoletes: systemd-udev < 252.2^
Conflicts: %{name}-standalone-repart < %{version}-%{release}^
Conflicts: %{name}-standalone-repart
Provides: %{name}-repart = %{version}-%{release}
%if "%{_sbindir}" == "%{_bindir}"
@ -497,7 +503,11 @@ Requires: %{name}%{_isa} = %{version}-%{release}
Requires(post): systemd%{_isa} = %{version}-%{release}
Requires(preun): systemd%{_isa} = %{version}-%{release}
Requires(postun): systemd%{_isa} = %{version}-%{release}
# obsolete parent package so that dnf will install new subpackage on upgrade (#1260394)
# For systemd-vmspawn which uses qemu:
Recommends: qemu-kvm-core
Recommends: qemu-device-display-virtio-gpu
Recommends: qemu-device-display-virtio-vga
# Obsolete parent package so that dnf will install new subpackage on upgrade (#1260394)
Obsoletes: %{name} < 229-5
# Bias the system towards libcurl-minimal if nothing pulls in full libcurl (#1997040)
Suggests: libcurl-minimal
@ -586,48 +596,56 @@ Requires: python3dist(psutil)
License: LGPL-2.1-or-later
%description tests
"Installed tests" that are usually run as part of the build system. They can be
useful to test systemd internals.
Systemd unit tests used to test the internal implementation after a build.
Different binaries test different parts of the codebase.
%package standalone-repart
Summary: Standalone systemd-repart binary for use on systems without systemd
Provides: %{name}-repart = %{version}-%{release}
Conflicts: %{name}-udev
Suggests: coreutils-single
RemovePathPostfixes: .standalone
%description standalone-repart
Standalone systemd-repart binary with no dependencies on the systemd-shared library or
other libraries from systemd-libs. This package conflicts with the main systemd
package and is meant for use on systems without systemd.
Standalone systemd-repart binary with no dependencies on the systemd-shared
library or other libraries from systemd-libs. This package conflicts with the
main systemd package and is meant for use on systems without systemd.
%package standalone-tmpfiles
Summary: Standalone systemd-tmpfiles binary for use on systems without systemd
Provides: %{name}-tmpfiles = %{version}-%{release}
Conflicts: %{name}
Suggests: coreutils-single
RemovePathPostfixes: .standalone
%description standalone-tmpfiles
Standalone systemd-tmpfiles binary with no dependencies on the systemd-shared library or
other libraries from systemd-libs. This package conflicts with the main systemd
package and is meant for use on systems without systemd.
Standalone systemd-tmpfiles binary with no dependencies on the systemd-shared
library or other libraries from systemd-libs. This package conflicts with the
main systemd package and is meant for use on systems without systemd.
%package standalone-sysusers
Summary: Standalone systemd-sysusers binary for use on systems without systemd
Provides: %{name}-sysusers = %{version}-%{release}
Conflicts: %{name}
Suggests: coreutils-single
RemovePathPostfixes: .standalone
%description standalone-sysusers
Standalone systemd-sysusers binary with no dependencies on the systemd-shared library or
other libraries from systemd-libs. This package conflicts with the main systemd
package and is meant for use on systems without systemd.
Standalone systemd-sysusers binary with no dependencies on the systemd-shared
library or other libraries from systemd-libs. This package conflicts with the
main systemd package and is meant for use on systems without systemd.
%package standalone-shutdown
Summary: Standalone systemd-shutdown binary for use on systems without systemd
Summary: Standalone systemd-shutdown binary for use in exitrds
Provides: %{name}-shutdown = %{version}-%{release}
Conflicts: %{name}
Suggests: coreutils-single
RemovePathPostfixes: .standalone
%description standalone-shutdown
Standalone systemd-shutdown binary with no dependencies on the systemd-shared library or
other libraries from systemd-libs. This package conflicts with the main systemd
package and is meant for use in exitrds.
Standalone systemd-shutdown binary with no dependencies on the systemd-shared
library or other libraries from systemd-libs. This package conflicts with the
main systemd package and is meant for use in exitrds.
%prep
%autosetup -n %{?commit:%{name}%[%stable?"-stable":""]-%{commit}}%{!?commit:%{name}%[%stable?"-stable":""]-%{version_no_tilde}} -p1
@ -701,6 +719,7 @@ CONFIGURE_OPTS=(
-Dversion-tag=%{version}%[%{without upstream}?"-%{release}":""]
# https://bugzilla.redhat.com/show_bug.cgi?id=1906010
-Dshared-lib-tag=%{version_no_tilde}%[%{without upstream}?"-%{release}":""]
-Dlink-executor-shared=false
-Dfallback-hostname="localhost"
-Ddefault-dnssec=no
-Ddefault-dns-over-tls=no
@ -1103,10 +1122,8 @@ fi
%systemd_post systemd-resolved.service
%preun resolved
%systemd_preun systemd-resolved.service
if [ $1 -eq 0 ] ; then
systemctl disable --quiet \
systemd-resolved.service \
>/dev/null || :
if [ -L /etc/resolv.conf ] && \
realpath /etc/resolv.conf | grep ^/run/systemd/resolve/; then
rm -f /etc/resolv.conf # no longer useful