From 822c65ec7dcf2edce50109de3223aef7167395b6 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 29 Oct 2022 21:41:25 +0100 Subject: media-libs/exempi: add arm build patch Signed-off-by: Sam James --- media-libs/exempi/exempi-2.6.2.ebuild | 1 + .../files/exempi-2.6.2-arm-static-build.patch | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 media-libs/exempi/files/exempi-2.6.2-arm-static-build.patch (limited to 'media-libs/exempi') diff --git a/media-libs/exempi/exempi-2.6.2.ebuild b/media-libs/exempi/exempi-2.6.2.ebuild index 4a29b9ce197c..1adde8f42473 100644 --- a/media-libs/exempi/exempi-2.6.2.ebuild +++ b/media-libs/exempi/exempi-2.6.2.ebuild @@ -32,6 +32,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-2.4.2-iconv.patch + "${FILESDIR}"/${PN}-2.6.2-arm-static-build.patch ) src_prepare() { diff --git a/media-libs/exempi/files/exempi-2.6.2-arm-static-build.patch b/media-libs/exempi/files/exempi-2.6.2-arm-static-build.patch new file mode 100644 index 000000000000..7abd23a5a405 --- /dev/null +++ b/media-libs/exempi/files/exempi-2.6.2-arm-static-build.patch @@ -0,0 +1,35 @@ +https://gitlab.freedesktop.org/libopenraw/exempi/-/issues/28 + +From 269b68aaaaaa9af0caf50678e820181c0694ebf7 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Thu, 17 Mar 2022 17:27:28 +0100 +Subject: [PATCH] XMPFiles/source/XMPFiles_Impl.cpp: fix arm build with gcc 10 + +Fix the following build failure with exempi on arm with gcc 10 raised +since version 2.6.0 and +https://gitlab.freedesktop.org/libopenraw/exempi/-/commit/0872e35a30457d2ecf746a1bebdb7d94636d0e2f +https://github.com/adobe/XMP-Toolkit-SDK/commit/0872e35a30457d2ecf746a1bebdb7d94636d0e2f: + +/home/giuliobenetti/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../../XMPFiles/source/.libs/libXMPFiles.a(XMPFiles_Impl.o):(.rodata+0x5c): multiple definition of `typeinfo name for TXMPMeta, std::allocator > >'; XMPFilesCoverage.o:(.rodata+0x0): first defined here + +More information can be found on a similar issue here: +https://github.com/OpenKinect/libfreenect2/issues/157 + +Fixes: + - http://autobuild.buildroot.org/results/c440719de02a154c6bdae11bda06ea30c131c71d + +Signed-off-by: Fabrice Fontaine +--- a/XMPFiles/source/XMPFiles_Impl.cpp ++++ b/XMPFiles/source/XMPFiles_Impl.cpp +@@ -47,7 +47,9 @@ using namespace std; + /// This file ... + /// + // ================================================================================================= +-#include "public/include/XMP.incl_cpp" ++#if ! XMP_StaticBuild ++ #include "public/include/XMP.incl_cpp" ++#endif + + #if XMP_WinBuild + #pragma warning ( disable : 4290 ) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow) + -- cgit v1.2.3-65-gdbad