Browse code

systemd: split out to multiple packages and upgrade to 247 stable

Fix uded hot plug rules
```
May 22 23:07:41 photon-machine systemd-udevd[192]:
cpu0: /etc/udev/rules.d/99-vmware-hotplug.rules:6
Failed to write ATTR{/sys/devices/system/cpu/cpu0/online}, ignoring: No such file or directory
```

Change-Id: I025a2ef2d23fff0a44ac7cca02be652ee909d324
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/10145
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>

Susant Sahani authored on 2020/12/14 16:57:46
Showing 15 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Mobile broadband modem manager
2 2
 Name:           ModemManager
3 3
 Version:        1.14.2
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 URL:            https://www.freedesktop.org
6 6
 License:        GPLv2
7 7
 Group:          Applications/System
... ...
@@ -11,10 +11,19 @@ Source0:        https://www.freedesktop.org/software/ModemManager/ModemManager-%
11 11
 %define sha1    ModemManager=07e36664c9effa548b6d58cd7d7dce5da10a16ca
12 12
 BuildRequires:  libqmi-devel
13 13
 BuildRequires:  gobject-introspection-devel
14
+BuildRequires:  libgudev-devel
15
+BuildRequires:  systemd-devel
16
+BuildRequires:  systemd-libs
17
+BuildRequires:  gcc
18
+BuildRequires:  pkg-config
19
+BuildRequires:  automake autoconf libtool
14 20
 BuildRequires:  libxslt
21
+
15 22
 %if %{with_check}
16 23
 BuildRequires:  dbus-devel
17 24
 %endif
25
+
26
+Requires:       libgudev
18 27
 Requires:       libqmi
19 28
 Requires:       gobject-introspection
20 29
 %description
... ...
@@ -55,6 +64,7 @@ make %{?_smp_mflags} check
55 55
 %{_libdir}/libmm-glib.so*
56 56
 %{_libdir}/girepository-1.0/ModemManager-1.0.typelib
