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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C41F15817D for ; Thu, 6 Jun 2024 20:45:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91EAB2BC013; Thu, 6 Jun 2024 20:45:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3E87D2BC013 for ; Thu, 6 Jun 2024 20:45:58 +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 6D7FB335CB9 for ; Thu, 6 Jun 2024 20:45:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D73D111EF for ; Thu, 6 Jun 2024 20:45:55 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1717706651.265cec56e535f6ec4a6f5f93f5d5eebb2dc24a8f.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/plasma-desktop/, kde-plasma/plasma-desktop/files/ X-VCS-Repository: proj/kde X-VCS-Files: kde-plasma/plasma-desktop/files/plasma-desktop-6.1.80-override-include-dirs.patch kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild X-VCS-Directories: kde-plasma/plasma-desktop/ kde-plasma/plasma-desktop/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 265cec56e535f6ec4a6f5f93f5d5eebb2dc24a8f X-VCS-Branch: master Date: Thu, 6 Jun 2024 20:45:55 +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: 5cda0e7d-7722-45c4-a692-9a23d73bc491 X-Archives-Hash: da646fdbed3f6f44aa75889f5da214b2 commit: 265cec56e535f6ec4a6f5f93f5d5eebb2dc24a8f Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Jun 6 20:44:11 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Jun 6 20:44:11 2024 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=265cec56 kde-plasma/plasma-desktop: Rebase override-include-dirs.patch Closes: https://bugs.gentoo.org/933616 Signed-off-by: Andreas Sturmlechner gentoo.org> ...asma-desktop-6.1.80-override-include-dirs.patch | 103 +++++++++++++++++++++ .../plasma-desktop/plasma-desktop-9999.ebuild | 2 +- 2 files changed, 104 insertions(+), 1 deletion(-) diff --git a/kde-plasma/plasma-desktop/files/plasma-desktop-6.1.80-override-include-dirs.patch b/kde-plasma/plasma-desktop/files/plasma-desktop-6.1.80-override-include-dirs.patch new file mode 100644 index 0000000000..6059eeeee4 --- /dev/null +++ b/kde-plasma/plasma-desktop/files/plasma-desktop-6.1.80-override-include-dirs.patch @@ -0,0 +1,103 @@ +From 803df2e214c199f42a2c88ed7412c4c8db07c882 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Mon, 6 Apr 2020 00:41:07 +0200 +Subject: [PATCH] Replace input drivers pkg_check_modules calls with manual + targets + +All they need is one header each, allow include dir overrides. + +XorgLibinput - libinput-properties.h +XorgServer - xserver-properties.h +--- + CMakeLists.txt | 7 +------ + config-gentoo.cmake | 17 +++++++++++++++++ + kcms/mouse/CMakeLists.txt | 3 --- + kcms/touchpad/CMakeLists.txt | 6 ------ + 4 files changed, 18 insertions(+), 15 deletions(-) + create mode 100644 config-gentoo.cmake + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bc1d57c12..30a893d5c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -226,16 +226,11 @@ set_package_properties(XCB PROPERTIES TYPE REQUIRED) + add_feature_info("XCB-XKB" XCB_XKB_FOUND "Required for building kcm/keyboard") + add_feature_info("libxft" X11_Xft_FOUND "X FreeType interface library required for font installation") + +-pkg_check_modules(XORGLIBINPUT xorg-libinput IMPORTED_TARGET) +-pkg_check_modules(XORGSERVER xorg-server IMPORTED_TARGET) ++include(config-gentoo.cmake) + pkg_check_modules(XKBREGISTRY xkbregistry REQUIRED IMPORTED_TARGET) + + ecm_find_qmlmodule(org.kde.pipewire 0.1) + +-if(XORGLIBINPUT_FOUND) +- set(HAVE_XORGLIBINPUT 1) +-endif() +- + include(ConfigureChecks.cmake) + + find_package(PackageKitQt6) +diff --git a/config-gentoo.cmake b/config-gentoo.cmake +new file mode 100644 +index 000000000..ac2f0c18d +--- /dev/null ++++ b/config-gentoo.cmake +@@ -0,0 +1,17 @@ ++if(BUILD_KCM_MOUSE_X11) ++ add_library(PkgConfig::XORGLIBINPUT INTERFACE IMPORTED) ++ set_property(TARGET PkgConfig::XORGLIBINPUT PROPERTY ++ INTERFACE_INCLUDE_DIRECTORIES "${XORGLIBINPUT_INCLUDE_DIRS}" ++ ) ++endif() ++ ++if(BUILD_KCM_TOUCHPAD_X11) ++ add_library(PkgConfig::XORGSERVER INTERFACE IMPORTED) ++ set_property(TARGET PkgConfig::XORGSERVER PROPERTY ++ INTERFACE_INCLUDE_DIRECTORIES "${XORGSERVER_INCLUDE_DIRS}" ++ ) ++endif() ++ ++if(BUILD_KCM_MOUSE_X11 OR BUILD_KCM_TOUCHPAD_X11) ++ set(HAVE_XORGLIBINPUT 1) ++endif() +diff --git a/kcms/mouse/CMakeLists.txt b/kcms/mouse/CMakeLists.txt +index 17689e78f..364185c91 100644 +--- a/kcms/mouse/CMakeLists.txt ++++ b/kcms/mouse/CMakeLists.txt +@@ -2,9 +2,6 @@ + add_definitions(-DTRANSLATION_DOMAIN=\"kcmmouse\") + + if (BUILD_KCM_MOUSE_X11) +- if (NOT XORGLIBINPUT_FOUND) +- list(APPEND MISSING_DEPS "xorg-libinput") +- endif() + if (NOT X11_Xi_FOUND) + list(APPEND MISSING_DEPS "X11_Xi") + endif() +diff --git a/kcms/touchpad/CMakeLists.txt b/kcms/touchpad/CMakeLists.txt +index ced353a60..a1920c574 100644 +--- a/kcms/touchpad/CMakeLists.txt ++++ b/kcms/touchpad/CMakeLists.txt +@@ -2,18 +2,12 @@ + add_definitions(-DTRANSLATION_DOMAIN=\"kcm_touchpad\") + + if (BUILD_KCM_TOUCHPAD_X11) +- if (NOT XORGLIBINPUT_FOUND) +- list(APPEND MISSING_DEPS "xorg-libinput") +- endif() + if (NOT X11_XCB_FOUND) + list(APPEND MISSING_DEPS "X11_XCB") + endif() + if (NOT X11_Xi_FOUND) + list(APPEND MISSING_DEPS "X11_Xi") + endif() +- if (NOT XORGSERVER_FOUND) +- list(APPEND MISSING_DEPS "xorg-server") +- endif() + if (MISSING_DEPS) + message(FATAL_ERROR "Missing X11 dependencies for kcm_touchpad: ${MISSING_DEPS}. Install dependencies or set CMake option -DBUILD_KCM_TOUCHPAD_X11=OFF.") + endif() +-- +2.45.2 + diff --git a/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild b/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild index cf43a935cf..203580bc45 100644 --- a/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild +++ b/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild @@ -126,7 +126,7 @@ BDEPEND=" " PATCHES=( - "${WORKDIR}/${XORGHDRS}/${PN}-6.0.80-override-include-dirs.patch" # downstream patch + "${FILESDIR}/${PN}-6.1.80-override-include-dirs.patch" # downstream patch ) src_prepare() {