Skip to contentSkip to conversation

package/libftdi1: bump to version 22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03

PATCH In review [email protected] 2 participants 2 messages May 14, 2025 – May 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libftdi1: bump to version 22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03

From: Yegor Yefremov <[email protected]>

As the project doesn't have frequent releases, switch to git to avoid the piling of patches.

The latest git version bumps the minimum CMake version and adds SWIG 4.3 compatibility.

Fixes:
https://autobuild.buildroot.org/results/188811e73dd52eed3c66d7efb590165e4340fc30/

---
 .checkpackageignore                           |  3 -
 ...andard-CMake-flag-to-drive-the-share.patch | 93 -------------------
 ...sts.txt-fix-paths-when-FTDIPP-is-set.patch | 46 ---------
 ...ix-static-build-with-libusb-and-lato.patch | 47 ----------
 ...004-move-from-distutils-to-sysconfig.patch | 33 -------
 package/libftdi1/libftdi1.hash                |  5 +-
 package/libftdi1/libftdi1.mk                  |  5 +-
 7 files changed, 4 insertions(+), 228 deletions(-)
 delete mode 100644 package/libftdi1/0001-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch
 delete mode 100644 package/libftdi1/0002-CMakeLists.txt-fix-paths-when-FTDIPP-is-set.patch
 delete mode 100644 package/libftdi1/0003-CMakeLists.txt-fix-static-build-with-libusb-and-lato.patch
 delete mode 100644 package/libftdi1/0004-move-from-distutils-to-sysconfig.patch
.checkpackageignore +0 -3
index cc6e1c2fd5..a710766fee 100644
@@ -637,9 +637,6 @@ package/libfreeimage/0003-fix-big-endian-os.patch lib_patch.Upstream
 package/libfreeimage/0004-fixed-C-11-warnings.patch lib_patch.Upstream
 package/libftdi/0001-pkgconfig_libusb.patch lib_patch.Sob lib_patch.Upstream
 package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch lib_patch.Sob lib_patch.Upstream
-package/libftdi1/0001-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch lib_patch.Upstream
-package/libftdi1/0002-CMakeLists.txt-fix-paths-when-FTDIPP-is-set.patch lib_patch.Upstream
-package/libftdi1/0003-CMakeLists.txt-fix-static-build-with-libusb-and-lato.patch lib_patch.Upstream
 package/libfuse/0001-fix-aarch64-build.patch lib_patch.Upstream
 package/libfuse/0002-util-ulockmgr_server-c-conditionally-define-closefrom-fix-glibc-2-34.patch lib_patch.Upstream
 package/libgcrypt/0001-configure.ac-add-an-option-to-disable-tests.patch lib_patch.Upstream
package/libftdi1/0001-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch deleted +0 -93

93 lines not on this page · raw message

package/libftdi1/0002-CMakeLists.txt-fix-paths-when-FTDIPP-is-set.patch deleted +0 -46

46 lines not on this page · raw message

package/libftdi1/0003-CMakeLists.txt-fix-static-build-with-libusb-and-lato.patch deleted +0 -47

47 lines not on this page · raw message

package/libftdi1/0004-move-from-distutils-to-sysconfig.patch deleted +0 -33
deleted file mode 100644
index 7b38993ada..0000000000
@@ -1,33 +0,0 @@
-From abd19b721f7e9b4d514ed319ece173ebc7b1ea72 Mon Sep 17 00:00:00 2001
-From: =?utf8?q?Dan=20Hor=C3=A1k?= <[email protected]>
-Date: Mon, 19 Dec 2022 17:40:43 +0100
-Subject: [PATCH] python: move from distutils to sysconfig
-
-The distutils module was deprecated in Python 3.10, and will be removed
-in 3.12 [1], thus switch to the sysconfig module instead.
-
-[1] https://peps.python.org/pep-0632/
-
-Upstream: http://developer.intra2net.com/git/?p=libftdi;a=commit;h=abd19b721f7e9b4d514ed319ece173ebc7b1ea72
-Signed-off-by: Adam Duskett <[email protected]>
-Signed-off-by: Arnout Vandecappelle <[email protected]>
----
- python/CMakeLists.txt |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
-index 5e406ff..9358419 100644
---- a/python/CMakeLists.txt
-+++ b/python/CMakeLists.txt
-@@ -42,7 +42,7 @@ endif ()
- 
- set_target_properties ( ${SWIG_MODULE_ftdi1_REAL_NAME} PROPERTIES NO_SONAME ON )
- 
--execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print( sysconfig.get_python_lib( plat_specific=True, prefix='${CMAKE_INSTALL_PREFIX}' ) )"
-+execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "import sysconfig; print( sysconfig.get_path( 'platlib', vars={'platbase': '${CMAKE_INSTALL_PREFIX}'} ) )"
-                   OUTPUT_VARIABLE _ABS_PYTHON_MODULE_PATH
-                   OUTPUT_STRIP_TRAILING_WHITESPACE )
- 
--- 
-1.7.1
-
package/libftdi1/libftdi1.hash +2 -3
index 6b825e8d88..abff9ad86f 100644
@@ -1,6 +1,5 @@
-# Locally computed after checking the signature
-# https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.5.tar.bz2.sig
-sha256  7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049  libftdi1-1.5.tar.bz2
+# Locally computed
+sha256  e0005e05417cc80ddfeec3314ee9d3cf1a352cdfe079a507ba6c20bca31575b5  libftdi1-22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03-git4.tar.gz
 
 # Hash for license files:
 sha256  524f46428bf72bb8c6acfeca4909551fd2e0bdbb5305406d38382f4056095c56  LICENSE
package/libftdi1/libftdi1.mk +2 -3
index 66798addc4..e0ef2badf6 100644
@@ -4,9 +4,8 @@
 #
 ################################################################################
 
-LIBFTDI1_VERSION = 1.5
-LIBFTDI1_SOURCE = libftdi1-$(LIBFTDI1_VERSION).tar.bz2
-LIBFTDI1_SITE = http://www.intra2net.com/en/developer/libftdi/download
+LIBFTDI1_VERSION = 22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03
+LIBFTDI1_SITE = git://developer.intra2net.com/libftdi
 LIBFTDI1_INSTALL_STAGING = YES
 LIBFTDI1_DEPENDENCIES = host-pkgconf libusb
 LIBFTDI1_LICENSE = LGPL-2.1 (libftdi1), MIT (libftdi1)
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Yegor,

Quoted 5 lines · On 14/05/2025 08:57, [email protected] wrote:

From: Yegor Yefremov <[email protected]>

As the project doesn't have frequent releases, switch to git to avoid the piling of patches.

Quoted 7 lines

The latest git version bumps the minimum CMake version and adds SWIG 4.3 compatibility.

Fixes:
https://autobuild.buildroot.org/results/188811e73dd52eed3c66d7efb590165e4340fc30/

Since this bump contains mostly CMake bug fixes, I applied this patch on master (while we are in release client cycle).

I changed the _VERSION to use the "git describe --abbrev=40" format which is slightly more readable. This changed the archive hash, which I also updated. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/d8173e084eb9ccd700b964e1b8117b96e0fed387

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot