From f97cf5817a583795592f54d9260ce5aee760fd4e Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 18 2022 15:22:31 +0000 Subject: Take ownership of /var/log/lastlog https://pagure.io/setup/pull-request/30 and https://src.fedoraproject.org/rpms/util-linux/pull-request/10 are the opposite steps for setup and util-linux. --- diff --git a/systemd.spec b/systemd.spec index 509fd15..4cbc615 100644 --- a/systemd.spec +++ b/systemd.spec @@ -31,7 +31,7 @@ Name: systemd Url: https://www.freedesktop.org/wiki/Software/systemd %if %{without inplace} Version: 250.3 -Release: 1%{?dist} +Release: 2%{?dist} %else # determine the build information from local checkout Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/') @@ -599,6 +599,7 @@ mkdir -p %{buildroot}%{system_unit_dir}/dbus.target.wants mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants mkdir -p %{buildroot}/run mkdir -p %{buildroot}%{_localstatedir}/log +install -d %{buildroot}%{_localstatedir}/log -m 0664 -g utmp touch %{buildroot}/run/utmp touch %{buildroot}%{_localstatedir}/log/{w,b}tmp @@ -694,6 +695,7 @@ python3 %{SOURCE2} %buildroot < - 250.3-2 +- Take ghost ownership of /var/log/lastlog (#1798685) + * Tue Jan 18 2022 Zbigniew Jędrzejewski-Szmek - 250.3-1 - Third stable release after v250: fixes for sd-boot on fringe hardware (e.g. VirtualBox), various man page updates, sd-journal file verification is now stricter,