[neon/kde/powerdevil/Neon/unstable] debian: setcap and installs

Carlos De Maine null at kde.org
Sat Mar 18 13:04:39 GMT 2023


Git commit 7f4c8a82abe695e44184780192ea3e4bf00b8b54 by Carlos De Maine.
Committed on 18/03/2023 at 13:04.
Pushed by carlosdem into branch 'Neon/unstable'.

setcap and installs

M  +1    -2    debian/powerdevil.install
M  +1    -1    debian/powerdevil.postinst.in
M  +1    -1    debian/setcap.yaml

https://invent.kde.org/neon/kde/powerdevil/commit/7f4c8a82abe695e44184780192ea3e4bf00b8b54

diff --git a/debian/powerdevil.install b/debian/powerdevil.install
index e989655..b6dfd85 100644
--- a/debian/powerdevil.install
+++ b/debian/powerdevil.install
@@ -1,8 +1,7 @@
 etc/xdg/autostart/powerdevil.desktop
 usr/kf6/lib/*/libexec
 usr/kf6/lib/*/libpowerdevilconfigcommonprivate.so.*
-usr/kf6/lib/*/qt5
-usr/kf6/lib/*/qt6/plugins/plasma/kcms/systemsettings_qwidgets/kcm*
+usr/kf6/lib/*/qt56usr/kf6/lib/*/qt6/plugins/plasma/kcms/systemsettings_qwidgets/kcm*
 usr/kf6/lib/systemd/user/
 usr/kf6/share/applications/kcm_*
 usr/kf6/share/dbus-1
diff --git a/debian/powerdevil.postinst.in b/debian/powerdevil.postinst.in
index 04874b1..e301a38 100644
--- a/debian/powerdevil.postinst.in
+++ b/debian/powerdevil.postinst.in
@@ -6,7 +6,7 @@ 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
+            "/usr/kf6/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
diff --git a/debian/setcap.yaml b/debian/setcap.yaml
index 0d6789d..37f8192 100644
--- a/debian/setcap.yaml
+++ b/debian/setcap.yaml
@@ -2,4 +2,4 @@
 # 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"]
+- ["CAP_WAKE_ALARM=+ep", "*/usr/kf6/lib/*/libexec/org_kde_powerdevil"]


More information about the Neon-commits mailing list