From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/libftdi/files/, dev-embedded/libftdi/
Date: Fri, 04 Apr 2025 20:46:04 +0000 (UTC) [thread overview]
Message-ID: <1743799319.ee3fdd30dd61a1e079996ef39f94203dd25d4665.asturm@gentoo> (raw)
commit: ee3fdd30dd61a1e079996ef39f94203dd25d4665
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 4 20:13:11 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Apr 4 20:41:59 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee3fdd30
dev-embedded/libftdi: Fix build w/ >=cmake-4
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../libftdi/files/libftdi-1.5-cmake4.patch | 87 ++++++++++++++++++++++
dev-embedded/libftdi/libftdi-1.5-r7.ebuild | 8 +-
2 files changed, 91 insertions(+), 4 deletions(-)
diff --git a/dev-embedded/libftdi/files/libftdi-1.5-cmake4.patch b/dev-embedded/libftdi/files/libftdi-1.5-cmake4.patch
new file mode 100644
index 000000000000..21a9fa3ec1cd
--- /dev/null
+++ b/dev-embedded/libftdi/files/libftdi-1.5-cmake4.patch
@@ -0,0 +1,87 @@
+From 503c8789db7cb99e4e53cae3c220f80aef07c785 Mon Sep 17 00:00:00 2001
+From: Yegor Yefremov <yegorslists@googlemail.com>
+Date: Wed, 2 Apr 2025 10:12:34 +0200
+Subject: [PATCH] CMakeLists.txt: bump CMake version to 3.15
+
+Older CMake versions are treated as deprecated.
+
+merged with cherry-picks of preceding changes:
+ 3861e7dc9e83f2f6ff4e1579cf3bbf63a6827105
+ de9f01ece34d2fe6e842e0250a38f4b16eda2429
+ 3f314ed78111473b7cbf1b9d1854c9f6322eea7a
+
+diff -u a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,3 +1,5 @@
++cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
++
+ # Project
+ project(libftdi1 C)
+ set(MAJOR_VERSION 1)
+@@ -12,7 +14,6 @@
+ set(CMAKE_BUILD_TYPE RelWithDebInfo)
+ endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
+ set(CMAKE_COLOR_MAKEFILE ON)
+-cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
+
+ add_definitions(-Wall)
+
+@@ -211,30 +212,25 @@
+
+ set ( LIBFTDI_USE_FILE ${CMAKE_INSTALL_PREFIX}/${LIBFTDI_CMAKE_CONFIG_DIR}/UseLibFTDI1.cmake )
+
+-if(CMAKE_VERSION VERSION_LESS 2.8.8)
+- configure_file ( cmake/LibFTDI1Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1Config.cmake @ONLY )
+- configure_file ( cmake/LibFTDI1ConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1ConfigVersion.cmake @ONLY )
+-else ()
+- include(CMakePackageConfigHelpers)
+-
+- configure_package_config_file (
+- cmake/LibFTDI1Config.cmake.in
+- ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1Config.cmake
+- INSTALL_DESTINATION ${LIBFTDI_CMAKE_CONFIG_DIR}
+- PATH_VARS
+- LIBFTDI_USE_FILE
+- LIBFTDI_ROOT_DIR
+- LIBFTDI_INCLUDE_DIR
+- LIBFTDI_INCLUDE_DIRS
+- LIBFTDI_LIBRARY_DIRS
+- NO_CHECK_REQUIRED_COMPONENTS_MACRO
+- )
+- write_basic_package_version_file (
+- LibFTDI1ConfigVersion.cmake
+- VERSION ${LIBFTDI_VERSION_STRING}
+- COMPATIBILITY AnyNewerVersion
+- )
+-endif ()
++include(CMakePackageConfigHelpers)
++
++configure_package_config_file (
++ cmake/LibFTDI1Config.cmake.in
++ ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1Config.cmake
++ INSTALL_DESTINATION ${LIBFTDI_CMAKE_CONFIG_DIR}
++ PATH_VARS
++ LIBFTDI_USE_FILE
++ LIBFTDI_ROOT_DIR
++ LIBFTDI_INCLUDE_DIR
++ LIBFTDI_INCLUDE_DIRS
++ LIBFTDI_LIBRARY_DIRS
++ NO_CHECK_REQUIRED_COMPONENTS_MACRO
++)
++write_basic_package_version_file (
++ LibFTDI1ConfigVersion.cmake
++ VERSION ${LIBFTDI_VERSION_STRING}
++ COMPATIBILITY AnyNewerVersion
++)
+
+
+ install ( FILES
+--- a/examples/cmake_example/CMakeLists.txt
++++ b/examples/cmake_example/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required ( VERSION 2.8 )
++cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
+
+ project ( example C )
+
diff --git a/dev-embedded/libftdi/libftdi-1.5-r7.ebuild b/dev-embedded/libftdi/libftdi-1.5-r7.ebuild
index 4b8db8a33ade..36bf10ce1a9d 100644
--- a/dev-embedded/libftdi/libftdi-1.5-r7.ebuild
+++ b/dev-embedded/libftdi/libftdi-1.5-r7.ebuild
@@ -1,19 +1,18 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+MY_P="${PN}1-${PV}"
PYTHON_COMPAT=( python3_{10..12} )
inherit cmake python-single-r1
-MY_P="${PN}1-${PV}"
if [[ ${PV} == 9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="git://developer.intra2net.com/${PN}"
else
SRC_URI="https://www.intra2net.com/en/developer/${PN}/download/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
-
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
fi
@@ -23,8 +22,8 @@ HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/"
LICENSE="LGPL-2"
SLOT="1"
IUSE="cxx doc examples python test tools"
-RESTRICT="!test? ( test )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="!test? ( test )"
RDEPEND="
virtual/libusb:1
@@ -45,6 +44,7 @@ PATCHES=(
"${FILESDIR}"/${P}-tests-no-cxx.patch
"${FILESDIR}"/${P}-cmake-cxx.patch
"${FILESDIR}"/${P}-py312.patch
+ "${FILESDIR}"/${P}-cmake4.patch
)
pkg_setup() {
next reply other threads:[~2025-04-04 20:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 20:46 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-10 4:51 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/libftdi/files/, dev-embedded/libftdi/ Sam James
2017-01-15 10:33 Pacho Ramos
2015-12-19 16:01 Sven Wegener
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=1743799319.ee3fdd30dd61a1e079996ef39f94203dd25d4665.asturm@gentoo \
--to=asturm@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