1 |
commit: 52fc47e8c7532de3562a64f8c76447d3f317b920 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 10 07:04:25 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 10 07:04:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52fc47e8 |
7 |
|
8 |
media-gfx/exact-image: fix build with llvm |
9 |
|
10 |
Closes: https://bugs.gentoo.org/739976 |
11 |
Package-Manager: Portage-3.0.4, Repoman-2.3.23 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
media-gfx/exact-image/exact-image-1.0.2.ebuild | 1 + |
15 |
media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch | 11 +++++++++++ |
16 |
2 files changed, 12 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild b/media-gfx/exact-image/exact-image-1.0.2.ebuild |
19 |
index 0cea0d26cf5..2c2e93b4fff 100644 |
20 |
--- a/media-gfx/exact-image/exact-image-1.0.2.ebuild |
21 |
+++ b/media-gfx/exact-image/exact-image-1.0.2.ebuild |
22 |
@@ -39,6 +39,7 @@ DEPEND="${RDEPEND} |
23 |
PATCHES=( |
24 |
"${FILESDIR}"/${P}-gcc6.patch |
25 |
"${FILESDIR}"/${P}-g++.patch |
26 |
+ "${FILESDIR}"/${P}-dcraw.patch |
27 |
) |
28 |
|
29 |
src_prepare() { |
30 |
|
31 |
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 |
32 |
new file mode 100644 |
33 |
index 00000000000..ba609c294b1 |
34 |
--- /dev/null |
35 |
+++ b/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch |
36 |
@@ -0,0 +1,11 @@ |
37 |
+--- a/codecs/dcraw.h 2020-09-10 08:42:19.905105346 +0200 |
38 |
++++ b/codecs/dcraw.h 2020-09-10 08:47:50.826316874 +0200 |
39 |
+@@ -9956,7 +9956,7 @@ |
40 |
+ strncpy (th->desc, desc, 512); |
41 |
+ strncpy (th->make, make, 64); |
42 |
+ strncpy (th->model, model, 64); |
43 |
+- strcpy (th->soft, "dcraw v"DCRAW_VERSION); |
44 |
++ strcpy (th->soft, "dcraw v" DCRAW_VERSION); |
45 |
+ t = localtime (×tamp); |
46 |
+ sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d", |
47 |
+ t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec); |