[neon/kde/powerdevil/Neon/stable] debian: no longer uses setcap but "AmbientCapabilities in systemd unit," instead

Carlos De Maine null at kde.org
Sat May 17 05:00:47 BST 2025


Git commit 3835690acb439f0b9baaf18153288ae813cada7d by Carlos De Maine.
Committed on 17/05/2025 at 04:00.
Pushed by carlosdem into branch 'Neon/stable'.

no longer uses setcap but "AmbientCapabilities in systemd unit," instead

M  +0    -1    debian/control
D  +0    -19   debian/powerdevil.postinst.in
D  +0    -5    debian/setcap.yaml

https://invent.kde.org/neon/kde/powerdevil/-/commit/3835690acb439f0b9baaf18153288ae813cada7d

diff --git a/debian/control b/debian/control
index cee1dac..f0a1924 100644
--- a/debian/control
+++ b/debian/control
@@ -27,7 +27,6 @@ Build-Depends: cmake,
                kf6-krunner-dev,
                kf6-solid-dev,
                kwayland-dev,
-               libcap-dev,
                libddcutil-dev,
                libkf6screen-dev,
                liblayershellqtinterface-dev,
diff --git a/debian/powerdevil.postinst.in b/debian/powerdevil.postinst.in
deleted file mode 100644
index 04874b1..0000000
--- a/debian/powerdevil.postinst.in
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = configure ]; then
-    # Set the capabilities
-    if command -v setcap > /dev/null && \
-       setcap "CAP_SYS_RESOURCE=+ep" \
-            "/usr/lib/#DEB_HOST_MULTIARCH#/libexec/org_kde_powerdevil"; then
-        echo "Sucessfully set capabilities for start_kdeinit"
-    else
-        echo "Failed to set capabilities for start_kdeinit" >&2
-    fi
-fi
-
-#DEBHELPER#
-
-exit 0
-
diff --git a/debian/setcap.yaml b/debian/setcap.yaml
deleted file mode 100644
index 0d6789d..0000000
--- a/debian/setcap.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Whitelisted arguments to setcap.
-# Being whitelisted means they will pass the build without problems.
-# A whitelisted call needs to have a corresponding setcap/setuid call in
-# postinst so it actually gets applied.
-- ["CAP_WAKE_ALARM=+ep", "*/usr/lib/*/libexec/org_kde_powerdevil"]


More information about the Neon-commits mailing list