summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-12-05 10:05:26 +0100
committerJeroen Roovers <jer@gentoo.org>2015-12-05 10:05:26 +0100
commitb428d604c631ab659a91f7a364f811b80f70f9a4 (patch)
tree14abcaa17d7dce24c7fc7bf1dcd00d142bbd94c5 /media-libs/gegl
parentmedia-gfx/gimp: Mark ~hppa (bug #567558). (diff)
downloadgentoo-b428d604c631ab659a91f7a364f811b80f70f9a4.tar.gz
gentoo-b428d604c631ab659a91f7a364f811b80f70f9a4.tar.bz2
gentoo-b428d604c631ab659a91f7a364f811b80f70f9a4.zip
media-libs/gegl: Fix compiling on bigendian.
Package-Manager: portage-2.2.26
Diffstat (limited to 'media-libs/gegl')
-rw-r--r--media-libs/gegl/files/gegl-0.3.4-endian.patch11
-rw-r--r--media-libs/gegl/gegl-0.3.4.ebuild2
2 files changed, 13 insertions, 0 deletions
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
index 000000000000..3df13e69ab06
--- /dev/null
+++ b/media-libs/gegl/files/gegl-0.3.4-endian.patch
@@ -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++)
diff --git a/media-libs/gegl/gegl-0.3.4.ebuild b/media-libs/gegl/gegl-0.3.4.ebuild
index 4fca26cf55c7..ce3348cb7019 100644
--- a/media-libs/gegl/gegl-0.3.4.ebuild
+++ b/media-libs/gegl/gegl-0.3.4.ebuild
@@ -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