From 1b552f6ee2d4fdffb828224fa58b753857ba4ed8 Mon Sep 17 00:00:00 2001 From: fuzzard Date: Sat, 29 Jun 2024 08:16:58 +1000 Subject: [tools/depends][target] exiv2 add patch for GCC13 cstdint include Already upstreamed, just no release as yet https://github.com/Exiv2/exiv2/pull/2969/commits/03436ce9c693dba9d074e9e99e792b5129463e26 --- cmake/modules/FindExiv2.cmake | 3 ++- tools/depends/target/exiv2/0005-GCC13-cstdint.patch | 10 ++++++++++ tools/depends/target/exiv2/Makefile | 6 +++++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tools/depends/target/exiv2/0005-GCC13-cstdint.patch diff --git a/cmake/modules/FindExiv2.cmake b/cmake/modules/FindExiv2.cmake index 8bd5df2543..0496a11f0f 100644 --- a/cmake/modules/FindExiv2.cmake +++ b/cmake/modules/FindExiv2.cmake @@ -16,7 +16,8 @@ if(NOT TARGET ${APP_NAME_LC}::${CMAKE_FIND_PACKAGE_NAME}) set(patches "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/0001-Add-EXIV2_ENABLE_FILESYSTEM_ACCESS-option.patch" "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/0002-Set-conditional-HTTP-depending-on-EXIV2_ENABLE_WEBRE.patch" "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/0003-UWP-Disable-getLoadedLibraries.patch" - "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/0004-WIN-lib-postfix.patch") + "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/0004-WIN-lib-postfix.patch" + "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/0005-GCC13-cstdint.patch") generate_patchcommand("${patches}") diff --git a/tools/depends/target/exiv2/0005-GCC13-cstdint.patch b/tools/depends/target/exiv2/0005-GCC13-cstdint.patch new file mode 100644 index 0000000000..72746e0605 --- /dev/null +++ b/tools/depends/target/exiv2/0005-GCC13-cstdint.patch @@ -0,0 +1,10 @@ +--- a/src/futils.cpp ++++ b/src/futils.cpp +@@ -11,6 +11,7 @@ + // + standard includes + #include + #include ++#include + #include + #include + #include diff --git a/tools/depends/target/exiv2/Makefile b/tools/depends/target/exiv2/Makefile index b26a4459a4..b289e02eb3 100644 --- a/tools/depends/target/exiv2/Makefile +++ b/tools/depends/target/exiv2/Makefile @@ -2,7 +2,9 @@ include ../../Makefile.include EXIV2-VERSION ../../download-files.include DEPS = ../../Makefile.include Makefile EXIV2-VERSION ../../download-files.include \ 0001-Add-EXIV2_ENABLE_FILESYSTEM_ACCESS-option.patch \ 0002-Set-conditional-HTTP-depending-on-EXIV2_ENABLE_WEBRE.patch \ - 0003-UWP-Disable-getLoadedLibraries.patch + 0003-UWP-Disable-getLoadedLibraries.patch \ + 0004-WIN-lib-postfix.patch \ + 0005-GCC13-cstdint.patch # configuration settings CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX=$(PREFIX) \ @@ -30,6 +32,8 @@ $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) cd $(PLATFORM); patch -p1 -i ../0001-Add-EXIV2_ENABLE_FILESYSTEM_ACCESS-option.patch cd $(PLATFORM); patch -p1 -i ../0002-Set-conditional-HTTP-depending-on-EXIV2_ENABLE_WEBRE.patch cd $(PLATFORM); patch -p1 -i ../0003-UWP-Disable-getLoadedLibraries.patch + cd $(PLATFORM); patch -p1 -i ../0004-WIN-lib-postfix.patch + cd $(PLATFORM); patch -p1 -i ../0005-GCC13-cstdint.patch cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) .. $(LIBDYLIB): $(PLATFORM) -- cgit v1.2.3