Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging 
/ Packages / polkit


Commits:
7d6813a4 by Jan Alexander Steffens (heftig) at 2025-12-22T16:23:45+01:00
127-2: Fix agent failure

See: https://gitlab.archlinux.org/archlinux/packaging/packages/polkit/-/issues/4

- - - - -


3 changed files:

- .SRCINFO
- + 0003-agent-helper-Send-standard-error-to-journal.patch
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = polkit
        pkgdesc = Application development toolkit for controlling system-wide 
privileges
        pkgver = 127
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/polkit-org/polkit
        install = polkit.install
        arch = x86_64
@@ -25,8 +25,10 @@ pkgbase = polkit
        source = git+https://github.com/polkit-org/polkit#tag=127
        source = 0001-meson-Support-explicit-GID.patch
        source = 0002-meson-Detect-Arch-Linux-and-set-the-UID-and-GID.patch
+       source = 0003-agent-helper-Send-standard-error-to-journal.patch
        b2sums = 
6744385984906d97f79aedbfeb894ff274769212af44686b90f6c5ab7f3007d0e6db91b5439c95f344621aa447b570686d46eff7fac861854cfcd37fba5e73e5
        b2sums = 
5549570ecce8db08263167a52211befda69eca2dd65020d132c3001b621e7b6db8a092eefb29ad0e50ab980b0158ed15a79ab7f23e1754e890b51c6ef827eb72
        b2sums = 
6d4d435c8af82270fb6720ca00bab14492fbf6f0d73ba0eba0ac909cc192452a78de56ceb2fe224ac68fcc0f7c9decc01771aaa3f1956ccfae9747620986948c
+       b2sums = 
3d59bd7a7e41ed0c0de95992f3dbb34a3fce10cd29beaf7309839b0ef113398f94f5ef602ccc2c4b608e151ced2b84067ab604098e9d9fd851ef334e54c1f8d6
 
 pkgname = polkit


=====================================
0003-agent-helper-Send-standard-error-to-journal.patch
=====================================
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <[email protected]>
+Date: Mon, 22 Dec 2025 15:08:38 +0100
+Subject: [PATCH] agent helper: Send standard error to journal
+
+Otherwise we will most likely get the default of
+`StandardError=inherit`, causing any log messages to be sent to the
+peer, which gets confused and fails the authentication session.
+
+See: https://github.com/polkit-org/polkit/issues/622
+See: 
https://gitlab.archlinux.org/archlinux/packaging/packages/polkit/-/issues/4
+---
+ data/[email protected] | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/data/[email protected] 
b/data/[email protected]
+index e5ce65d9262d..0e1e5a4b012a 100644
+--- a/data/[email protected]
++++ b/data/[email protected]
+@@ -10,6 +10,7 @@ ExecStart=@libprivdir@/polkit-agent-helper-1 
--socket-activated
+ SuccessExitStatus=2
+ StandardInput=socket
+ StandardOutput=socket
++StandardError=journal
+ LimitMEMLOCK=0
+ LockPersonality=yes
+ MemoryDenyWriteExecute=yes


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=127
-pkgrel=1
+pkgrel=2
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 url="https://github.com/polkit-org/polkit";
 arch=(x86_64)
@@ -32,15 +32,22 @@ source=(
   "git+$url#tag=$pkgver"
   0001-meson-Support-explicit-GID.patch
   0002-meson-Detect-Arch-Linux-and-set-the-UID-and-GID.patch
+  0003-agent-helper-Send-standard-error-to-journal.patch
 )
 
b2sums=('6744385984906d97f79aedbfeb894ff274769212af44686b90f6c5ab7f3007d0e6db91b5439c95f344621aa447b570686d46eff7fac861854cfcd37fba5e73e5'
         
'5549570ecce8db08263167a52211befda69eca2dd65020d132c3001b621e7b6db8a092eefb29ad0e50ab980b0158ed15a79ab7f23e1754e890b51c6ef827eb72'
-        
'6d4d435c8af82270fb6720ca00bab14492fbf6f0d73ba0eba0ac909cc192452a78de56ceb2fe224ac68fcc0f7c9decc01771aaa3f1956ccfae9747620986948c')
+        
'6d4d435c8af82270fb6720ca00bab14492fbf6f0d73ba0eba0ac909cc192452a78de56ceb2fe224ac68fcc0f7c9decc01771aaa3f1956ccfae9747620986948c'
+        
'3d59bd7a7e41ed0c0de95992f3dbb34a3fce10cd29beaf7309839b0ef113398f94f5ef602ccc2c4b608e151ced2b84067ab604098e9d9fd851ef334e54c1f8d6')
 
 prepare() {
   cd polkit
+
+  # Arch-specific adjustments
   git apply -3 ../0001-meson-Support-explicit-GID.patch
   git apply -3 ../0002-meson-Detect-Arch-Linux-and-set-the-UID-and-GID.patch
+
+  # https://github.com/polkit-org/polkit/issues/622
+  git apply -3 ../0003-agent-helper-Send-standard-error-to-journal.patch
 }
 
 build() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/polkit/-/commit/7d6813a4b4167abcdebbd1d0beba2415417b337e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/polkit/-/commit/7d6813a4b4167abcdebbd1d0beba2415417b337e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to