57 57
 %{_libdir}/ModemManager/*
58
+%{_libdir}/systemd/system/ModemManager.service
58 59
 %exclude %{_libdir}/debug
59 60
 %{_mandir}/man1/mmcli.1.gz
60 61
 %{_mandir}/man8/ModemManager.8.gz
... ...
@@ -73,6 +83,8 @@ make %{?_smp_mflags} check
73 73
 %{_libdir}/libmm-glib.la
74 74
 
75 75
 %changelog
76
+*   Mon Dec 14 2020 Susant Sahani <ssahani@vmware.com> 1.14.2-3
77
+-   Add build requires
76 78
 *   Wed Nov 18 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.14.2-2
77 79
 -   Fix make check
78 80
 *   Mon Aug 24 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.2-1
... ...
@@ -1,18 +1,23 @@
1
-Summary:	Glib interfaces to D-Bus API 
2
-Name:		dbus-glib
3
-Version:	0.110
4
-Release:	1%{?dist}
5
-License: 	AFL and GPLv2+
6
-Group: 		System Environment/Libraries
7
-Source0:	http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
1
+Summary:        Glib interfaces to D-Bus API
2
+Name:           dbus-glib
3
+Version:        0.110
4
+Release:        2%{?dist}
5
+License:        AFL and GPLv2+
6
+Group:          System Environment/Libraries
7
+Source0:        http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
8 8
 %define sha1 dbus-glib=998b7c762c8f18c906f19fc393bb8712eabe8c97
9
-Vendor:		VMware, Inc.
10
-Distribution:	Photon
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+
11 12
 BuildRequires:	glib-devel
12 13
 BuildRequires:	dbus-devel
13
-Requires:	glib
14
-Requires:	dbus
15
-Provides:	pkgconfig(dbus-glib-1)
14
+BuildRequires:	systemd-devel
15
+
16
+Requires:       glib
17
+Requires:       dbus
18
+Requires:       libffi
19
+Requires:       systemd
20
+Provides:       pkgconfig(dbus-glib-1)
16 21
 
17 22
 %description
18 23
 The D-Bus GLib package contains GLib interfaces to the D-Bus API.
... ...
@@ -29,12 +34,10 @@ Headers and static libraries for the D-Bus GLib bindings
29 29
 %prep
30 30
 %setup -q
31 31
 %build
32
-./configure \
33
-	--prefix=%{_prefix} \
34
-	--sysconfdir=%{_sysconfdir} \
35
-        --disable-static \
36
-	--disable-gtk-doc
37
- 
32
+%configure                   \
33
+  --disable-static            \
34
+  --disable-gtk-doc
35
+
38 36
 make %{?_smp_mflags}
39 37
 %install
40 38
 make DESTDIR=%{buildroot} install
... ...
@@ -44,7 +47,7 @@ make %{?_smp_mflags} check
44 44
 
45 45
 %post	-p /sbin/ldconfig
46 46
 %postun	-p /sbin/ldconfig
47
-%files 
47
+%files
48 48
 %defattr(-,root,root)
49 49
 %{_sysconfdir}/bash_completion.d/*
50 50
 %{_bindir}/*
... ...
@@ -60,22 +63,22 @@ make %{?_smp_mflags} check
60 60
 %{_libdir}/*.so
61 61
 %{_libdir}/pkgconfig/*.pc
62 62
 
63
-
64
-
65 63
 %changelog
64
+*	Mon Dec 14 2020 Susant Sahani<ssahani@vmware.com> 0.110-2
65
+- Add build requres and requires.
66 66
 *	Mon Sep 10 2018 Ajay Kaher <akaher@vmware.com> 0.110-1
67
--       Upgraded to 0.110
68
-*       Wed May 03 2017 Bo Gan <ganb@vmware.com> 0.108-1
69
--       Update to 0.108
70
-*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 0.106-5
71
--       Modified %check
67
+- Upgraded to 0.110
68
+* Wed May 03 2017 Bo Gan <ganb@vmware.com> 0.108-1
69
+- Update to 0.108
70
+* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 0.106-5
71
+- Modified %check
72 72
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.106-4
73 73
 -	GA - Bump release of all rpms
74
-*   Mon Feb 22 2016 XIaolin Li <xiaolinl@vmware.com> 0.106-1
75
--   Updated to version 0.106
76
-*   	Thu Jan 28 2016 Anish Swaminathan <anishs@vmware.com> 0.104-3
77
--   	Add requires to dbus-glib-devel
78
-* 	Tue Sep 22 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.104-2
74
+* Mon Feb 22 2016 XIaolin Li <xiaolinl@vmware.com> 0.106-1
75
+- Updated to version 0.106
76
+* Thu Jan 28 2016 Anish Swaminathan <anishs@vmware.com> 0.104-3
77
+- Add requires to dbus-glib-devel
78
+* Tue Sep 22 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.104-2
79 79
 -	Updated build requires after creating devel package for dbus
80 80
 *	Tue Jun 23 2015 Divya Thaluru <dthaluru@vmware.com> 0.104-1
81 81
 -	Initial build.
... ...
@@ -3,15 +3,16 @@
3 3
 
4 4
 Name:           dbus-python3
5 5
 Version:        1.2.16
6
-Release:        1%{?dist}
6
+Release:        2%{?dist}
7 7
 Summary:        Python bindings for D-Bus
8 8
 License:        MIT
9 9
 Group:          Development/Libraries/Python
10 10
 Url:            http://www.freedesktop.org/wiki/Software/DBusBindings/
11 11
 Source0:        http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz
12 12
 %define         sha1 dbus-python=de05308c75baa2ce5434de73d60428c005ac0cc1
13
-Vendor:		VMware, Inc.
14
-Distribution:	Photon
13
+Vendor:         VMware, Inc.
14
+Distribution:   Photon
15
+
15 16
 BuildRequires:  python3
16 17
 BuildRequires:  python3-devel
17 18
 BuildRequires:  python3-libs
... ...
@@ -19,6 +20,8 @@ BuildRequires:  python3-docutils
19 19
 BuildRequires:  dbus-devel
20 20
 BuildRequires:  glib-devel
21 21
 BuildRequires:  python3-setuptools
22
+BuildRequires:  systemd-devel
23
+
22 24
 Requires:       python3-xml
23 25
 Requires:       dbus
24 26
 
... ...
@@ -64,5 +67,7 @@ make check
64 64
 %{_libdir}/pkgconfig/dbus-python.pc
65 65
 
66 66
 %changelog
67
+*   Mon Dec 14 2020 Susant Sahani <ssahani@vmware.com> 1.2.16-2
68
+-   Add build requires
67 69
 *   Thu Mar 19 2020 Tapas Kundu <tkundu@vmware.com> 1.2.16-1
68 70
 -   Initial release
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Library for talking to WWAN modems and devices
2 2
 Name:           libmbim
3 3
 Version:        1.24.2
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 URL:            https://www.freedesktop.org
6 6
 License:        GPLv2
7 7
 Group:          Applications/System
... ...
@@ -10,7 +10,17 @@ Distribution:   Photon
10 10
 Source0:        https://www.freedesktop.org/software/libmbim/libmbim-%{version}.tar.xz
11 11
 %define sha1    libmbim=1162a4302be250ca3334f3bfd1e7d04770e4b4ff
12 12
 BuildRequires:  libgudev-devel
13
+BuildRequires:  libgudev
14
+BuildRequires:  systemd-devel
15
+BuildRequires:  systemd-libs
16
+BuildRequires:  python3
17
+BuildRequires:  gcc
18
+BuildRequires:  glib-devel
19
+BuildRequires:  pkg-config
20
+BuildRequires:  automake autoconf libtool
21
+
13 22
 Requires:       libgudev
23
+
14 24
 %description
15 25
 The libmbim package contains a GLib-based library for talking to WWAN modems
16 26
 and devices which speak the Mobile Interface Broadband Model (MBIM) protocol.
... ...
@@ -23,7 +33,7 @@ Requires:      libgudev-devel
23 23
 It contains the libraries and header files for libmbim
24 24
 
25 25
 %prep
26
-%setup -q
26
+%autosetup -p1
27 27
 
28 28
 %build
29 29
 %configure --disable-static
... ...
@@ -55,6 +65,8 @@ make  %{?_smp_mflags} check
55 55
 %{_datadir}/gtk-doc/*
56 56
 
57 57
 %changelog
58
+*   Mon Dec 14 2020 Susant Sahani<ssahani@vmware.com> 1.24.2-2
59
+-   Add build requires
58 60
 *   Wed Jul 08 2020 Gerrit Photon <photon-checkins@vmware.com> 1.24.2-1
59 61
 -   Automatic Version Bump
60 62
 *   Mon Dec 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.16.2-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Library for talking to WWAN modems and devices
2 2
 Name:           libqmi
3 3
 Version:        1.26.4
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 URL:            https://www.freedesktop.org
6 6
 License:        GPLv2
7 7
 Group:          Applications/System
... ...
@@ -10,7 +10,15 @@ Distribution:   Photon
10 10
 Source0:        https://www.freedesktop.org/software/libqmi/libqmi-%{version}.tar.xz
11 11
 %define sha1    libqmi=f42a4100d00f20bdee9e4137fa7de143729be41d
12 12
 BuildRequires:  libmbim-devel
13
+BuildRequires:  libgudev-devel
14
+BuildRequires:  systemd-devel
15
+BuildRequires:  systemd-libs
16
+BuildRequires:  gcc
17
+BuildRequires:  pkg-config
18
+BuildRequires:  automake autoconf libtool
19
+
13 20
 Requires:       libmbim
21
+Requires:       libgudev
14 22
 %description
15 23
 The libqmi package contains a GLib-based library for talking to WWAN modems
16 24
 and devices which speak the Qualcomm MSM Interface (QMI) protocol.
... ...
@@ -56,6 +64,8 @@ make  %{?_smp_mflags} check
56 56
 %{_datadir}/gtk-doc/*
57 57
 
58 58
 %changelog
59
+*   Mon Dec 14 2020 Susant Sahani <ssahani@vmware.com> 1.26.4-2
60
+-   Add build requires
59 61
 *   Wed Sep 09 2020 Gerrit Photon <photon-checkins@vmware.com> 1.26.4-1
60 62
 -   Automatic Version Bump
61 63
 *   Wed Jul 08 2020 Gerrit Photon <photon-checkins@vmware.com> 1.26.2-1
... ...
@@ -1,48 +1,56 @@
1 1
 Name:           minimal
2 2
 Summary:        Metapackage to install minimal profile
3 3
 Version:        0.1
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        Apache 2.0
6 6
 Group:          System Environment/Base
7 7
 URL:            https://vmware.github.io/photon/
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10
-Requires:       filesystem
11
-Requires:	grub2-theme
12
-Requires:	grub2-efi-image
13
-Requires:       pkg-config
14
-Requires:       bzip2
15
-Requires:       procps-ng
16
-Requires:       iana-etc
10
+
17 11
 Requires:       bc
18
-Requires:       libtool
19
-Requires:       net-tools
12
+Requires:       bridge-utils
13
+Requires:       bzip2
14
+Requires:       cloud-init
15
+Requires:       cpio
16
+Requires:       cracklib-dicts
17
+Requires:       dbus
18
+Requires:       docker
19
+Requires:       e2fsprogs
20
+Requires:       file
21
+Requires:       filesystem
20 22
 Requires:       findutils
23
+Requires:       gdbm
24
+Requires:       grep
25
+Requires:       grub2-efi-image
26
+Requires:       grub2-theme
27
+Requires:       gzip
28
+Requires:       iana-etc
21 29
 Requires:       iproute2
22 30
 Requires:       iptables
23 31
 Requires:       iputils
24
-Requires:       dbus
25
-Requires:       file
26
-Requires:       e2fsprogs
27
-Requires:       rpm
32
+Requires:       Linux-PAM
33
+Requires:       libtool
34
+Requires:       motd
35
+Requires:       net-tools
28 36
 Requires:       openssh
29
-Requires:       gdbm
30 37
 Requires:       photon-release
31 38
 Requires:       photon-repos
39
+Requires:       pkg-config
40
+Requires:       procps-ng
41
+Requires:       rpm
32 42
 Requires:       sed
33
-Requires:       grep
34
-Requires:       util-linux
35
-Requires:       cpio
36
-Requires:       gzip
37
-Requires:       vim
43
+Requires:       systemd
44
+Requires:       systemd-libs
45
+Requires:       systemd-pam
46
+Requires:       systemd-rpm-macros
47
+Requires:       systemd-udev
38 48
 Requires:       tdnf
39
-Requires:       docker
40
-Requires:       bridge-utils
41
-Requires:       cloud-init
42 49
 Requires:       tzdata
50
+Requires:       util-linux
51
+Requires:       vim
43 52
 Requires:       which
44
-Requires:       motd
45
-Requires:       cracklib-dicts
53
+
46 54
 %ifarch x86_64
47 55
 Requires:       open-vm-tools
48 56
 %endif
... ...
@@ -58,6 +66,8 @@ Metapackage to install minimal profile
58 58
 %defattr(-,root,root,0755)
59 59
 
60 60
 %changelog
61
+*   Mon Aug 17 2020 Susant Sahani <ssahani@vmware.com> 0.1-4
62
+-   Add systemd packages, sort requires packages in alphabetical order
61 63
 *   Thu Mar 12 2020 Alexey Makhalov <amakhalov@vmware.com> 0.1-3
62 64
 -   Add grub2 packages
63 65
 *   Thu Nov 15 2018 Alexey Makhalov <amakhalov@vmware.com> 0.1-2
... ...
@@ -2,6 +2,7 @@
2 2
 # VMware HotPlug automatization
3 3
 #
4 4
 # Automatically bring on-line added processors and memory.
5
-# 
6
-ACTION=="add", SUBSYSTEM=="cpu", ATTR{online}="1"
7
-SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory*[0-9]", TEST=="state", ATTR{state}="online"
5
+#
6
+
7
+SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
8
+SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", ATTR{state}="online"
8 9
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-diff -rupN systemd-245/src/resolve/resolved-conf.c systemd-245-dns-from-env/src/resolve/resolved-conf.c
2
-+++ systemd-245-dns-from-env/src/resolve/resolved-conf.c	2020-04-03 08:25:52.900081836 +0200
3
-@@ -382,7 +382,7 @@ int manager_parse_config_file(Manager *m
4
-                 return r;
5
- 
6
-         if (m->need_builtin_fallbacks) {
7
--                r = manager_parse_dns_server_string_and_warn(m, DNS_SERVER_FALLBACK, DNS_SERVERS);
8
-+                r = manager_parse_dns_server_string_and_warn(m, DNS_SERVER_FALLBACK, secure_getenv("DEFAULT_DNS_SERVERS") ?: DNS_SERVERS);
9
-                 if (r < 0)
10
-                         return r;
11
-         }
12 1
deleted file mode 100644
... ...
@@ -1,32 +0,0 @@
1
-diff -rupN systemd-245/src/udev/udev-builtin-net_id.c systemd-245-enoX-uses-instance-number-for-vmware-hv/src/udev/udev-builtin-net_id.c
2
-+++ systemd-245-enoX-uses-instance-number-for-vmware-hv/src/udev/udev-builtin-net_id.c	2020-04-03 23:07:25.264328010 +0200
3
-@@ -183,6 +183,28 @@ static int dev_pci_onboard(sd_device *de
4
-         if (idx == 0 && !naming_scheme_has(NAMING_ZERO_ACPI_INDEX))
5
-                 return -EINVAL;
6
- 
7
-+        if (idx >> 24) {
8
-+                unsigned domain, bus, slot, func;
9
-+                const char *device_sysname;
10
-+                /*
11
-+                 * VMware acpi_index format:
12
-+                 * |31 instance 24|23     16|15     8|7    3|2    0|
13
-+                 * |    number    | domain? |   bus  | slot | func |
14
-+                 *
15
-+                 * Let's use instance number to get enoX human readable
16
-+                 */
17
-+
18
-+                r = sd_device_get_sysname(names->pcidev, &device_sysname);
19
-+                if (r < 0)
20
-+                        return r;
21
-+
22
-+                if (sscanf(device_sysname, "%x:%x:%x.%u", &domain, &bus, &slot, &func) != 4)
23
-+                        return -ENOENT;
24
-+
25
-+                if ((idx & 0xffff) == ((bus << 8) | (slot << 3) | func))
26
-+                        idx >>= 24;
27
-+        }
28
-+
29
-         /* Some BIOSes report rubbish indexes that are excessively high (2^24-1 is an index VMware likes to
30
-          * report for example). Let's define a cut-off where we don't consider the index reliable anymore. We
31
-          * pick some arbitrary cut-off, which is somewhere beyond the realistic number of physical network
32 1
new file mode 100644
... ...
@@ -0,0 +1,12 @@
0
+diff --color -rupN systemd-stable-246.1/src/resolve/resolved-conf.c systemd-stable-246.1-default-dns-from-env/src/resolve/resolved-conf.c
1
+--- systemd-stable-246.1/src/resolve/resolved-conf.c	2020-08-07 15:09:53.000000000 +0000
2
+@@ -402,7 +402,7 @@ int manager_parse_config_file(Manager *m
3
+                 return r;
4
+ 
5
+         if (m->need_builtin_fallbacks) {
6
+-                r = manager_parse_dns_server_string_and_warn(m, DNS_SERVER_FALLBACK, DNS_SERVERS);
7
++                r = manager_parse_dns_server_string_and_warn(m, DNS_SERVER_FALLBACK, secure_getenv("DEFAULT_DNS_SERVERS") ?: DNS_SERVERS);
8
+                 if (r < 0)
9
+                         return r;
10
+         }
0 11
new file mode 100644
... ...
@@ -0,0 +1,32 @@
0
+diff --color -rupN systemd-stable-246.1/src/udev/udev-builtin-net_id.c systemd-stable-246.1-enoX-uses-instance-number/src/udev/udev-builtin-net_id.c
1
+--- systemd-stable-246.1/src/udev/udev-builtin-net_id.c	2020-08-07 15:09:53.000000000 +0000
2
+@@ -183,6 +183,28 @@ static int dev_pci_onboard(sd_device *de
3
+         if (idx == 0 && !naming_scheme_has(NAMING_ZERO_ACPI_INDEX))
4
+                 return -EINVAL;
5
+ 
6
++        if (idx >> 24) {
7
++                unsigned domain, bus, slot, func;
8
++                const char *device_sysname;
9
++                /*
10
++                 * VMware acpi_index format:
11
++                 * |31 instance 24|23     16|15     8|7    3|2    0|
12
++                 * |    number    | domain? |   bus  | slot | func |
13
++                 *
14
++                 * Let's use instance number to get enoX human readable
15
++                 */
16
++
17
++                r = sd_device_get_sysname(names->pcidev, &device_sysname);
18
++                if (r < 0)
19
++                        return r;
20
++
21
++                if (sscanf(device_sysname, "%x:%x:%x.%u", &domain, &bus, &slot, &func) != 4)
22
++                        return -ENOENT;
23
++
24
++                                if ((idx & 0xffff) == ((bus << 8) | (slot << 3) | func))
25
++                                        idx >>= 24;
26
++        }
27
++
28
+         /* Some BIOSes report rubbish indexes that are excessively high (2^24-1 is an index VMware likes to
29
+          * report for example). Let's define a cut-off where we don't consider the index reliable anymore. We
30
+          * pick some arbitrary cut-off, which is somewhere beyond the realistic number of physical network
... ...
@@ -1,7 +1,7 @@
1 1
 Name:             systemd
2 2
 URL:              http://www.freedesktop.org/wiki/Software/systemd/
3
-Version:          245.5
4
-Release:          3%{?dist}
3
+Version:          247
4
+Release:          1%{?dist}
5 5
 License:          LGPLv2+ and GPLv2+ and MIT
6 6
 Summary:          System and Service Manager
7 7
 
... ...
@@ -10,7 +10,7 @@ Vendor:           VMware, Inc.
10 10
 Distribution:     Photon
11 11
 
12 12
 Source0:          %{name}-stable-%{version}.tar.gz
13
-%define sha1      systemd=eb92a3cf4dac32a5e125aff2d90a0d6eb8a875f5
13
+%define sha1      systemd=352aa4ebb76385af788dc2037a8fd138aaec56b3
14 14
 Source1:          99-vmware-hotplug.rules
15 15
 Source2:          50-security-hardening.conf
16 16
 Source3:          systemd.cfg
... ...
@@ -18,20 +18,24 @@ Source4:          99-dhcp-en.network
18 18
 Source5:          10-rdrand-rng.conf
19 19
 Source6:          10-defaults.preset
20 20
 
21
-Patch0:           systemd-245-enoX-uses-instance-number-for-vmware-hv.patch
22
-Patch1:           systemd-245-default-dns-from-env.patch
23
-Patch2:           util-return-the-correct-correct-wd-from-inotify-help.patch
21
+Patch0:           systemd-247-enoX-uses-instance-number-for-vmware-hv.patch
22
+Patch1:           systemd-247-default-dns-from-env.patch
24 23
 
25 24
 Requires:         Linux-PAM
26 25
 Requires:         bzip2
26
+Requires:         curl
27 27
 Requires:         elfutils
28 28
 Requires:         filesystem >= 1.1
29 29
 Requires:         glib
30 30
 Requires:         gnutls
31 31
 Requires:         kmod
32
+Requires:         %{name}-pam = %{version}-%{release}
33
+Requires:         %{name}-rpm-macros = %{version}-%{release}
34
+Requires:         %{name}-libs = %{version}-%{release}
32 35
 Requires:         libacl
33 36
 Requires:         libcap
34 37
 Requires:         libgcrypt
38
+Requires:         libmicrohttpd
35 39
 Requires:         libseccomp
36 40
 Requires:         libselinux
37 41
 Requires:         lz4
... ...
@@ -39,6 +43,7 @@ Requires:         pcre
39 39
 Requires:         xz
40 40
 
41 41
 BuildRequires:   bzip2-devel
42
+BuildRequires:   curl-devel
42 43
 BuildRequires:   docbook-xml
43 44
 BuildRequires:   docbook-xsl
44 45
 BuildRequires:   gettext
... ...
@@ -58,6 +63,7 @@ BuildRequires:   libxslt
58 58
 BuildRequires:   Linux-PAM-devel
59 59
 BuildRequires:   lz4-devel
60 60
 BuildRequires:   meson
61
+BuildRequires:   libmicrohttpd-devel
61 62
 BuildRequires:   ninja-build
62 63
 BuildRequires:   openssl-devel
63 64
 BuildRequires:   pcre-devel
... ...
@@ -86,14 +92,89 @@ runtime directories and settings, and daemons to manage simple network
86 86
 configuration, network time synchronization, log forwarding, and name
87 87
 resolution.
88 88
 
89
+%package libs
90
+Summary:        systemd libraries
91
+License:        LGPLv2+ and MIT
92
+Provides:       nss-myhostname = 0.4
93
+Requires(post): coreutils
94
+Requires(post): sed
95
+Requires(post): grep
96
+
97
+%description libs
98
+Libraries for systemd and udev.
99
+
100
+%package pam
101
+Summary:        systemd PAM module
102
+Requires:       %{name} = %{version}-%{release}
103
+
104
+%description pam
105
+Systemd PAM module registers the session with systemd-logind.
106
+
107
+%package rpm-macros
108
+Summary:        Macros that define paths and scriptlets related to systemd
109
+BuildArch:      noarch
110
+
111
+%description rpm-macros
112
+Just the definitions of rpm macros.
113
+
89 114
 %package devel
90 115
 Summary:        Development headers for systemd
91
-Requires:       %{name} = %{version}-%{release}
116
+Requires:       %{name}-libs = %{version}-%{release}
117
+Requires:       %{name}-pam = %{version}-%{release}
92 118
 Requires:       glib-devel
119
+Provides:       libudev-devel = %{version}
93 120
 
94 121
 %description devel
95 122
 Development headers for developing applications linking to libsystemd
96 123
 
124
+%package udev
125
+Summary: Rule-based device node and kernel event manager
126
+License:        LGPLv2+
127
+
128
+Requires:       %{name} = %{version}-%{release}
129
+Requires(post):   systemd
130
+Requires(preun):  systemd
131
+Requires(postun): systemd
132
+Requires(post):   grep
133
+Requires:         kmod
134
+Provides:         udev = %{version}
135
+
136
+%description udev
137
+This package contains systemd-udev and the rules and hardware database
138
+needed to manage device nodes. This package is necessary on physical
139
+machines and in virtual machines, but not in containers.
140
+
141
+%package container
142
+Summary: Tools for containers and VMs
143
+Requires:       %{name} = %{version}-%{release}
144
+Requires(post):   systemd
145
+Requires(preun):  systemd
146
+Requires(postun): systemd
147
+License:          LGPLv2+
148
+
149
+%description container
150
+Systemd tools to spawn and manage containers and virtual machines.
151
+
152
+This package contains systemd-nspawn, machinectl, systemd-machined,
153
+and systemd-importd.
154
+
155
+%package journal-remote
156
+Summary:        Tools to send journal events over the network
157
+Requires:       %{name} = %{version}-%{release}
158
+License:        LGPLv2+
159
+Requires(post):   systemd
160
+Requires(preun):  systemd
161
+Requires(postun): systemd
162
+Requires:         libmicrohttpd
163
+Provides:         systemd-journal-gateway = %{version}-%{release}
164
+
165
+%description journal-remote
166
+Programs to forward journal entries over the network, using encrypted HTTP,
167
+and to write journal files from serialized journal contents.
168
+
169
+This package contains systemd-journal-gatewayd,
170
+systemd-journal-remote, and systemd-journal-upload.
171
+
97 172
 %package lang
98 173
 Summary:        Language pack for systemd
99 174
 Requires:       %{name} = %{version}-%{release}
... ...
@@ -101,15 +182,20 @@ Requires:       %{name} = %{version}-%{release}
101 101
 %description lang
102 102
 Language pack for systemd
103 103
 
104
+%package tests
105
+Summary:       Internal unit tests for systemd
106
+Requires:      %{name} = %{version}-%{release}
107
+License:       LGPLv2+
108
+
109
+%description tests
110
+"Installed tests" that are usually run as part of the build system.
111
+They can be useful to test systemd internals.
112
+
104 113
 %prep
105
-%setup -n %{name}-stable-%{version}
114
+%autosetup -n %{name}-stable-%{version} -p1
106 115
 
107 116
 sed -i "s#\#DefaultTasksMax=512#DefaultTasksMax=infinity#g" src/core/system.conf.in
108 117
 
109
-%patch0 -p1
110
-%patch1 -p1
111
-%patch2 -p1
112
-
113 118
 %build
114 119
 if [ %{_host} != %{_build} ]; then
115 120
 CPU_FAMILY=""
... ...
@@ -147,7 +233,10 @@ fi
147 147
 
148 148
 CONFIGURE_OPTS=(
149 149
        --prefix=%{_prefix}
150
+       -Dmode=release
150 151
        -Dkmod=true
152
+       -Duser-path=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
153
+       -Dservice-watchdog=
151 154
        -Dblkid=true
152 155
        -Dseccomp=true
153 156
        -Ddefault-dnssec=no
... ...
@@ -166,9 +255,13 @@ CONFIGURE_OPTS=(
166 166
        -Dpam=true
167 167
        -Dpolkit=true
168 168
        -Dselinux=true
169
+       -Dlibcurl=true
170
+       -Dgnutls=true
171
+       -Db_ndebug=false
169 172
        -Dhwdb=true
170 173
        -Ddefault-kill-user-processes=false
171 174
        -Dtests=unsafe
175
+       -Dinstall-tests=true
172 176
        -Dnobody-user=nobody
173 177
        -Dnobody-group=nobody
174 178
        -Dsplit-usr=false
... ...
@@ -178,6 +271,8 @@ CONFIGURE_OPTS=(
178 178
        -Ddefault-hierarchy=hybrid
179 179
        -Dsysvinit-path=/etc/rc.d/init.d
180 180
        -Drc-local=/etc/rc.d/rc.local
181
+       -Dfallback-hostname=photon
182
+       -Doomd=true
181 183
        -Dversion-tag=v%{version}-%{release}
182 184
        $CROSS_COMPILE_CONFIG
183 185
 )
... ...
@@ -193,12 +288,11 @@ export LANG=en_US.UTF-8
193 193
 export LC_ALL=en_US.UTF-8
194 194
 DESTDIR=%{buildroot} ninja -C build install
195 195
 
196
-install -vdm 755 %{buildroot}/sbin
197
-for tool in runlevel reboot shutdown poweroff halt telinit; do
198
-     ln -sfv ../bin/systemctl %{buildroot}/sbin/${tool}
199
-done
196
+sed -i '/srv/d' %{buildroot}/usr/lib/tmpfiles.d/home.conf
197
+sed -i "s:0775 root lock:0755 root root:g" %{buildroot}/usr/lib/tmpfiles.d/legacy.conf
198
+sed -i "s:NamePolicy=kernel database onboard slot path:NamePolicy=kernel database:g" %{buildroot}/usr/lib/systemd/network/99-default.link
199
+sed -i "s:#LLMNR=yes:LLMNR=false:g" %{buildroot}/etc/systemd/resolved.conf
200 200
 
201
-ln -sfv ../lib/systemd/systemd %{buildroot}/sbin/init
202 201
 rm -f %{buildroot}%{_var}/log/README
203 202
 mkdir -p %{buildroot}%{_localstatedir}/opt/journal/log
204 203
 mkdir -p %{buildroot}%{_localstatedir}/log
... ...
@@ -232,10 +326,9 @@ systemctl daemon-reexec &>/dev/null || {
232 232
 
233 233
 journalctl --update-catalog &>/dev/null || :
234 234
 systemd-tmpfiles --create &>/dev/null || :
235
-udevadm hwdb --update &>/dev/null || :
236 235
 
237 236
 # See https://github.com/systemd/systemd/blob/master/NEWS#L1273
238
-if [ $1 -gt 0 ] ; then
237
+if [ $1 -eq 1 ] ; then
239 238
         systemctl preset-all &>/dev/null || :
240 239
         systemctl --global preset-all &>/dev/null || :
241 240
 fi
... ...
@@ -243,6 +336,15 @@ fi
243 243
 %clean
244 244
 rm -rf %{buildroot}/*
245 245
 
246
+%post udev
247
+udevadm hwdb --update &>/dev/null || :
248
+
249
+%preun udev
250
+%systemd_preun systemd-udev{d,-settle,-trigger}.service systemd-udevd-{control,kernel}.socket systemd-timesyncd.service
251
+
252
+%postun udev
253
+%systemd_postun_with_restart systemd-udevd.service
254
+
246 255
 %files
247 256
 %defattr(-,root,root)
248 257
 %dir %{_sysconfdir}/systemd
... ...
@@ -257,9 +359,10 @@ rm -rf %{buildroot}/*
257 257
 %{_sysconfdir}/sysctl.d/50-security-hardening.conf
258 258
 %{_sysconfdir}/xdg/systemd
259 259
 %{_sysconfdir}/rc.d/init.d/README
260
-%{_sysconfdir}/systemd/sleep.conf
261
-%{_sysconfdir}/pam.d/systemd-user
262 260
 
261
+%config(noreplace) %{_sysconfdir}/oomd.conf
262
+
263
+%config(noreplace) %{_sysconfdir}/systemd/sleep.conf
263 264
 %config(noreplace) %{_sysconfdir}/systemd/system.conf
264 265
 %config(noreplace) %{_sysconfdir}/systemd/user.conf
265 266
 %config(noreplace) %{_sysconfdir}/systemd/logind.conf
... ...
@@ -275,30 +378,73 @@ rm -rf %{buildroot}/*
275 275
 %endif
276 276
 %config(noreplace) %{_sysconfdir}/systemd/network/99-dhcp-en.network
277 277
 
278
-%dir %{_sysconfdir}/udev
279
-%dir %{_sysconfdir}/udev/rules.d
280
-%dir %{_sysconfdir}/udev/hwdb.d
281
-
282
-%{_sysconfdir}/udev/rules.d/99-vmware-hotplug.rules
283
-%config(noreplace) %{_sysconfdir}/udev/udev.conf
284 278
 %config(noreplace) /boot/systemd.cfg
285 279
 
280
+%{_sbindir}/halt
281
+%{_sbindir}/init
282
+%{_sbindir}/poweroff
283
+%{_sbindir}/reboot
284
+%{_sbindir}/runlevel
285
+%{_sbindir}/shutdown
286
+%{_sbindir}/telinit
287
+%{_sbindir}/resolvconf
288
+
289
+%{_bindir}/busctl
290
+%{_bindir}/coredumpctl
291
+%{_bindir}/hostnamectl
292
+%{_bindir}/journalctl
293
+%{_bindir}/localectl
294
+%{_bindir}/loginctl
295
+%{_bindir}/networkctl
296
+%{_bindir}/portablectl
297
+%{_bindir}/resolvectl
298
+%{_bindir}/systemctl
299
+%{_bindir}/systemd-analyze
300
+%{_bindir}/systemd-ask-password
301
+%{_bindir}/systemd-cat
302
+%{_bindir}/systemd-cgls
303
+%{_bindir}/systemd-cgtop
304
+%{_bindir}/systemd-delta
305
+%{_bindir}/systemd-detect-virt
306
+%{_bindir}/systemd-escape
307
+%{_bindir}/systemd-id128
308
+%{_bindir}/systemd-inhibit
309
+%{_bindir}/systemd-machine-id-setup
310
+%{_bindir}/systemd-mount
311
+%{_bindir}/systemd-notify
312
+%{_bindir}/systemd-path
313
+%{_bindir}/systemd-resolve
314
+%{_bindir}/systemd-run
315
+%{_bindir}/systemd-socket-activate
316
+%{_bindir}/systemd-stdio-bridge
317
+%{_bindir}/systemd-tmpfiles
318
+%{_bindir}/systemd-tty-ask-password-agent
319
+%{_bindir}/systemd-umount
320
+%{_bindir}/timedatectl
321
+%{_bindir}/userdbctl
322
+%{_bindir}/systemd-repart
323
+%{_bindir}/systemd-dissect
324
+%{_bindir}/oomctl
325
+
326
+%{_libdir}/tmpfiles.d/etc.conf
327
+%{_libdir}/tmpfiles.d/home.conf
328
+%{_libdir}/tmpfiles.d/journal-nocow.conf
329
+%{_libdir}/tmpfiles.d/legacy.conf
330
+%{_libdir}/tmpfiles.d/portables.conf
331
+%{_libdir}/tmpfiles.d/static-nodes-permissions.conf
332
+%{_libdir}/tmpfiles.d/systemd-nologin.conf
333
+%{_libdir}/tmpfiles.d/systemd-tmp.conf
334
+%{_libdir}/tmpfiles.d/systemd.conf
335
+%{_libdir}/tmpfiles.d/tmp.conf
336
+%{_libdir}/tmpfiles.d/var.conf
337
+%{_libdir}/tmpfiles.d/x11.conf
338
+
286 339
 %{_libdir}/environment.d/99-environment.conf
287 340
 %exclude %{_datadir}/locale
288 341
 %{_libdir}/binfmt.d
289
-%{_libdir}/kernel
290
-%{_libdir}/modules-load.d
291 342
 %{_libdir}/rpm
292
-%{_libdir}/*.so*
293 343
 %{_libdir}/sysctl.d
294 344
 %{_libdir}/systemd
295
-%{_libdir}/tmpfiles.d
296
-%{_libdir}/udev
297
-%{_libdir}/security/pam_systemd.so
298
-%{_libdir}/modprobe.d/systemd.conf
299
-%{_bindir}/*
300
-%{_sbindir}/*
301
-/sbin/*
302 345
 
303 346
 %{_datadir}/bash-completion/*
304 347
 %{_datadir}/factory/*
... ...
@@ -327,6 +473,7 @@ rm -rf %{buildroot}/*
327 327
 %ghost %dir %attr(0755,-,-) /etc/systemd/system
328 328
 
329 329
 %files devel
330
+%defattr(-,root,root)
330 331
 %dir %{_includedir}/systemd
331 332
 %{_libdir}/libudev.so
332 333
 %{_libdir}/libsystemd.so
... ...
@@ -337,15 +484,183 @@ rm -rf %{buildroot}/*
337 337
 %{_datadir}/pkgconfig/systemd.pc
338 338
 %{_datadir}/pkgconfig/udev.pc
339 339
 
340
+%files udev
341
+%defattr(-,root,root)
342
+%dir %{_sysconfdir}/udev
343
+%{_sysconfdir}/udev/rules.d/99-vmware-hotplug.rules
344
+%dir %{_sysconfdir}/kernel
345
+%dir %{_sysconfdir}/modules-load.d
346
+%{_sysconfdir}/systemd/pstore.conf
347
+%{_sysconfdir}/systemd/sleep.conf
348
+%{_sysconfdir}/systemd/timesyncd.conf
349
+%{_sysconfdir}/udev/udev.conf
350
+%{_libdir}/tmpfiles.d/systemd-pstore.conf
351
+%{_bindir}/bootctl
352
+%{_bindir}/kernel-install
353
+%{_bindir}/systemd-hwdb
354
+%{_bindir}/udevadm
355
+
356
+%{_libdir}/udev/v4l_id
357
+%{_libdir}/kernel
358
+%{_libdir}/modprobe.d
359
+%{_libdir}/modules-load.d
360
+%{_libdir}/systemd/network/99-default.link
361
+%{_libdir}/systemd/ntp-units.d/80-systemd-timesync.list
362
+%{_libdir}/systemd/system-generators/systemd-bless-boot-generator
363
+%{_libdir}/systemd/system-generators/systemd-hibernate-resume-generator
364
+%{_libdir}/systemd/system-sleep
365
+%{_libdir}/systemd/system/hibernate.target
366
+%{_libdir}/systemd/system/hybrid-sleep.target
367
+%{_libdir}/systemd/system/initrd-udevadm-cleanup-db.service
368
+%{_libdir}/systemd/system/kmod-static-nodes.service
369
+%{_libdir}/systemd/system/quotaon.service
370
+%{_libdir}/systemd/system/sleep.target
371
+%{_libdir}/systemd/system/sockets.target.wants/systemd-udevd-control.socket
372
+%{_libdir}/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket
373
+%{_libdir}/systemd/system/suspend-then-hibernate.target
374
+%{_libdir}/systemd/system/suspend.target
375
+%{_libdir}/systemd/system/sysinit.target.wants/kmod-static-nodes.service
376
+%{_libdir}/systemd/system/sysinit.target.wants/systemd-boot-system-token.service
377
+%{_libdir}/systemd/system/sysinit.target.wants/systemd-hwdb-update.service
378
+%{_libdir}/systemd/system/sysinit.target.wants/systemd-modules-load.service
379
+%{_libdir}/systemd/system/sysinit.target.wants/systemd-random-seed.service
380
+%{_libdir}/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
381
+%{_libdir}/systemd/system/sysinit.target.wants/systemd-udevd.service
382
+%{_libdir}/systemd/system/systemd-backlight@.service
383
+%{_libdir}/systemd/system/systemd-bless-boot.service
384
+%{_libdir}/systemd/system/systemd-boot-system-token.service
385
+%{_libdir}/systemd/system/systemd-fsck-root.service
386
+%{_libdir}/systemd/system/systemd-fsck@.service
387
+%{_libdir}/systemd/system/systemd-hibernate-resume@.service
388
+%{_libdir}/systemd/system/systemd-hibernate.service
389
+%{_libdir}/systemd/system/systemd-hwdb-update.service
390
+%{_libdir}/systemd/system/systemd-hybrid-sleep.service
391
+%{_libdir}/systemd/system/systemd-modules-load.service
392
+%{_libdir}/systemd/system/systemd-pstore.service
393
+%{_libdir}/systemd/system/systemd-quotacheck.service
394
+%{_libdir}/systemd/system/systemd-random-seed.service
395
+%{_libdir}/systemd/system/systemd-remount-fs.service
396
+%{_libdir}/systemd/system/systemd-rfkill.service
397
+%{_libdir}/systemd/system/systemd-rfkill.socket
398
+%{_libdir}/systemd/system/systemd-suspend-then-hibernate.service
399
+%{_libdir}/systemd/system/systemd-suspend.service
400
+%{_libdir}/systemd/system/systemd-timesyncd.service
401
+%{_libdir}/systemd/system/systemd-tmpfiles-setup-dev.service
402
+%{_libdir}/systemd/system/systemd-udev-settle.service
403
+%{_libdir}/systemd/system/systemd-udevd-control.socket
404
+%{_libdir}/systemd/system/systemd-udevd-kernel.socket
405
+%{_libdir}/systemd/system/systemd-udevd.service
406
+%{_libdir}/systemd/system/systemd-vconsole-setup.service
407
+%{_libdir}/systemd/system/systemd-volatile-root.service
408
+%{_libdir}/systemd/systemd-backlight
409
+%{_libdir}/systemd/systemd-bless-boot
410
+%{_libdir}/systemd/systemd-fsck
411
+%{_libdir}/systemd/systemd-growfs
412
+%{_libdir}/systemd/systemd-hibernate-resume
413
+%{_libdir}/systemd/systemd-makefs
414
+%{_libdir}/systemd/systemd-modules-load
415
+%{_libdir}/systemd/systemd-pstore
416
+%{_libdir}/systemd/systemd-quotacheck
417
+%{_libdir}/systemd/systemd-random-seed
418
+%{_libdir}/systemd/systemd-remount-fs
419
+%{_libdir}/systemd/systemd-rfkill
420
+%{_libdir}/systemd/systemd-sleep
421
+%{_libdir}/systemd/systemd-timesyncd
422
+%{_libdir}/systemd/systemd-udevd
423
+%{_libdir}/systemd/systemd-vconsole-setup
424
+%{_libdir}/systemd/systemd-volatile-root
425
+
426
+%dir %{_libdir}/udev
427
+%{_libdir}/udev/ata_id
428
+%{_libdir}/udev/cdrom_id
429
+%{_libdir}/udev/fido_id
430
+
431
+%dir %{_libdir}/udev/hwdb.d
432
+%{_libdir}/udev/hwdb.d/*
433
+%{_libdir}/udev/mtd_probe
434
+
435
+%dir %{_libdir}/udev/rules.d
436
+%{_libdir}/udev/rules.d/*
437
+%{_libdir}/udev/scsi_id
438
+
439
+%{_datadir}/bash-completion/completions/bootctl
440
+%{_datadir}/bash-completion/completions/kernel-install
441
+%{_datadir}/bash-completion/completions/udevadm
442
+
443
+%{_datadir}/dbus-1/system-services/org.freedesktop.timesync1.service
444
+%{_datadir}/dbus-1/system.d/org.freedesktop.timesync1.conf
445
+
446
+%{_datadir}/zsh/site-functions/_bootctl
447
+%{_datadir}/zsh/site-functions/_kernel-install
448
+%{_datadir}/zsh/site-functions/_udevadm
449
+
450
+%files libs
451
+%defattr(-,root,root)
452
+%{_libdir}/libnss_myhostname.so.2
453
+%{_libdir}/libnss_mymachines.so.2
454
+%{_libdir}/libnss_resolve.so.2
455
+%{_libdir}/libnss_systemd.so.2
456
+%{_libdir}/libsystemd.so.0
457
+%{_libdir}/libsystemd.so.0.30.0
458
+%{_libdir}/libudev.so.1.7.0
459
+%{_libdir}/libudev.so.1
460
+
461
+%files pam
462
+%defattr(-,root,root)
463
+%{_libdir}/security/pam_systemd.so
464
+%{_libdir}/pam.d/systemd-user
465
+
466
+%files container
467
+%defattr(-,root,root)
468
+%{_bindir}/systemd-nspawn
469
+%{_bindir}/machinectl
470
+
471
+%{_libdir}/systemd/systemd-machined
472
+%{_libdir}/systemd/system/systemd-machined.service
473
+%{_libdir}/systemd/system/systemd-nspawn@.service
474
+%{_libdir}/systemd/system/dbus-org.freedesktop.machine1.service
475
+%{_libdir}/systemd/system/var-lib-machines.mount
476
+%{_libdir}/systemd/system/machine.slice
477
+%{_libdir}/systemd/system/machines.target.wants
478
+%{_libdir}/tmpfiles.d/systemd-nspawn.conf
479
+
480
+%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf
481
+%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
482
+%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
483
+
484
+%files journal-remote
485
+%defattr(-,root,root)
486
+%config(noreplace) %{_sysconfdir}/systemd/journal-upload.conf
487
+%config(noreplace) %{_sysconfdir}/systemd/journal-remote.conf
488
+
489
+%{_libdir}/systemd/systemd-journal-gatewayd
490
+%{_libdir}/systemd/systemd-journal-remote
491
+%{_libdir}/systemd/systemd-journal-upload
492
+
493
+%{_libdir}/systemd/system/systemd-journal-gatewayd.service
494
+%{_libdir}/systemd/system/systemd-journal-gatewayd.socket
495
+%{_libdir}/systemd/system/systemd-journal-remote.service
496
+%{_libdir}/systemd/system/systemd-journal-remote.socket
497
+%{_libdir}/systemd/system/systemd-journal-upload.service
498
+
499
+%files rpm-macros
500
+%{_libdir}/rpm/macros.d
501
+
502
+%files tests
503
+%{_libdir}/systemd/tests
504
+
340 505
 %files lang -f ../%{name}.lang
341 506
 
342 507
 %changelog
508
+*    Mon Dec 14 2020 Susant Sahani <ssahani@vmware.com>  247-1
509
+-    Upgrade to 247
510
+-    Split out systemd package to multiple packages
343 511
 *    Tue Oct 27 2020 Susant Sahani <ssahani@vmware.com>  245.5-3
344 512
 -    util: return the correct correct wd from inotify helpers
345 513
 *    Sun Aug 16 2020 Susant Sahani <ssahani@vmware.com>  245.5-2
346 514
 -    Drop meson macro
347 515
 *    Tue May 12 2020 Susant Sahani <ssahani@vmware.com>  245.5-1
348
--    Update to version 245.4 stable
516
+-    Update to version 245.5 stable
349 517
 *    Mon May 04 2020 Alexey Makhalov <amakhalov@vmware.com> 239-14
350 518
 -    Fix compilation issue with gcc-8.4.0
351 519
 -    Build with debug info.
... ...
@@ -27,6 +27,9 @@
27 27
         "iptables",
28 28
         "Linux-PAM",
29 29
         "systemd",
30
+        "systemd-libs",
31
+        "systemd-pam",
32
+        "systemd-udev",
30 33
         "dbus",
31 34
         "file",
32 35
         "lsscsi",
... ...
@@ -688,6 +688,15 @@ swig.deploy=optional
688 688
 systemd.package-name=systemd
689 689
 systemd.deploy=micro,minimal,iso
690 690
 
691
+systemd.package-name=systemd-pam
692
+systemd.deploy=micro,minimal,iso
693
+
694
+systemd.package-name=systemd-libs
695
+systemd.deploy=micro,minimal,iso
696
+
697
+systemd.package-name=systemd-udev
698
+systemd.deploy=micro,minimal,iso
699
+
691 700
 tar.package-name=tar
692 701
 tar.deploy=iso,optional
693 702
 
... ...
@@ -279,6 +279,12 @@
279 279
         <package id="sudo"/>
280 280
         <package id="swig"/>
281 281
         <package id="systemd"/>
282
+        <package id="systemd-libs"
283
+                 spec="systemd"/>
284
+        <package id="systemd-pam"
285
+                 spec="systemd"/>
286
+        <package id="systemd-udev"
287
+                 spec="systemd"/>
282 288
         <package id="tar"/>
283 289
         <package id="tcpdump"/>
284 290
         <package id="tdnf"/>
... ...
@@ -448,7 +454,7 @@
448 448
         <pkgref id="util-linux"/>
449 449
         <pkgref id="xz"/>
450 450
         <pkgref id="zlib"/>
451
-    </package-group> 
451
+    </package-group>
452 452
     <package-group id="minimal">
453 453
         <pkgref id="attr"/>
454 454
         <pkgref id="bash"/>