Introduces a patch to evas package
authorEduardo Lima (Etrunko) <eduardo.lima@openbossa.org>
Thu, 1 Oct 2009 15:04:11 +0000 (12:04 -0300)
committerEduardo Lima (Etrunko) <eduardo.lima@openbossa.org>
Thu, 1 Oct 2009 15:08:32 +0000 (12:08 -0300)
There is a missing symbol in older versions of libpng12, such as found in
Chinook and Diablo as well. This quick hack ensures the png loader works,
without the need of upgrading the libpng12 package.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@openbossa.org>

trunk/evas/debian/changelog
trunk/evas/debian/patches/01_png_loader_missing_symbol.patch [new file with mode: 0644]
trunk/evas/debian/patches/series [new file with mode: 0644]

index 12ef7ae..cbbcd48 100644 (file)
@@ -1,3 +1,9 @@
+evas (0.9.9.062+svn41533-maemo2) extras-devel; urgency=low
+
+  * Patch for missing symbol in libpng. Only for Chinook and Diablo.
+
+ -- Eduardo Lima (Etrunko) <eduardo.lima@indt.org.br>  Wed, 30 Sep 2009 15:55:39 -0300
+
 evas (0.9.9.062+svn41533-maemo1) extras-devel; urgency=low
 
   * SVN snapshot release 41533
diff --git a/trunk/evas/debian/patches/01_png_loader_missing_symbol.patch b/trunk/evas/debian/patches/01_png_loader_missing_symbol.patch
new file mode 100644 (file)
index 0000000..8db6875
--- /dev/null
@@ -0,0 +1,17 @@
+--- a/src/modules/loaders/png/evas_image_load_png.c    2009-08-18 18:46:48.276829758 -0300
++++ b/src/modules/loaders/png/evas_image_load_png.c    2009-09-30 15:31:56.169009344 -0300
+@@ -41,6 +41,14 @@ static Evas_Image_Load_Func evas_image_l
+   evas_image_load_file_data_png
+ };
++static void
++png_set_expand_gray_1_2_4_to_8(png_structp png_ptr)
++{
++   if(png_ptr == NULL) return;
++   png_ptr->transformations |= 0x1000; /* PNG_EXPAND; */
++   png_ptr->flags &= ~0x0040; /* PNG_FLAG_ROW_INIT;*/
++}
++
+ static int
+ evas_image_load_file_head_png(Image_Entry *ie, const char *file, const char *key)
+ {
diff --git a/trunk/evas/debian/patches/series b/trunk/evas/debian/patches/series
new file mode 100644 (file)
index 0000000..6535384
--- /dev/null
@@ -0,0 +1 @@
+01_png_loader_missing_symbol.patch