From: Marko Lindqvist <cazfi74@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] libmatchbox: fix build against libpng15
Date: Thu, 6 Dec 2012 00:33:14 +0200 [thread overview]
Message-ID: <1354746794-24290-1-git-send-email-cazfi74@gmail.com> (raw)
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
.../libmatchbox/files/libpng15.patch | 34 ++++++++++++++++++++
.../libmatchbox/libmatchbox_1.9.bb | 6 ++--
2 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-graphics/libmatchbox/files/libpng15.patch
diff --git a/meta/recipes-graphics/libmatchbox/files/libpng15.patch b/meta/recipes-graphics/libmatchbox/files/libpng15.patch
new file mode 100644
index 0000000..a463d9e
--- /dev/null
+++ b/meta/recipes-graphics/libmatchbox/files/libpng15.patch
@@ -0,0 +1,34 @@
+diff -Nurd libmatchbox-1.9/libmb/mbpixbuf.c libmatchbox-1.9/libmb/mbpixbuf.c
+--- libmatchbox-1.9/libmb/mbpixbuf.c 2006-07-26 22:12:25.000000000 +0300
++++ libmatchbox-1.9/libmb/mbpixbuf.c 2012-12-06 00:08:28.645988727 +0200
+@@ -224,6 +224,7 @@
+ png_structp png_ptr;
+ png_infop info_ptr;
+ png_bytep *row_pointers;
++ png_byte ct;
+
+ if ((fd = fopen( file, "rb" )) == NULL) return NULL;
+
+@@ -247,7 +248,7 @@
+ return NULL;
+ }
+
+- if ( setjmp( png_ptr->jmpbuf ) ) {
++ if ( setjmp( png_jmpbuf( png_ptr ) ) ) {
+ png_destroy_read_struct( &png_ptr, &info_ptr, NULL);
+ fclose(fd);
+ return NULL;
+@@ -268,9 +269,11 @@
+ if (( color_type == PNG_COLOR_TYPE_GRAY )||
+ ( color_type == PNG_COLOR_TYPE_GRAY_ALPHA ))
+ png_set_gray_to_rgb(png_ptr);
++
++ ct = png_get_color_type(png_ptr, info_ptr);
+
+- if ( info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA
+- || info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA
++ if ( ct == PNG_COLOR_TYPE_RGB_ALPHA
++ || ct == PNG_COLOR_TYPE_GRAY_ALPHA
+ )
+ *has_alpha = 1;
+ else
diff --git a/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb b/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb
index 2fcd1b0..559f9b5 100644
--- a/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb
+++ b/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb
@@ -1,12 +1,14 @@
require libmatchbox.inc
-PR = "r10"
+PR = "r11"
SRC_URI = "http://downloads.yoctoproject.org/releases/matchbox/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
file://16bppfixes.patch \
file://configure_fixes.patch \
file://check.m4 \
- file://matchbox-start-fix.patch"
+ file://matchbox-start-fix.patch \
+ file://libpng15.patch \
+"
SRC_URI[md5sum] = "465fa15c43bf0091a3810e7702fe143f"
SRC_URI[sha256sum] = "f7054f93c57ba6b758d0e4f47d4d2dd96a7fe487e1157eb70a4d642910275aea"
--
1.7.10.4
next reply other threads:[~2012-12-05 22:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-05 22:33 Marko Lindqvist [this message]
2012-12-05 22:44 ` [PATCH] libmatchbox: fix build against libpng15 Burton, Ross
2012-12-06 8:30 ` Marko Lindqvist
2012-12-06 15:02 ` Tomas Frydrych
2012-12-06 15:58 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354746794-24290-1-git-send-email-cazfi74@gmail.com \
--to=cazfi74@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox