[arch-commits] Commit in cairo/trunk (PKGBUILD libpng16.patch)

2013-08-27 Thread Andreas Radke
Date: Tuesday, August 27, 2013 @ 16:03:11
  Author: andyrtr
Revision: 193674

upgpkg: cairo 1.12.16-1

upstream update 1.12..16

Modified:
  cairo/trunk/PKGBUILD
Deleted:
  cairo/trunk/libpng16.patch

+
 PKGBUILD   |   31 ---
 libpng16.patch |   40 
 2 files changed, 16 insertions(+), 55 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-08-27 06:28:04 UTC (rev 193673)
+++ PKGBUILD2013-08-27 14:03:11 UTC (rev 193674)
@@ -3,14 +3,14 @@
 # Contributor: Brice Carpentier br...@daknet.org
 
 pkgname=cairo
-pkgver=1.12.14
-pkgrel=4
+pkgver=1.12.16
+pkgrel=1
 pkgdesc=Cairo vector graphics library
 arch=(i686 x86_64)
 license=('LGPL' 'MPL')
 url=http://cairographics.org/;
-depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman=0.28.0' 'glib2' 
'mesa=9.1' 'libgl' 'sh' 'lzo2')
-makedepends=('mesa-libgl=9.1' 'librsvg' 'gtk2' 'poppler-glib' 'libspectre' 
'gtk-doc' 'valgrind'
+depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman=0.28.0' 'glib2' 
'mesa' 'libgl' 'sh' 'lzo2')
+makedepends=('mesa-libgl' 'librsvg' 'gtk2' 'poppler-glib' 'libspectre' 
'gtk-doc' 'valgrind'
  # for the test suite:
  'ttf-dejavu' 'gsfonts' 'xorg-server-xvfb' ) # 'libdrm')
 #optdepends=('xcb-util: for XCB backend') # really needed?
@@ -17,16 +17,12 @@
 provides=('cairo-xcb')
 replaces=('cairo-xcb')
 options=('!libtool')
