polkit ver. bump
This commit is contained in:
@@ -20,7 +20,6 @@ def setup():
|
|||||||
-Dpam_module_dir=/lib/security \
|
-Dpam_module_dir=/lib/security \
|
||||||
-Dexamples=true \
|
-Dexamples=true \
|
||||||
-Dauthfw='pam' \
|
-Dauthfw='pam' \
|
||||||
-Djs_engine='duktape' \
|
|
||||||
-Dsession_tracking=elogind")
|
-Dsession_tracking=elogind")
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
|||||||
@@ -0,0 +1,99 @@
|
|||||||
|
https://github.com/polkit-org/polkit/commit/690e6972ffe30473dacbfaa81158f5507cef99f6
|
||||||
|
https://github.com/polkit-org/polkit/commit/247952425829e41a47e83b2e433b9703713739f5
|
||||||
|
|
||||||
|
From 690e6972ffe30473dacbfaa81158f5507cef99f6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Rybar <jrybar@redhat.com>
|
||||||
|
Date: Wed, 1 Oct 2025 13:23:45 +0200
|
||||||
|
Subject: [PATCH] DBusMock: CI broken after stop_dbus() removal
|
||||||
|
|
||||||
|
Because stop_dbus() was removed from DBusMock implementation, nothing
|
||||||
|
actually stops the system bus in testing environment in the wrapper.py
|
||||||
|
child process, hence the test times out into failure.
|
||||||
|
Adding simple kill(<dbus_PID>) in atexit() is sufficient, but the
|
||||||
|
original implementation in DBusMock seemed more graceful, so it was
|
||||||
|
pulled back in.
|
||||||
|
---
|
||||||
|
test/wrapper.py | 34 +++++++++++++++++++++++++++++++++-
|
||||||
|
1 file changed, 33 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/test/wrapper.py b/test/wrapper.py
|
||||||
|
index 14f4abdb..dc62f702 100755
|
||||||
|
--- a/test/wrapper.py
|
||||||
|
+++ b/test/wrapper.py
|
||||||
|
@@ -5,6 +5,8 @@
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
+import signal
|
||||||
|
+import time
|
||||||
|
|
||||||
|
import dbus
|
||||||
|
import dbus.mainloop.glib
|
||||||
|
@@ -36,6 +38,36 @@ def setup_test_namespace(data_dir):
|
||||||
|
print("Python 3.12 is required for os.unshare(), skipping")
|
||||||
|
sys.exit(77)
|
||||||
|
|
||||||
|
+
|
||||||
|
+def stop_dbus(pid: int) -> None:
|
||||||
|
+ """Stop a D-Bus daemon
|
||||||
|
+
|
||||||
|
+ If DBus daemon is not explicitly killed in the testing environment
|
||||||
|
+ the test times out and reports as failed.
|
||||||
|
+ This is a backport of a function dropped from DBusMock source (99c4800e9eed).
|
||||||
|
+ """
|
||||||
|
+ signal.signal(signal.SIGTERM, signal.SIG_IGN)
|
||||||
|
+ for _ in range(50):
|
||||||
|
+ try:
|
||||||
|
+ os.kill(pid, signal.SIGTERM)
|
||||||
|
+ os.waitpid(pid, os.WNOHANG)
|
||||||
|
+ except ChildProcessError:
|
||||||
|
+ break
|
||||||
|
+ except OSError as e:
|
||||||
|
+ if e.errno == errno.ESRCH:
|
||||||
|
+ break
|
||||||
|
+ raise
|
||||||
|
+ time.sleep(0.1)
|
||||||
|
+ else:
|
||||||
|
+ sys.stderr.write("ERROR: timed out waiting for bus process to terminate\n")
|
||||||
|
+ os.kill(pid, signal.SIGKILL)
|
||||||
|
+ try:
|
||||||
|
+ os.waitpid(pid, 0)
|
||||||
|
+ except ChildProcessError:
|
||||||
|
+ pass
|
||||||
|
+ signal.signal(signal.SIGTERM, signal.SIG_DFL)
|
||||||
|
+
|
||||||
|
+
|
||||||
|
if __name__ == "__main__":
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument("test_executable",
|
||||||
|
@@ -51,7 +83,7 @@ def setup_test_namespace(data_dir):
|
||||||
|
if args.mock_dbus:
|
||||||
|
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
|
||||||
|
dbusmock.DBusTestCase.start_system_bus()
|
||||||
|
- atexit.register(dbusmock.DBusTestCase.stop_dbus, dbusmock.DBusTestCase.system_bus_pid)
|
||||||
|
+ atexit.register(stop_dbus, dbusmock.DBusTestCase.system_bus_pid)
|
||||||
|
|
||||||
|
print(f"Executing '{args.test_executable}'")
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
From 247952425829e41a47e83b2e433b9703713739f5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Rybar <jrybar@redhat.com>
|
||||||
|
Date: Sun, 5 Oct 2025 16:40:30 +0200
|
||||||
|
Subject: [PATCH] Missed 'errno' import in wrapper
|
||||||
|
|
||||||
|
---
|
||||||
|
test/wrapper.py | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/test/wrapper.py b/test/wrapper.py
|
||||||
|
index dc62f70..9547720 100755
|
||||||
|
--- a/test/wrapper.py
|
||||||
|
+++ b/test/wrapper.py
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
import sys
|
||||||
|
import signal
|
||||||
|
import time
|
||||||
|
+import errno
|
||||||
|
|
||||||
|
import dbus
|
||||||
|
import dbus.mainloop.glib
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
https://github.com/polkit-org/polkit/commit/55ee1b70456eca8281dda9612c485c619122f202
|
||||||
|
|
||||||
|
From 55ee1b70456eca8281dda9612c485c619122f202 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Rybar <jrybar@redhat.com>
|
||||||
|
Date: Tue, 14 Jan 2025 13:47:54 +0100
|
||||||
|
Subject: [PATCH] meson: fix unused dependency, fixes elogind FTBFS
|
||||||
|
|
||||||
|
polkit-126 could not be built from source with elogind session service due
|
||||||
|
to wrong dependencies in meson.build.
|
||||||
|
|
||||||
|
Author: @markhindley
|
||||||
|
---
|
||||||
|
src/polkitbackend/meson.build | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/polkitbackend/meson.build b/src/polkitbackend/meson.build
|
||||||
|
index fc35e195..a807b41b 100644
|
||||||
|
--- a/src/polkitbackend/meson.build
|
||||||
|
+++ b/src/polkitbackend/meson.build
|
||||||
|
@@ -37,7 +37,6 @@ deps += thread_dep
|
||||||
|
|
||||||
|
if enable_logind
|
||||||
|
sources += files('polkitbackendsessionmonitor-systemd.c')
|
||||||
|
-
|
||||||
|
deps += logind_dep
|
||||||
|
else
|
||||||
|
sources += files('polkitbackendsessionmonitor.c')
|
||||||
|
@@ -73,7 +72,7 @@ executable(
|
||||||
|
program,
|
||||||
|
program + '.c',
|
||||||
|
include_directories: top_inc,
|
||||||
|
- dependencies: libpolkit_gobject_dep,
|
||||||
|
+ dependencies: deps,
|
||||||
|
c_args: c_flags,
|
||||||
|
link_with: libpolkit_backend,
|
||||||
|
install: true,
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<IsA>app:console</IsA>
|
<IsA>app:console</IsA>
|
||||||
<Summary>PolicyKit Authorization Framework</Summary>
|
<Summary>PolicyKit Authorization Framework</Summary>
|
||||||
<Description>polkit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.</Description>
|
<Description>polkit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.</Description>
|
||||||
<Archive sha1sum="d602241d6f2c783e5e63001960665929704ec16a" type="targz">https://github.com/polkit-org/polkit/archive/125/polkit-125.tar.gz</Archive>
|
<Archive sha1sum="bacf74c1e677c75f1e633fd68fd52fd336d71298" type="targz">https://github.com/polkit-org/polkit/archive/126/polkit-126.tar.gz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>meson</Dependency>
|
<Dependency>meson</Dependency>
|
||||||
<Dependency>python3</Dependency>
|
<Dependency>python3</Dependency>
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
<!-- <Patch level="1">polkit-0.118-duktape.patch</Patch> -->
|
<!-- <Patch level="1">polkit-0.118-duktape.patch</Patch> -->
|
||||||
<!-- <Patch level="1">polkit-0.118-elogind.patch</Patch> -->
|
<!-- <Patch level="1">polkit-0.118-elogind.patch</Patch> -->
|
||||||
<Patch level="1">use-system-locale-in-gobject-api.diff</Patch>
|
<Patch level="1">use-system-locale-in-gobject-api.diff</Patch>
|
||||||
<!-- <Patch level="1">gentoo/polkit-124-systemd.patch</Patch> -->
|
<Patch level="1">gentoo/polkit-126-elogind.patch</Patch>
|
||||||
<!-- <Patch level="1">gentoo/polkit-124-systemd-fixup.patch</Patch> -->
|
<Patch level="1">gentoo/polkit-126-dbusmock.patch</Patch>
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
@@ -95,6 +95,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="22">
|
||||||
|
<Date>2025-10-26</Date>
|
||||||
|
<Version>126</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Pisi Linux Community</Name>
|
||||||
|
<Email>admin@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
<Update release="21">
|
<Update release="21">
|
||||||
<Date>2024-09-30</Date>
|
<Date>2024-09-30</Date>
|
||||||
<Version>125</Version>
|
<Version>125</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user