Epoch: 1
License: GPL v2+ (udev), LGPL v2.1+ (the rest)
Group: Base
+#Source0Download: https://github.com/systemd/systemd/releases
Source0: https://github.com/systemd/systemd/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: c5953c24c850b44fcf714326e567dc37
Source1: %{name}-sysv-convert
Patch13: sysctl.patch
Patch14: pld-pam-%{name}-user.patch
Patch15: %{name}-seccomp_disable_on_i386.patch
-URL: http://www.freedesktop.org/wiki/Software/systemd
+URL: https://www.freedesktop.org/wiki/Software/systemd/
BuildRequires: acl-devel
%{?with_audit:BuildRequires: audit-libs-devel}
BuildRequires: binutils >= 3:2.22.52.0.1-2
%{?with_selinux:BuildRequires: libselinux-devel >= 2.6}
BuildRequires: libtool >= 2:2.2
BuildRequires: libxslt-progs
-BuildRequires: lz4-devel >= r125
+BuildRequires: lz4-devel >= 1:1.3.0
BuildRequires: m4
-BuildRequires: meson >= 0.44
+BuildRequires: meson >= 0.46
%{?with_pam:BuildRequires: pam-devel >= 1.1.2}
BuildRequires: pcre2-8-devel
BuildRequires: pkgconfig >= 0.9.0
Requires: libgcrypt >= 1.4.5
Requires: libseccomp >= 2.3.1
%{?with_selinux:Requires: libselinux >= 2.6}
+Requires: lz4-libs >= 1:1.3.0
Obsoletes: nss_myhostname
%description libs
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc docs/{BOOT_LOADER_SPECIFICATION.md,DISTRO_PORTING.md,ENVIRONMENT.md,TRANSIENT-SETTINGS.md,UIDS-GIDS.md} NEWS README TODO
+%doc docs/{AUTOMATIC_BOOT_ASSESSMENT,BLOCK_DEVICE_LOCKING,BOOT_LOADER_INTERFACE,BOOT_LOADER_SPECIFICATION,DISTRO_PORTING,ENVIRONMENT,PREDICTABLE_INTERFACE_NAMES,TRANSIENT-SETTINGS,UIDS-GIDS}.md NEWS README TODO
%{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.locale1.conf
%{_mandir}/man5/sysusers.d.5*
%{_mandir}/man5/timesyncd.conf.5*
%{_mandir}/man5/timesyncd.conf.d.5*
-%{_mandir}/man5/user-runtime-dir@.service.5*
-%{_mandir}/man5/user@.service.5*
%{_mandir}/man5/user.conf.d.5*
%{_mandir}/man5/vconsole.conf.5*
%{_mandir}/man7/bootup.7*
%{_mandir}/man8/systemd-backlight.8*
%{_mandir}/man8/systemd-binfmt.8*
%{?with_efi:%{_mandir}/man8/systemd-bless-boot-generator.8*}
-%{?with_efi:%{_mandir}/man8/systemd-bless-boot.service.8*}
-%{_mandir}/man8/systemd-boot-check-no-failures.service.8*
%{_mandir}/man8/systemd-coredump.8*
%{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup-generator.8*}
%{_mandir}/man8/systemd-debug-generator.8*
%dir %{systemduserunitdir}/sockets.target.wants
%{systemduserunitdir}/graphical-session-pre.target
%{systemduserunitdir}/graphical-session.target
+%{_mandir}/man5/user@.service.5*
+%{_mandir}/man5/user-runtime-dir@.service.5*
%{_mandir}/man8/30-systemd-environment-d-generator.8*
%{_mandir}/man8/systemd-environment-d-generator.8*
%{_mandir}/man8/systemd-ask-password-console.path.8*
%{_mandir}/man8/systemd-ask-password-wall.service.8*
%{_mandir}/man8/systemd-backlight@.service.8*
%{_mandir}/man8/systemd-binfmt.service.8*
+%{?with_efi:%{_mandir}/man8/systemd-bless-boot.service.8*}
+%{_mandir}/man8/systemd-boot-check-no-failures.service.8*
%{_mandir}/man8/systemd-coredump.socket.8*
%{_mandir}/man8/systemd-coredump@.service.8*
%{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup.8*}
+int read_etc_hostname_distro(const char *path, char **ret);
int read_etc_hostname_stream(FILE *f, char **ret);
int read_etc_hostname(const char *path, char **ret);
---- systemd-238/src/basic/hostname-util.c~ 2018-03-05 23:16:37.000000000 +0100
-+++ systemd-238/src/basic/hostname-util.c 2018-05-15 13:21:08.392017315 +0200
+--- systemd-240/src/basic/hostname-util.c.orig 2018-12-21 19:53:33.000000000 +0100
++++ systemd-240/src/basic/hostname-util.c 2019-01-13 11:11:40.715590524 +0100
@@ -8,6 +8,7 @@
#include <unistd.h>
f = fopen(path, "re");
if (!f)
-diff -dur -x '*~' -x '*.orig' systemd-208.orig/src/core/locale-setup.c systemd-208/src/core/locale-setup.c
---- systemd-208.orig/src/core/locale-setup.c 2013-10-01 00:17:21.000000000 +0200
-+++ systemd-208/src/core/locale-setup.c 2014-01-09 15:15:41.000000000 +0100
+--- systemd-240/src/core/locale-setup.c.orig 2019-01-13 09:27:36.718995151 +0100
++++ systemd-240/src/core/locale-setup.c 2019-01-13 09:29:37.548993771 +0100
@@ -21,6 +21,7 @@
int r;
for (i = 0; i < _VARIABLE_LC_MAX; i++) {
char *s;
---- a/src/basic/time-util.c~ 2016-11-03 18:16:42.000000000 +0100
-+++ b/src/basic/time-util.c 2016-11-12 19:54:28.457197174 +0100
+--- systemd-240/src/basic/time-util.c.orig 2019-01-13 09:27:36.718995151 +0100
++++ systemd-240/src/basic/time-util.c 2019-01-13 09:31:12.275659356 +0100
@@ -14,6 +14,7 @@
#include <unistd.h>
+ log_warning_errno(r, "Failed to read /etc/sysconfig/timezone: %m");
+ return -EINVAL;
+ }
-+ }
++ }
if (!timezone_is_valid(e, LOG_DEBUG))
return -EINVAL;
-diff -dur -x '*~' -x '*.orig' systemd-208.orig/src/vconsole/vconsole-setup.c systemd-208/src/vconsole/vconsole-setup.c
---- systemd-208.orig/src/vconsole/vconsole-setup.c 2013-08-13 22:02:47.000000000 +0200
-+++ systemd-208/src/vconsole/vconsole-setup.c 2014-01-09 15:17:49.000000000 +0100
+--- systemd-240.orig/src/vconsole/vconsole-setup.c 2013-08-13 22:02:47.000000000 +0200
++++ systemd-240/src/vconsole/vconsole-setup.c 2014-01-09 15:17:49.000000000 +0100
@@ -284,6 +284,17 @@ int main(int argc, char **argv) {
if (r < 0 && r != -ENOENT)
- log_warning("Failed to read /etc/vconsole.conf: %s", strerror(-r));
+ log_warning_errno(r, "Failed to read /etc/vconsole.conf: %m");
+ if (r <= 0) {
+ int r1 = parse_env_file(NULL, "/etc/sysconfig/console", NEWLINE,
+ "KEYTABLE", &vc_keymap,
+ NULL);
+ if (r1 < 0 && r1 != -ENOENT)
-+ log_warning("Failed to read /etc/sysconfig/console: %s", strerror(-r1));
++ log_warning_errno(r1, "Failed to read /etc/sysconfig/console: %m");
+ }
+
/* Let the kernel command line override /etc/vconsole.conf */