Skip to content

Commit

Permalink
kde-plasma/libksysguard: set cap_sys_nice=ep on ksgrd_network_helper
Browse files Browse the repository at this point in the history
Upstream commit 1bb5880f08e93e49017dfca6359b293a3bb6f5dc

Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Nov 17, 2024
1 parent 97e98e5 commit 0862075
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
18 changes: 16 additions & 2 deletions kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EAPI=8
ECM_TEST="true"
KFMIN=6.6.0
QTMIN=6.7.2
inherit ecm plasma.kde.org
inherit ecm fcaps plasma.kde.org

DESCRIPTION="Task management and system monitoring library"

Expand All @@ -32,7 +32,16 @@ RDEPEND="
sys-libs/zlib
"
DEPEND="${RDEPEND}"
BDEPEND="sys-libs/libcap"

# -m 0755 to avoid suid with USE="-filecaps"
FILECAPS=( -m 0755 cap_sys_nice=ep usr/libexec/ksysguard/ksgrd_network_helper )

src_configure() {
local mycmakeargs=(
-DCMAKE_DISABLE_FIND_PACKAGE_Libcap=ON
)
ecm_src_configure
}

src_test() {
# bugs 797898, 889942: flaky test
Expand All @@ -41,3 +50,8 @@ src_test() {
)
LC_NUMERIC="C" ecm_src_test # bug 695514
}

pkg_postinst() {
ecm_pkg_postinst
fcaps_pkg_postinst
}
18 changes: 16 additions & 2 deletions kde-plasma/libksysguard/libksysguard-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EAPI=8
ECM_TEST="true"
KFMIN=9999
QTMIN=6.7.2
inherit ecm plasma.kde.org
inherit ecm fcaps plasma.kde.org

DESCRIPTION="Task management and system monitoring library"

Expand All @@ -32,7 +32,16 @@ RDEPEND="
sys-libs/zlib
"
DEPEND="${RDEPEND}"
BDEPEND="sys-libs/libcap"

# -m 0755 to avoid suid with USE="-filecaps"
FILECAPS=( -m 0755 cap_sys_nice=ep usr/libexec/ksysguard/ksgrd_network_helper )

src_configure() {
local mycmakeargs=(
-DCMAKE_DISABLE_FIND_PACKAGE_Libcap=ON
)
ecm_src_configure
}

src_test() {
# bugs 797898, 889942: flaky test
Expand All @@ -41,3 +50,8 @@ src_test() {
)
LC_NUMERIC="C" ecm_src_test # bug 695514
}

pkg_postinst() {
ecm_pkg_postinst
fcaps_pkg_postinst
}

0 comments on commit 0862075

Please sign in to comment.