From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6275A158042 for ; Tue, 29 Oct 2024 00:33:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8640AE0801; Tue, 29 Oct 2024 00:33:04 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6CFEFE0801 for ; Tue, 29 Oct 2024 00:33:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 782DE3430C5 for ; Tue, 29 Oct 2024 00:33:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A3F66AE7 for ; Tue, 29 Oct 2024 00:33:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1730161977.a5355d9c719f407dc300af8412348bbe3fe4ba52.sam@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/kwin/ X-VCS-Repository: proj/kde X-VCS-Files: kde-plasma/kwin/kwin-6.2.49.9999.ebuild kde-plasma/kwin/kwin-9999.ebuild X-VCS-Directories: kde-plasma/kwin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a5355d9c719f407dc300af8412348bbe3fe4ba52 X-VCS-Branch: master Date: Tue, 29 Oct 2024 00:33:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 19753f78-5a97-4248-b7c5-099f91c811d0 X-Archives-Hash: a5ed22a5ef5930533052ceaeee5fae65 commit: a5355d9c719f407dc300af8412348bbe3fe4ba52 Author: Mike Gilbert gentoo org> AuthorDate: Mon Oct 28 21:07:25 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Oct 29 00:32:57 2024 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a5355d9c kde-plasma/kwin: set cap_sys_nice=ep on kwin_wayland Closes: https://bugs.gentoo.org/941628 Signed-off-by: Mike Gilbert gentoo.org> Signed-off-by: Sam James gentoo.org> kde-plasma/kwin/kwin-6.2.49.9999.ebuild | 16 ++++++++++++---- kde-plasma/kwin/kwin-9999.ebuild | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/kde-plasma/kwin/kwin-6.2.49.9999.ebuild b/kde-plasma/kwin/kwin-6.2.49.9999.ebuild index 3f811cdb2c..a9937c0712 100644 --- a/kde-plasma/kwin/kwin-6.2.49.9999.ebuild +++ b/kde-plasma/kwin/kwin-6.2.49.9999.ebuild @@ -8,14 +8,14 @@ ECM_TEST="true" KFMIN=6.6.0 PVCUT=$(ver_cut 1-3) QTMIN=6.7.2 -inherit ecm plasma.kde.org +inherit ecm fcaps plasma.kde.org DESCRIPTION="Flexible, composited Window Manager for windowing systems on Linux" LICENSE="GPL-2+" SLOT="6" KEYWORDS="" -IUSE="accessibility +caps gles2-only lock screencast +shortcuts systemd" +IUSE="accessibility gles2-only lock screencast +shortcuts systemd" RESTRICT="test" @@ -106,7 +106,6 @@ DEPEND="${COMMON_DEPEND} >=dev-qt/qtwayland-${QTMIN}:6 x11-base/xorg-proto x11-libs/xcb-util-image - caps? ( sys-libs/libcap ) test? ( screencast? ( >=kde-plasma/kpipewire-${PVCUT}:6 ) ) " BDEPEND=" @@ -115,6 +114,10 @@ BDEPEND=" >=kde-frameworks/kcmutils-${KFMIN}:6 " +# https://bugs.gentoo.org/941628 +# -m 0755 to avoid suid with USE="-filecaps" +FILECAPS=( -m 0755 cap_sys_nice=ep usr/bin/kwin_wayland ) + src_prepare() { ecm_src_prepare @@ -134,10 +137,15 @@ src_configure() { # TODO: KWIN_BUILD_X11=$(usex xwayland) KWIN_BUILD_X11_BACKEND=$(usex X) # KWIN_BUILD_NOTIFICATIONS exists, but kdeclarative still hard-depends on it $(cmake_use_find_package accessibility QAccessibilityClient6) - $(cmake_use_find_package caps Libcap) + -DCMAKE_DISABLE_FIND_PACKAGE_Libcap=ON -DKWIN_BUILD_SCREENLOCKER=$(usex lock) -DKWIN_BUILD_GLOBALSHORTCUTS=$(usex shortcuts) ) ecm_src_configure } + +pkg_postinst() { + ecm_pkg_postinst + fcaps_pkg_postinst +} diff --git a/kde-plasma/kwin/kwin-9999.ebuild b/kde-plasma/kwin/kwin-9999.ebuild index 7d43c4d6b4..fe4ce40143 100644 --- a/kde-plasma/kwin/kwin-9999.ebuild +++ b/kde-plasma/kwin/kwin-9999.ebuild @@ -8,14 +8,14 @@ ECM_TEST="true" KFMIN=9999 PVCUT=$(ver_cut 1-3) QTMIN=6.7.2 -inherit ecm plasma.kde.org +inherit ecm fcaps plasma.kde.org DESCRIPTION="Flexible, composited Window Manager for windowing systems on Linux" LICENSE="GPL-2+" SLOT="6" KEYWORDS="" -IUSE="accessibility +caps gles2-only lock screencast +shortcuts systemd" +IUSE="accessibility gles2-only lock screencast +shortcuts systemd" RESTRICT="test" @@ -106,7 +106,6 @@ DEPEND="${COMMON_DEPEND} >=dev-qt/qtwayland-${QTMIN}:6 x11-base/xorg-proto x11-libs/xcb-util-image - caps? ( sys-libs/libcap ) test? ( screencast? ( >=kde-plasma/kpipewire-${PVCUT}:6 ) ) " BDEPEND=" @@ -115,6 +114,10 @@ BDEPEND=" >=kde-frameworks/kcmutils-${KFMIN}:6 " +# https://bugs.gentoo.org/941628 +# -m 0755 to avoid suid with USE="-filecaps" +FILECAPS=( -m 0755 cap_sys_nice=ep usr/bin/kwin_wayland ) + src_prepare() { ecm_src_prepare @@ -134,10 +137,15 @@ src_configure() { # TODO: KWIN_BUILD_X11=$(usex xwayland) KWIN_BUILD_X11_BACKEND=$(usex X) # KWIN_BUILD_NOTIFICATIONS exists, but kdeclarative still hard-depends on it $(cmake_use_find_package accessibility QAccessibilityClient6) - $(cmake_use_find_package caps Libcap) + -DCMAKE_DISABLE_FIND_PACKAGE_Libcap=ON -DKWIN_BUILD_SCREENLOCKER=$(usex lock) -DKWIN_BUILD_GLOBALSHORTCUTS=$(usex shortcuts) ) ecm_src_configure } + +pkg_postinst() { + ecm_pkg_postinst + fcaps_pkg_postinst +}