commit:     52fc47e8c7532de3562a64f8c76447d3f317b920
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 10 07:04:25 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 10 07:04:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52fc47e8

media-gfx/exact-image: fix build with llvm

Closes: https://bugs.gentoo.org/739976
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-gfx/exact-image/exact-image-1.0.2.ebuild            |  1 +
 media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild 
b/media-gfx/exact-image/exact-image-1.0.2.ebuild
index 0cea0d26cf5..2c2e93b4fff 100644
--- a/media-gfx/exact-image/exact-image-1.0.2.ebuild
+++ b/media-gfx/exact-image/exact-image-1.0.2.ebuild
@@ -39,6 +39,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        "${FILESDIR}"/${P}-gcc6.patch
        "${FILESDIR}"/${P}-g++.patch
+       "${FILESDIR}"/${P}-dcraw.patch
 )
 
 src_prepare() {

diff --git a/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch 
b/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch
new file mode 100644
index 00000000000..ba609c294b1
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch
@@ -0,0 +1,11 @@
+--- a/codecs/dcraw.h   2020-09-10 08:42:19.905105346 +0200
++++ b/codecs/dcraw.h   2020-09-10 08:47:50.826316874 +0200
+@@ -9956,7 +9956,7 @@
+   strncpy (th->desc, desc, 512);
+   strncpy (th->make, make, 64);
+   strncpy (th->model, model, 64);
+-  strcpy (th->soft, "dcraw v"DCRAW_VERSION);
++  strcpy (th->soft, "dcraw v" DCRAW_VERSION);
+   t = localtime (&timestamp);
+   sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d",
+       t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);

Reply via email to