Skip to contentSkip to conversation

package/libftdi1: bump version to fix pkg-config file installation

PATCH Applied Thomas Petazzoni via buildroot 1 participant 3 messages Aug 15, 2025 – Aug 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libftdi1: bump version to fix pkg-config file installation

Since the bump of libftdi1 to version v1.5-48-g22b4667a8 in commit d8173e084eb9ccd700b964e1b8117b96e0fed387, the libftdi1.pc file is installed in $(STAGING_DIR)/pkgconfig/libftdi1.pc instead of $(STAGING_DIR)/lib/pkgconfig/libftdi1.pc, making it "invisible" to pkg-config. This is turn causes flashrom to not find libftdi1 and failing to build when libftdi1 is needed.

This issue is cause by CMAKE_INSTALL_LIBDIR being empty in libftdi1's CMakeLists.txt, which in turn is due to include(GNUInstallDirs) being missing. This has been fixed upstream a few commits later, so rather than backporting a patch, let's just update to the commit containing the fix, 5e67403c4fb5536a2effe2e91181dd73a2cff91b. The list of changes upstream is:

5e67403c4fb5536a2effe2e91181dd73a2cff91b cmake: fix building static lib on windows/msvc 2e714eec137f86ca1950457d8226d8cb9b71c495 msvc: quiet uninteresting warnings d96dbea887373f26755e9873b4ab020f922b7c3b fix unit var warning if ftdi_read_eeprom_location returned error, data would not be initialized d31e3d5697eacbe87cd310b5bce615f3d8426cc0 cmake: fix elseif statement
c2b7c25e1272222c1719daea5761093fbc9c3010 msvc: fix shadowed variable warning c4962c38a1ab470fbdc835c231567bd582eb5a5a msvc: fix warnings by using all enum values in case statements 2a992306c0acf938b29fa0cd5fbc160e24424209 Add SHAREDLIBS option
18499a2fa496c20e5e35590bb89eb701fa9fdfea Ignore VSCode temp folder
7676fb59ecd9fac9e5ea39439905c923ee7ee8c9 python/CMakeLists.txt: rework policy CMP0078 cfaec73e0a5ad9d05d62f1f5c393ab1c59ba771b C++ wrapper: get rid of the Boost dependency 12a8de0daba0816227c7010fc1b84d0abf70a500 .editorconfig: fix insert_final_newline option 3d7293651483130af9e8c5fe685d28b226baa99b Ignore clangd specific files
72e0e1e40126a2a9498fb249ca26a727bd670139 examples/async.c: remove unused includes bfcdea286df81660b980a3bc91902b5970ff6347 examples/async.c: fix sometimes-uninitialized warning

(Yes the commit containing the fix is titled "cmake: fix building static lib on windows/msvc", but because it adds include(GNUInstallDirs), it also fixes our problem).

Fixes:

https://autobuild.buildroot.net/results/3600a9b7f323b4610ac67feb7171c0e10b6383d7/

---
 package/libftdi1/libftdi1.hash | 2 +-
 package/libftdi1/libftdi1.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libftdi1/libftdi1.hash +1 -1
index 414b0af0ed..e110da6b5b 100644
@@ -1,5 +1,5 @@
 # Locally computed
-sha256  9ff3b0845ed410ed940a6190fc4c11d549617de3dd4e4c4a959268eb920c18ec  libftdi1-v1.5-48-g22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03-git4.tar.gz
+sha256  e85f1161d19f60b570751f3c8be334d309c710e5f77ef9afdc0eaa2c4fa73c95  libftdi1-v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b-git4.tar.gz
 
 # Hash for license files:
 sha256  524f46428bf72bb8c6acfeca4909551fd2e0bdbb5305406d38382f4056095c56  LICENSE
package/libftdi1/libftdi1.mk +1 -1
index 8a6db58476..31ffa1aca3 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBFTDI1_VERSION = v1.5-48-g22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03
+LIBFTDI1_VERSION = v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b
 LIBFTDI1_SITE = git://developer.intra2net.com/libftdi
 LIBFTDI1_INSTALL_STAGING = YES
 LIBFTDI1_DEPENDENCIES = host-pkgconf libusb
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
author Reviewed-by Yegor Yefremov on v1 1/1
#1 lore raw
Quoted 34 lines · Thomas Petazzoni

