[neon/kde/libksysguard/Neon/unstable] debian/patches: no setcap at build time, it runs in postinst

Jonathan Riddell null at kde.org
Mon Apr 26 16:07:34 BST 2021


Git commit 40ceaeb11c6e8b294d196e3f9067e76dba14e031 by Jonathan Riddell.
Committed on 26/04/2021 at 15:07.
Pushed by jriddell into branch 'Neon/unstable'.

no setcap at build time, it runs in postinst

A  +17   -0    debian/patches/no-setcap.diff
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/kde/libksysguard/commit/40ceaeb11c6e8b294d196e3f9067e76dba14e031

diff --git a/debian/patches/no-setcap.diff b/debian/patches/no-setcap.diff
new file mode 100644
index 0000000..a676b67
--- /dev/null
+++ b/debian/patches/no-setcap.diff
@@ -0,0 +1,17 @@
+diff --git a/processcore/plugins/network/helper/CMakeLists.txt b/processcore/plugins/network/helper/CMakeLists.txt
+index b50d11a..079acce 100644
+--- a/processcore/plugins/network/helper/CMakeLists.txt
++++ b/processcore/plugins/network/helper/CMakeLists.txt
+@@ -17,12 +17,3 @@ set_target_properties(ksgrd_network_helper PROPERTIES CXX_STANDARD 14 CXX_STANDA
+ target_link_libraries(ksgrd_network_helper pthread)
+ 
+ install(TARGETS ksgrd_network_helper DESTINATION ${KDE_INSTALL_LIBEXECDIR}/ksysguard)
+-
+-if (Libcap_FOUND)
+-    install(
+-        CODE "execute_process(
+-        COMMAND ${SETCAP_EXECUTABLE}
+-        CAP_NET_RAW=+ep
+-        \$ENV{DESTDIR}${KDE_INSTALL_FULL_LIBEXECDIR}/ksysguard/ksgrd_network_helper)"
+-    )
+-endif()
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2e19c57
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian/patches/no-setcap.diff


More information about the Neon-commits mailing list