1 |
commit: b428d604c631ab659a91f7a364f811b80f70f9a4 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 5 09:05:26 2015 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 5 09:05:26 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b428d604 |
7 |
|
8 |
media-libs/gegl: Fix compiling on bigendian. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
media-libs/gegl/files/gegl-0.3.4-endian.patch | 11 +++++++++++ |
13 |
media-libs/gegl/gegl-0.3.4.ebuild | 2 ++ |
14 |
2 files changed, 13 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/gegl/files/gegl-0.3.4-endian.patch b/media-libs/gegl/files/gegl-0.3.4-endian.patch |
17 |
new file mode 100644 |
18 |
index 0000000..3df13e6 |
19 |
--- /dev/null |
20 |
+++ b/media-libs/gegl/files/gegl-0.3.4-endian.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- a/operations/external/tiff-load.c |
23 |
++++ b/operations/external/tiff-load.c |
24 |
+@@ -505,7 +505,7 @@ |
25 |
+ GeglRectangle line = { 0, p->height - row - 1, p->width, 1 }; |
26 |
+ #if G_BYTE_ORDER != G_LITTLE_ENDIAN |
27 |
+ guint row_start = row * p->width; |
28 |
+- guint row end = row * p->width + p->width; |
29 |
++ guint row_end = row * p->width + p->width; |
30 |
+ guint i; |
31 |
+ |
32 |
+ for (i = row_start; i < row_end; i++) |
33 |
|
34 |
diff --git a/media-libs/gegl/gegl-0.3.4.ebuild b/media-libs/gegl/gegl-0.3.4.ebuild |
35 |
index 4fca26c..ce3348c 100644 |
36 |
--- a/media-libs/gegl/gegl-0.3.4.ebuild |
37 |
+++ b/media-libs/gegl/gegl-0.3.4.ebuild |
38 |
@@ -77,6 +77,8 @@ pkg_setup() { |
39 |
} |
40 |
|
41 |
src_prepare() { |
42 |
+ epatch "${FILESDIR}"/${PN}-0.3.4-endian.patch |
43 |
+ |
44 |
# FIXME: the following should be proper patch sent to upstream |
45 |
# fix OSX loadable module filename extension |
46 |
sed -i -e 's/\.dylib/.bundle/' configure.ac || die |