From aee780ae915e9cbff74287f3ee4bbae22578343c Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Wed, 20 May 2026 19:46:45 +0800 Subject: [PATCH] sci-electronics/dsview: add 1.3.2-r2, drop 1.3.2-r1 - Patch cmake_minimum_required from 2.8.6 to 3.10 in both CMakeLists.txt files to satisfy CMake 4 policy floor. - Removes the QA0023 nag and the eclass workaround injection. Closes: https://bugs.gentoo.org/975564 Signed-off-by: Huang Rui --- ...1.3.2-r1.ebuild => dsview-1.3.2-r2.ebuild} | 2 + .../dsview/files/dsview-1.3.2-cmake4.patch | 43 +++++++++++++++++++ 2 files changed, 45 insertions(+) rename sci-electronics/dsview/{dsview-1.3.2-r1.ebuild => dsview-1.3.2-r2.ebuild} (96%) create mode 100644 sci-electronics/dsview/files/dsview-1.3.2-cmake4.patch diff --git a/sci-electronics/dsview/dsview-1.3.2-r1.ebuild b/sci-electronics/dsview/dsview-1.3.2-r2.ebuild similarity index 96% rename from sci-electronics/dsview/dsview-1.3.2-r1.ebuild rename to sci-electronics/dsview/dsview-1.3.2-r2.ebuild index c668e1df69..c4ae197186 100644 --- a/sci-electronics/dsview/dsview-1.3.2-r1.ebuild +++ b/sci-electronics/dsview/dsview-1.3.2-r2.ebuild @@ -54,6 +54,8 @@ PATCHES=( "${FILESDIR}/${PN}-1.3.0-fix-flags.patch" # Upstream commit c428bd66: fix Qt6 nativeEvent override signature. "${FILESDIR}/${PN}-1.3.2-qt6.patch" + # bug 975564 + "${FILESDIR}/${PN}-1.3.2-cmake4.patch" ) src_configure() { diff --git a/sci-electronics/dsview/files/dsview-1.3.2-cmake4.patch b/sci-electronics/dsview/files/dsview-1.3.2-cmake4.patch new file mode 100644 index 0000000000..9942be900b --- /dev/null +++ b/sci-electronics/dsview/files/dsview-1.3.2-cmake4.patch @@ -0,0 +1,43 @@ +From: Huang Rui +Date: Wed, 20 May 2026 19:45:00 +0800 +Subject: [PATCH] cmake: raise cmake_minimum_required to 3.10 + +Upstream pins cmake_minimum_required to 2.8.6. CMake 4 dropped +compatibility with policies < 3.5 and warns that < 3.10 will be dropped +next, so cmake.eclass injects -DCMAKE_POLICY_VERSION_MINIMUM=3.5 and +emits a QA notice nudging maintainers to update the project. Bump to +3.10 so the build is clean under modern CMake without the eclass +workaround. + +Bug: https://bugs.gentoo.org/975564 +Upstream-Status: Not submitted (low-activity upstream) +Signed-off-by: Huang Rui +--- + CMakeLists.txt | 2 +- + DSView/test/CMakeLists.txt | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,7 +19,7 @@ + ## along with this program. If not, see . + ## + +-cmake_minimum_required(VERSION 2.8.6) ++cmake_minimum_required(VERSION 3.10) + + project(DSView) + +diff --git a/DSView/test/CMakeLists.txt b/DSView/test/CMakeLists.txt +--- a/DSView/test/CMakeLists.txt ++++ b/DSView/test/CMakeLists.txt +@@ -19,7 +19,7 @@ + ## along with this program. If not, see . + ## + +-cmake_minimum_required(VERSION 2.8.6) ++cmake_minimum_required(VERSION 3.10) + + include(FindPkgConfig) + include(GNUInstallDirs)