-source=(http://cairographics.org/releases/$pkgname-$pkgver.tar.xz
-libpng16.patch)
-sha1sums=('9106ab09b2e7b9f90521b18dd4a7e9577eba6c15'
-  'c9911f185637d266ce1d2985bd6fb7d0df3d75b2')
+source=(http://cairographics.org/releases/$pkgname-$pkgver.tar.xz)
+sha1sums=('4f6e337d5d3edd7ea79d1426f575331552b003ec')
 
 build() {
   cd $pkgname-$pkgver
 
-  patch -Np1 -i ../libpng16.patch
-
   ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
@@ -47,12 +43,17 @@
   make
 }
 
-#check() {
-#  cd $srcdir/$pkgname-$pkgver
-  #make -k check || /bin/true # 162 Passed, 328 Failed [8 crashed, 10 
expected], 26 Skipped
-#  make test || /bin/true # 29 Passed, 464 Failed [460 crashed, 2 expected], 
26 Skipped
-#}
+check() {
+  cd $pkgname-$pkgver
+  make -k test || /bin/true
+  
+  # results:
+  # 1.12.8-1   # 162 Passed, 328 Failed [8 crashed, 10 expected], 26 Skipped
+  # 1.12.12-2: # 29 Passed, 464 Failed [460 crashed, 2 expected], 26 Skipped
+  # 1.12.16-1: 144 Passed, 364 Failed [6 crashed, 12 expected], 27 Skipped
 
+}
+
 package() {
   cd $pkgname-$pkgver
   make DESTDIR=$pkgdir install

Deleted: libpng16.patch
===
--- libpng16.patch  2013-08-27 06:28:04 UTC (rev 193673)
+++ libpng16.patch  2013-08-27 14:03:11 UTC (rev 193674)
@@ -1,40 +0,0 @@
-From 2dd2c826a5b367d32cf2d48ed69754795990c5db Mon Sep 17 00:00:00 2001
-From: Chris Wilson ch...@chris-wilson.co.uk
-Date: Tue, 16 Apr 2013 09:58:56 +
-Subject: png: Avoid marking the surface as in error after a png warning
-
-It turns out that libpng will continue to load an image after throwing a
-warning, and that libpng16 now throws warnings for images that libpng15
-and earlier loaded without error. As we were happily loading those
-images into cairo surfaces before, we are therefore being overzealous
-in throwing an error now - so just squelch the warning.
-
-Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk

-diff --git a/src/cairo-png.c b/src/cairo-png.c
-index e74a4a8..068617d 100644
 a/src/cairo-png.c
-+++ b/src/cairo-png.c
-@@ -149,13 +149,13 @@ static void
- png_simple_warning_callback (png_structp png,
-png_const_charp error_msg)
- {
--cairo_status_t *error = png_get_error_ptr (png);
--
--/* default to the most likely error */
--if (*error == CAIRO_STATUS_SUCCESS)
--  *error = _cairo_error (CAIRO_STATUS_NO_MEMORY);
--
--/* png does not expect to abort and will try to tidy up after a warning */
-+/* png does not expect to abort and will try to tidy up and continue
-+ * loading the image after a warning. So we also want to return the
-+ * (incorrect?) surface.
-+ *
-+ * We use our own warning callback to squelch any attempts by libpng
-+ * to write to stderr as we may not be in control of that output.
-+ */
- }
- 
- 
---
-cgit v0.9.0.2-2-gbebe



[arch-commits] Commit in cairo/trunk (PKGBUILD libpng16.patch)

2013-04-27 Thread Ionuț Mircea Bîru
Date: Saturday, April 27, 2013 @ 15:05:52
  Author: ioni
Revision: 183722

libpng 1.6 rebuild

Added:
  cairo/trunk/libpng16.patch
Modified:
  cairo/trunk/PKGBUILD

+
 PKGBUILD   |   17 +++--
 libpng16.patch |   40 
 2 files changed, 51 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-27 13:02:07 UTC (rev 183721)
+++ PKGBUILD2013-04-27 13:05:52 UTC (rev 183722)
@@ -4,7 +4,7 @@
 
 pkgname=cairo
 pkgver=1.12.14
-pkgrel=3
+pkgrel=4
 pkgdesc=Cairo vector graphics library
 arch=(i686 x86_64)
 license=('LGPL' 'MPL')
@@ -17,11 +17,16 @@
 provides=('cairo-xcb')
 replaces=('cairo-xcb')
 options=('!libtool')
-source=(http://cairographics.org/releases/$pkgname-$pkgver.tar.xz)
-sha1sums=('9106ab09b2e7b9f90521b18dd4a7e9577eba6c15')
+source=(http://cairographics.org/releases/$pkgname-$pkgver.tar.xz
+libpng16.patch)
+sha1sums=('9106ab09b2e7b9f90521b18dd4a7e9577eba6c15'
+  'c9911f185637d266ce1d2985bd6fb7d0df3d75b2')
 
 build() {
-  cd $srcdir/$pkgname-$pkgver
+  cd $pkgname-$pkgver
+
+  patch -Np1 -i ../libpng16.patch
+
   ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
@@ -49,8 +54,8 @@
 #}
 
 package() {
-  depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman=0.28.0' 
'glib2' 'mesa=9.1' 'libgl' 'sh') 
+  depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman=0.28.0' 
'glib2' 'mesa=9.1' 'libgl' 'sh' 'lzo2')
 
-  cd $srcdir/$pkgname-$pkgver
+  cd $pkgname-$pkgver
   make DESTDIR=$pkgdir install
 }

Added: libpng16.patch
===
--- libpng16.patch  (rev 0)
+++ libpng16.patch  2013-04-27 13:05:52 UTC (rev 183722)
@@ -0,0 +1,40 @@
+From 2dd2c826a5b367d32cf2d48ed69754795990c5db Mon Sep 17 00:00:00 2001
+From: Chris Wilson ch...@chris-wilson.co.uk
+Date: Tue, 16 Apr 2013 09:58:56 +
+Subject: png: Avoid marking the surface as in error after a png warning
+
+It turns out that libpng will continue to load an image after throwing a
+warning, and that libpng16 now throws warnings for images that libpng15
+and earlier loaded without error. As we were happily loading those
+images into cairo surfaces before, we are therefore being overzealous
+in throwing an error now - so just squelch the warning.
+
+Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk
+---
+diff --git a/src/cairo-png.c b/src/cairo-png.c
+index e74a4a8..068617d 100644
+--- a/src/cairo-png.c
 b/src/cairo-png.c
+@@ -149,13 +149,13 @@ static void
+ png_simple_warning_callback (png_structp png,
+png_const_charp error_msg)
+ {
+-cairo_status_t *error = png_get_error_ptr (png);
+-
+-/* default to the most likely error */
+-if (*error == CAIRO_STATUS_SUCCESS)
+-  *error = _cairo_error (CAIRO_STATUS_NO_MEMORY);
+-
+-/* png does not expect to abort and will try to tidy up after a warning */
++/* png does not expect to abort and will try to tidy up and continue
++ * loading the image after a warning. So we also want to return the
++ * (incorrect?) surface.
++ *
++ * We use our own warning callback to squelch any attempts by libpng
++ * to write to stderr as we may not be in control of that output.
++ */
+ }
+ 
+ 
+--
+cgit v0.9.0.2-2-gbebe