Since the bump of libftdi1 to version v1.5-48-g22b4667a8 in commit d8173e084eb9ccd700b964e1b8117b96e0fed387, the libftdi1.pc file is installed in $(STAGING_DIR)/pkgconfig/libftdi1.pc instead of $(STAGING_DIR)/lib/pkgconfig/libftdi1.pc, making it "invisible" to pkg-config. This is turn causes flashrom to not find libftdi1 and failing to build when libftdi1 is needed.

This issue is cause by CMAKE_INSTALL_LIBDIR being empty in libftdi1's CMakeLists.txt, which in turn is due to include(GNUInstallDirs) being missing. This has been fixed upstream a few commits later, so rather than backporting a patch, let's just update to the commit containing the fix, 5e67403c4fb5536a2effe2e91181dd73a2cff91b. The list of changes upstream is:

5e67403c4fb5536a2effe2e91181dd73a2cff91b cmake: fix building static lib on windows/msvc 2e714eec137f86ca1950457d8226d8cb9b71c495 msvc: quiet uninteresting warnings d96dbea887373f26755e9873b4ab020f922b7c3b fix unit var warning if ftdi_read_eeprom_location returned error, data would not be initialized d31e3d5697eacbe87cd310b5bce615f3d8426cc0 cmake: fix elseif statement
c2b7c25e1272222c1719daea5761093fbc9c3010 msvc: fix shadowed variable warning c4962c38a1ab470fbdc835c231567bd582eb5a5a msvc: fix warnings by using all enum values in case statements 2a992306c0acf938b29fa0cd5fbc160e24424209 Add SHAREDLIBS option
18499a2fa496c20e5e35590bb89eb701fa9fdfea Ignore VSCode temp folder
7676fb59ecd9fac9e5ea39439905c923ee7ee8c9 python/CMakeLists.txt: rework policy CMP0078 cfaec73e0a5ad9d05d62f1f5c393ab1c59ba771b C++ wrapper: get rid of the Boost dependency 12a8de0daba0816227c7010fc1b84d0abf70a500 .editorconfig: fix insert_final_newline option 3d7293651483130af9e8c5fe685d28b226baa99b Ignore clangd specific files
72e0e1e40126a2a9498fb249ca26a727bd670139 examples/async.c: remove unused includes bfcdea286df81660b980a3bc91902b5970ff6347 examples/async.c: fix sometimes-uninitialized warning

(Yes the commit containing the fix is titled "cmake: fix building static lib on windows/msvc", but because it adds include(GNUInstallDirs), it also fixes our problem).

Quoted 6 lines

Fixes:

https://autobuild.buildroot.net/results/3600a9b7f323b4610ac67feb7171c0e10b6383d7/

Quoted 30 lines
---
 package/libftdi1/libftdi1.hash | 2 +-
 package/libftdi1/libftdi1.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libftdi1/libftdi1.hash +1 -1
index 414b0af0ed..e110da6b5b 100644
@@ -1,5 +1,5 @@
 # Locally computed
-sha256  9ff3b0845ed410ed940a6190fc4c11d549617de3dd4e4c4a959268eb920c18ec  libftdi1-v1.5-48-g22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03-git4.tar.gz
+sha256  e85f1161d19f60b570751f3c8be334d309c710e5f77ef9afdc0eaa2c4fa73c95  libftdi1-v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b-git4.tar.gz
 
 # Hash for license files:
 sha256  524f46428bf72bb8c6acfeca4909551fd2e0bdbb5305406d38382f4056095c56  LICENSE
package/libftdi1/libftdi1.mk +1 -2
index 8a6db58476..31ffa1aca3 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBFTDI1_VERSION = v1.5-48-g22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03
+LIBFTDI1_VERSION = v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b
 LIBFTDI1_SITE = git://developer.intra2net.com/libftdi
 LIBFTDI1_INSTALL_STAGING = YES
 LIBFTDI1_DEPENDENCIES = host-pkgconf libusb
--
Quoted 2 lines

2.50.1

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

#2 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 33 lines · Thomas Petazzoni via buildroot

