From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/kwin/
Date: Tue, 29 Oct 2024 00:33:01 +0000 (UTC) [thread overview]
Message-ID: <1730161977.a5355d9c719f407dc300af8412348bbe3fe4ba52.sam@gentoo> (raw)
commit: a5355d9c719f407dc300af8412348bbe3fe4ba52
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 28 21:07:25 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <floppym <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> 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
+}
next reply other threads:[~2024-10-29 0:33 UTC|newest]
Thread overview: 125+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-29 0:33 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-20 21:51 [gentoo-commits] proj/kde:master commit in: kde-plasma/kwin/ Andreas Sturmlechner
2024-12-23 17:24 Andreas Sturmlechner
2024-12-11 16:07 Andreas Sturmlechner
2024-11-27 18:51 Andreas Sturmlechner
2024-10-13 20:59 Andreas Sturmlechner
2024-09-14 15:16 Andreas Sturmlechner
2024-09-10 16:48 Andreas Sturmlechner
2024-07-01 22:00 Andreas Sturmlechner
2024-06-23 19:39 Sam James
2024-06-23 19:00 Sam James
2024-06-14 3:32 Sam James
2024-05-30 17:21 Andreas Sturmlechner
2024-05-27 23:10 Andreas Sturmlechner
2024-05-15 19:32 Andreas Sturmlechner
2024-05-15 19:32 Andreas Sturmlechner
2024-04-21 19:42 Andreas Sturmlechner
2024-03-13 21:05 Andreas Sturmlechner
2024-03-09 8:26 Andreas Sturmlechner
2024-03-07 21:10 Andreas Sturmlechner
2024-01-03 21:48 Andreas Sturmlechner
2023-12-23 16:16 Sam James
2023-12-16 10:57 Andreas Sturmlechner
2023-12-02 20:30 Andreas Sturmlechner
2023-12-02 20:30 Andreas Sturmlechner
2023-11-11 20:05 Andreas Sturmlechner
2023-09-18 11:06 Andreas Sturmlechner
2023-09-18 8:39 Andreas Sturmlechner
2023-09-18 8:39 Andreas Sturmlechner
2023-09-16 18:35 Andreas Sturmlechner
2023-01-16 18:58 Andreas Sturmlechner
2023-01-16 18:58 Andreas Sturmlechner
2022-12-13 18:41 Andreas Sturmlechner
2022-10-20 10:36 Andreas Sturmlechner
2022-10-16 14:04 Andreas Sturmlechner
2022-10-09 16:39 Andreas Sturmlechner
2022-09-23 13:05 Andreas Sturmlechner
2022-08-07 16:57 Andreas Sturmlechner
2022-05-08 22:23 Andreas Sturmlechner
2022-05-08 22:23 Andreas Sturmlechner
2022-03-16 14:25 Andreas Sturmlechner
2022-01-15 15:19 Andreas Sturmlechner
2022-01-15 15:16 Andreas Sturmlechner
2021-11-29 13:31 Andreas Sturmlechner
2021-10-03 12:06 Andreas Sturmlechner
2021-09-20 6:39 Andreas Sturmlechner
2021-08-31 12:54 Andreas Sturmlechner
2021-08-03 9:24 Andreas Sturmlechner
2021-07-29 18:12 Andreas Sturmlechner
2021-05-14 12:09 Andreas Sturmlechner
2021-04-18 17:32 Andreas Sturmlechner
2021-04-04 19:21 Andreas Sturmlechner
2021-01-22 0:41 Andreas Sturmlechner
2021-01-22 0:00 Andreas Sturmlechner
2021-01-22 0:00 Andreas Sturmlechner
2021-01-16 19:14 Andreas Sturmlechner
2021-01-07 12:22 Andreas Sturmlechner
2020-11-30 22:41 Andreas Sturmlechner
2020-11-29 20:59 Andreas Sturmlechner
2020-11-29 20:59 Andreas Sturmlechner
2020-10-31 9:26 Andreas Sturmlechner
2020-08-30 19:02 Andreas Sturmlechner
2020-07-24 21:20 Andreas Sturmlechner
2020-06-30 16:48 Andreas Sturmlechner
2020-04-30 11:57 Andreas Sturmlechner
2020-04-30 11:56 Andreas Sturmlechner
2020-04-12 14:38 Andreas Sturmlechner
2020-04-12 14:38 Andreas Sturmlechner
2020-01-22 13:16 Andreas Sturmlechner
2019-08-18 11:40 Andreas Sturmlechner
2019-02-24 0:00 Andreas Sturmlechner
2018-08-15 17:40 Andreas Sturmlechner
2018-08-15 15:54 Andreas Sturmlechner
2018-06-01 18:23 Andreas Sturmlechner
2018-05-18 23:21 Andreas Sturmlechner
2018-05-06 8:55 Andreas Sturmlechner
2018-04-22 11:01 Andreas Sturmlechner
2018-01-21 13:58 Andreas Sturmlechner
2018-01-16 22:44 Andreas Sturmlechner
2017-12-25 10:05 Michael Palimaka
2017-11-11 19:04 Andreas Sturmlechner
2017-10-01 9:12 Andreas Sturmlechner
2017-09-30 13:04 Andreas Sturmlechner
2017-09-30 12:59 Andreas Sturmlechner
2017-09-30 5:38 Michael Palimaka
2017-09-14 18:45 Andreas Sturmlechner
2017-09-02 13:46 Andreas Sturmlechner
2017-08-12 11:39 Michael Palimaka
2017-02-07 23:11 Andreas Sturmlechner
2017-01-01 1:55 Andreas Sturmlechner
2016-12-02 19:59 Johannes Huber
2016-11-06 12:19 Johannes Huber
2016-11-06 10:38 Johannes Huber
2016-08-31 14:39 Michael Palimaka
2016-08-10 19:06 Michael Palimaka
2016-06-19 13:19 Michael Palimaka
2016-06-19 11:29 Michael Palimaka
2016-06-19 11:13 Michael Palimaka
2016-05-11 12:13 Michael Palimaka
2016-04-22 15:07 Michael Palimaka
2016-04-20 11:31 Michael Palimaka
2016-03-20 14:47 Michael Palimaka
2016-03-09 17:57 Michael Palimaka
2016-02-13 15:59 Michael Palimaka
2016-02-09 5:13 Michael Palimaka
2015-12-08 15:44 Michael Palimaka
2015-10-26 17:58 Michael Palimaka
2015-10-26 17:41 Michael Palimaka
2015-08-22 6:33 Michael Palimaka
2015-08-13 22:02 Johannes Huber
2015-08-13 14:14 Michael Palimaka
2015-08-07 19:17 Michael Palimaka
2015-07-19 14:09 Michael Palimaka
2015-07-16 16:58 Johannes Huber
2015-06-11 16:06 Johannes Huber
2015-06-06 17:43 Michael Palimaka
2015-05-14 12:25 Michael Palimaka
2015-04-15 14:49 Michael Palimaka
2015-04-15 14:04 Michael Palimaka
2015-03-13 16:33 Michael Palimaka
2015-03-13 14:41 Michael Palimaka
2015-02-05 20:03 Johannes Huber
2015-01-27 19:24 Johannes Huber
2015-01-24 14:55 Johannes Huber
2015-01-17 19:10 Johannes Huber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1730161977.a5355d9c719f407dc300af8412348bbe3fe4ba52.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox