media-libs/gegl: Fix compiling on bigendian.
authorJeroen Roovers <jer@gentoo.org>
Sat, 5 Dec 2015 09:05:26 +0000 (10:05 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 5 Dec 2015 09:05:26 +0000 (10:05 +0100)
Package-Manager: portage-2.2.26

media-libs/gegl/files/gegl-0.3.4-endian.patch [new file with mode: 0644]
media-libs/gegl/gegl-0.3.4.ebuild

diff --git a/media-libs/gegl/files/gegl-0.3.4-endian.patch b/media-libs/gegl/files/gegl-0.3.4-endian.patch
new file mode 100644 (file)
index 0000000..3df13e6
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/operations/external/tiff-load.c
++++ b/operations/external/tiff-load.c
+@@ -505,7 +505,7 @@
+       GeglRectangle line = { 0, p->height - row - 1, p->width, 1 };
+ #if G_BYTE_ORDER != G_LITTLE_ENDIAN
+       guint row_start = row * p->width;
+-      guint row end = row * p->width + p->width;
++      guint row_end = row * p->width + p->width;
+       guint i;
+ 
+       for (i = row_start; i < row_end; i++)
index 4fca26cf55c74aecb62be692a5695462aa36af5e..ce3348cb701977aaa6db7d7bd642452ed662c958 100644 (file)
@@ -77,6 +77,8 @@ pkg_setup() {
 }
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-0.3.4-endian.patch
+
        # FIXME: the following should be proper patch sent to upstream
        # fix OSX loadable module filename extension
        sed -i -e 's/\.dylib/.bundle/' configure.ac || die