Since the bump of libftdi1 to version v1.5-48-g22b4667a8 in commit d8173e084eb9ccd700b964e1b8117b96e0fed387, the libftdi1.pc file is installed in $(STAGING_DIR)/pkgconfig/libftdi1.pc instead of $(STAGING_DIR)/lib/pkgconfig/libftdi1.pc, making it "invisible" to pkg-config. This is turn causes flashrom to not find libftdi1 and failing to build when libftdi1 is needed.

This issue is cause by CMAKE_INSTALL_LIBDIR being empty in libftdi1's CMakeLists.txt, which in turn is due to include(GNUInstallDirs) being missing. This has been fixed upstream a few commits later, so rather than backporting a patch, let's just update to the commit containing the fix, 5e67403c4fb5536a2effe2e91181dd73a2cff91b. The list of changes upstream is:

5e67403c4fb5536a2effe2e91181dd73a2cff91b cmake: fix building static lib on windows/msvc 2e714eec137f86ca1950457d8226d8cb9b71c495 msvc: quiet uninteresting warnings d96dbea887373f26755e9873b4ab020f922b7c3b fix unit var warning if ftdi_read_eeprom_location returned error, data would not be initialized d31e3d5697eacbe87cd310b5bce615f3d8426cc0 cmake: fix elseif statement
c2b7c25e1272222c1719daea5761093fbc9c3010 msvc: fix shadowed variable warning c4962c38a1ab470fbdc835c231567bd582eb5a5a msvc: fix warnings by using all enum values in case statements 2a992306c0acf938b29fa0cd5fbc160e24424209 Add SHAREDLIBS option
18499a2fa496c20e5e35590bb89eb701fa9fdfea Ignore VSCode temp folder
7676fb59ecd9fac9e5ea39439905c923ee7ee8c9 python/CMakeLists.txt: rework policy CMP0078 cfaec73e0a5ad9d05d62f1f5c393ab1c59ba771b C++ wrapper: get rid of the Boost dependency 12a8de0daba0816227c7010fc1b84d0abf70a500 .editorconfig: fix insert_final_newline option 3d7293651483130af9e8c5fe685d28b226baa99b Ignore clangd specific files
72e0e1e40126a2a9498fb249ca26a727bd670139 examples/async.c: remove unused includes bfcdea286df81660b980a3bc91902b5970ff6347 examples/async.c: fix sometimes-uninitialized warning

(Yes the commit containing the fix is titled "cmake: fix building static lib on windows/msvc", but because it adds include(GNUInstallDirs), it also fixes our problem).

Quoted 6 lines

Fixes:

   https://autobuild.buildroot.net/results/3600a9b7f323b4610ac67feb7171c0e10b6383d7/

Applied to master, thanks.

Regards,
Arnout

Quoted 21 lines
---
  package/libftdi1/libftdi1.hash | 2 +-
  package/libftdi1/libftdi1.mk   | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
package/libftdi1/libftdi1.hash +1 -1
index 414b0af0ed..e110da6b5b 100644
@@ -1,5 +1,5 @@
  # Locally computed
-sha256  9ff3b0845ed410ed940a6190fc4c11d549617de3dd4e4c4a959268eb920c18ec  libftdi1-v1.5-48-g22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03-git4.tar.gz
+sha256  e85f1161d19f60b570751f3c8be334d309c710e5f77ef9afdc0eaa2c4fa73c95  libftdi1-v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b-git4.tar.gz
 
  # Hash for license files:
  sha256  524f46428bf72bb8c6acfeca4909551fd2e0bdbb5305406d38382f4056095c56  LICENSE
package/libftdi1/libftdi1.mk +0 -0
index 8a6db58476..31ffa1aca3 100644

package/libftdi1/libftdi1.mk line 10

Quoted 8 lines
package/libftdi1/libftdi1.mk +1 -1
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-LIBFTDI1_VERSION = v1.5-48-g22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03
+LIBFTDI1_VERSION = v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b
  LIBFTDI1_SITE = git://developer.intra2net.com/libftdi
  LIBFTDI1_INSTALL_STAGING = YES
  LIBFTDI1_DEPENDENCIES = host-pkgconf libusb

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