[neon/kde/ksystemstats/Neon/release] debian: set the multiarch bits in the postinst

Carlos De Maine null at kde.org
Fri Mar 13 14:49:46 GMT 2026


Git commit f3ad713c44dd3ac2ed7d94345df0e58ba6656aa0 by Carlos De Maine.
Committed on 13/03/2026 at 14:49.
Pushed by carlosdem into branch 'Neon/release'.

set the multiarch bits in the postinst

M  +1    -1    debian/ksystemstats.postinst.in
M  +10   -0    debian/rules

https://invent.kde.org/neon/kde/ksystemstats/-/commit/f3ad713c44dd3ac2ed7d94345df0e58ba6656aa0

diff --git a/debian/ksystemstats.postinst.in b/debian/ksystemstats.postinst.in
old mode 100644
new mode 100755
index ef557c7..5fa72a0
--- a/debian/ksystemstats.postinst.in
+++ b/debian/ksystemstats.postinst.in
@@ -7,7 +7,7 @@ if [ "$1" = configure ]; then
     # The specific setcap invocations also need to be whitelisted to make the
     # build pass (in debian/setcap.yaml as a nested array of argument
     # arrays).
-    path="/usr/lib/#DEB_HOST_MULTIARCH#/libexec/ksystemstats_intel_helper"
+    path="/usr/lib/@DEB_HOST_MULTIARCH@/libexec/ksystemstats_intel_helper"
     if command -v setcap > /dev/null; then
         cap="CAP_PERFMON=+ep"
         if setcap $cap $path; then
diff --git a/debian/rules b/debian/rules
index 3d69b0d..4366c92 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,5 +2,15 @@
 # SPDX-License-Identifier: LGPL-2.0-or-later
 # SPDX-FileCopyrightText: 2023 Jonathan Riddell <jr at jriddell.org>
 
+DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
 %:
 	dh $@ --with kf6 --buildsystem kf6
+
+override_dh_install:
+	# normal install
+	dh_install
+	# sed in our multiarch path
+	sed 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/ksystemstats.postinst.in > debian/ksystemstats/DEBIAN/postinst
+	# ensure the postinst is executable
+	chmod 755 debian/ksystemstats/DEBIAN/postinst


More information about the Neon-commits mailing list