summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/exiv2
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2020-07-31 02:00:04 +0200
committerKhem Raj <raj.khem@gmail.com>2020-07-31 13:22:53 -0700
commit6443044ca9ec90d6740c42e618830ca52d656f5f (patch)
tree85eacc0048f5f57836e5468d51b66ff1bab1d6e6 /meta-oe/recipes-support/exiv2
parent2cd74e998326d71f811a8fcdcb5d77de046d7f60 (diff)
downloadmeta-openembedded-6443044ca9ec90d6740c42e618830ca52d656f5f.tar.gz
exiv2: upgrade 0.27.1 -> 0.27.3
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/exiv2')
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2/0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch40
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb (renamed from meta-oe/recipes-support/exiv2/exiv2_0.27.1.bb)7
2 files changed, 45 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/exiv2/exiv2/0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch b/meta-oe/recipes-support/exiv2/exiv2/0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch
new file mode 100644
index 000000000..96146a195
--- /dev/null
+++ b/meta-oe/recipes-support/exiv2/exiv2/0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch
@@ -0,0 +1,40 @@
1From 04d5f4805a86302a0e135a28d58a6c1ff6a68d52 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Thu, 30 Jul 2020 23:03:51 +0200
4Subject: [PATCH] Use compiler -fcf-protection only if compiler/arch supports
5 it
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10There have been some PRs they were either rejected or some general suggestion
11for more flags suggested. So
12
13Upstream-Status: Pending
14
15Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
16---
17 cmake/compilerFlags.cmake | 7 ++++++-
18 1 file changed, 6 insertions(+), 1 deletion(-)
19
20diff --git a/cmake/compilerFlags.cmake b/cmake/compilerFlags.cmake
21index 12caf42..455525e 100644
22--- a/cmake/compilerFlags.cmake
23+++ b/cmake/compilerFlags.cmake
24@@ -26,7 +26,12 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN
25 # This fails under Fedora, MinGW GCC 8.3.0 and CYGWIN/MSYS 9.3.0
26 if (NOT (MINGW OR CMAKE_HOST_SOLARIS OR CYGWIN OR MSYS) )
27 if (COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
28- add_compile_options(-fstack-clash-protection -fcf-protection)
29+ # Gcc does support -fcf-protection on few arches only
30+ CHECK_CXX_COMPILER_FLAG(-fcf-protection COMPILER_SUPPORTS_FCF_PROTECTION)
31+ if (COMPILER_SUPPORTS_FCF_PROTECTION)
32+ add_compile_options(-fcf-protection)
33+ endif()
34+ add_compile_options(-fstack-clash-protection)
35 endif()
36
37 if( (COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.0) # Not in GCC 4.8
38--
392.21.3
40
diff --git a/meta-oe/recipes-support/exiv2/exiv2_0.27.1.bb b/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
index 97116ee2d..ed1e8de5c 100644
--- a/meta-oe/recipes-support/exiv2/exiv2_0.27.1.bb
+++ b/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
@@ -5,8 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
5DEPENDS = "zlib expat" 5DEPENDS = "zlib expat"
6 6
7SRC_URI = "https://exiv2.org/releases/${BPN}-${PV}-Source.tar.gz" 7SRC_URI = "https://exiv2.org/releases/${BPN}-${PV}-Source.tar.gz"
8SRC_URI[md5sum] = "56d064517ae5903dd963b84514a121c1" 8SRC_URI[sha256sum] = "a79f5613812aa21755d578a297874fb59a85101e793edc64ec2c6bd994e3e778"
9SRC_URI[sha256sum] = "f125286980fd1bcb28e188c02a93946951c61e10784720be2301b661a65b3081" 9
10# Once patch is obsolete (project should be aware due to PRs), dos2unix can be removed either
11inherit dos2unix
12SRC_URI += "file://0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch"
10 13
11S = "${WORKDIR}/${BPN}-${PV}-Source" 14S = "${WORKDIR}/${BPN}-${PV}-Source"
12 15