]> git.pld-linux.org Git - packages/polkit.git/commitdiff
- fix building with elogind master
authorMarcin Krol <hawk@tld-linux.org>
Tue, 23 Apr 2024 20:16:05 +0000 (22:16 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 23 Apr 2024 20:16:05 +0000 (22:16 +0200)
elogind-build.patch [new file with mode: 0644]
polkit.spec

diff --git a/elogind-build.patch b/elogind-build.patch
new file mode 100644 (file)
index 0000000..b02d80c
--- /dev/null
@@ -0,0 +1,14 @@
+diff -ur polkit-124.orig/meson.build polkit-124/meson.build
+--- polkit-124.orig/meson.build        2024-01-17 16:43:53.000000000 +0100
++++ polkit-124/meson.build     2024-04-23 22:11:14.035586601 +0200
+@@ -217,9 +217,9 @@
+     systemd_dep = dependency('systemd', not_found_message: 'systemd required but not found, please provide a valid systemd user unit dir or disable it')
+     # FIXME: systemd.pc file does not use variables with relative paths, so `define_variable` cannot be used
+     systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
++    systemd_sysusers_dir = systemd_dep.get_pkgconfig_variable('sysusers_dir', default: '/usr/lib/sysusers.d')
+   endif
+-  systemd_sysusers_dir = systemd_dep.get_pkgconfig_variable('sysusers_dir', default: '/usr/lib/sysusers.d')
+ endif
+ config_h.set('HAVE_LIBSYSTEMD', enable_logind)
index 3bd966af656dc045743af694dfa71cad614e86bf..82e1068a2735e0afb53350d5c49ba41d87e8d3b2 100644 (file)
@@ -19,6 +19,7 @@ Group:                Libraries
 Source0:       https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/%{name}-%{version}.tar.bz2
 # Source0-md5: 5cb95118e21d0cf2348069847c3879e8
 Patch0:                systemd-fallback.patch
+Patch1:                elogind-build.patch
 URL:           https://www.freedesktop.org/wiki/Software/polkit
 BuildRequires: dbus-devel
 BuildRequires: docbook-dtd412-xml
@@ -114,6 +115,7 @@ Pliki nagłówkowe PolicyKit.
 %if %{with consolekit} && (%{with systemd} || %{with elogind})
 %patch0 -p1
 %endif
+%patch1 -p1
 
 %build
 %meson build \
@@ -170,7 +172,7 @@ fi
 %dir %{_sysconfdir}/polkit-1
 %attr(700,polkitd,root) %dir %{_sysconfdir}/polkit-1/rules.d
 %{_prefix}/lib/pam.d/polkit-1
-/usr/lib/sysusers.d/polkit.conf
+%{?with_systemd/usr/lib/sysusers.d/polkit.conf}
 %dir %{_datadir}/polkit-1
 %{_datadir}/polkit-1/policyconfig-1.dtd
 %{_datadir}/polkit-1/actions
This page took 0.156396 seconds and 4 git commands to generate.