[gnome-build-meta/valentindavid/exiv2-0.27.3] exiv2: Update to 0.27.3
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/exiv2-0.27.3] exiv2: Update to 0.27.3
- Date: Thu, 29 Apr 2021 10:56:31 +0000 (UTC)
commit 7b5baae3d183ca7302103662422afff35dbfc062
Author: Valentin David <valentin david codethink co uk>
Date: Tue Apr 27 16:49:15 2021 +0200
exiv2: Update to 0.27.3
elements/core-deps/exiv2.bst | 4 +++-
files/exiv2/disable-protection-flags.patch | 22 ++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/elements/core-deps/exiv2.bst b/elements/core-deps/exiv2.bst
index 562c714a..2a869208 100644
--- a/elements/core-deps/exiv2.bst
+++ b/elements/core-deps/exiv2.bst
@@ -1,7 +1,9 @@
kind: cmake
sources:
- kind: tar
- url: github_com:Exiv2/exiv2/archive/v0.26.tar.gz
+ url: github_com:Exiv2/exiv2/archive/v0.27.3.tar.gz
+- kind: patch
+ path: files/exiv2/disable-protection-flags.patch
build-depends:
- freedesktop-sdk.bst:public-stacks/buildsystem-cmake.bst
depends:
diff --git a/files/exiv2/disable-protection-flags.patch b/files/exiv2/disable-protection-flags.patch
new file mode 100644
index 00000000..f7c61c8a
--- /dev/null
+++ b/files/exiv2/disable-protection-flags.patch
@@ -0,0 +1,22 @@
+diff -ur exiv2.old/cmake/compilerFlags.cmake exiv2/cmake/compilerFlags.cmake
+--- exiv2.old/cmake/compilerFlags.cmake 2021-04-29 12:05:56.583134150 +0200
++++ exiv2/cmake/compilerFlags.cmake 2021-04-29 12:12:13.061717835 +0200
+@@ -1,4 +1,5 @@
+ # These flags applies to exiv2lib, the applications, and to the xmp code
++include(CheckCXXCompilerFlag)
+
+ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN
+ if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
+@@ -26,7 +27,11 @@
+ # This fails under Fedora, MinGW GCC 8.3.0 and CYGWIN/MSYS 9.3.0
+ if (NOT (MINGW OR CMAKE_HOST_SOLARIS OR CYGWIN OR MSYS) )
+ if (COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
+- add_compile_options(-fstack-clash-protection -fcf-protection)
++ check_cxx_compiler_flag(-fstack-clash-protection STACK_CLASH_PROTECTION)
++ check_cxx_compiler_flag(-fcf-protection CF_PROTECTION)
++ if (STACK_CLASH_PROTECTION AND CF_PROTECTION)
++ add_compile_options(-fstack-clash-protection -fcf-protection)
++ endif()
+ endif()
+
+ if( (COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.0) # Not in GCC
4.8
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]