commit:     91056c1ec20be30053d7f52f0b7ee5771ab60bd5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 27 21:03:19 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 15:50:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91056c1e

x11-misc/read-edid: Fix build w/ cmake-4

Closes: https://bugs.gentoo.org/957514
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 x11-misc/read-edid/files/read-edid-3.0.2-cmake4.patch | 8 ++++++++
 x11-misc/read-edid/read-edid-3.0.2-r2.ebuild          | 5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/x11-misc/read-edid/files/read-edid-3.0.2-cmake4.patch 
b/x11-misc/read-edid/files/read-edid-3.0.2-cmake4.patch
new file mode 100644
index 000000000000..28166b76149e
--- /dev/null
+++ b/x11-misc/read-edid/files/read-edid-3.0.2-cmake4.patch
@@ -0,0 +1,8 @@
+--- a/CMakeLists.txt   2014-02-05 17:27:26.000000000 +0100
++++ b/CMakeLists.txt   2025-08-27 23:01:08.868613931 +0200
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 2.6)
++cmake_minimum_required (VERSION 3.10)
+ project (read-edid)
+ 
+ option(I2CBUILD "Build I2C get-edid implementation" ON)

diff --git a/x11-misc/read-edid/read-edid-3.0.2-r2.ebuild 
b/x11-misc/read-edid/read-edid-3.0.2-r2.ebuild
index 2e9267b36e5c..d5f958c25522 100644
--- a/x11-misc/read-edid/read-edid-3.0.2-r2.ebuild
+++ b/x11-misc/read-edid/read-edid-3.0.2-r2.ebuild
@@ -17,7 +17,10 @@ IUSE="vbe-mode"
 DEPEND="vbe-mode? ( >=dev-libs/libx86-1.1 )"
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}/${P}-fcommon.patch" ) # bug 706878
+PATCHES=(
+       "${FILESDIR}/${P}-fcommon.patch" # bug 706878
+       "${FILESDIR}/${P}-cmake4.patch" # bug 957514
+)
 
 pkg_setup() {
        CONFIG_CHECK="~I2C_CHARDEV"

Reply via email to