[arch-commits] Commit in libpng/repos (6 files)

Christian Hesse eworm at archlinux.org
Mon Aug 28 07:15:26 UTC 2017


    Date: Monday, August 28, 2017 @ 07:15:25
  Author: eworm
Revision: 304270

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  libpng/repos/testing-i686/
  libpng/repos/testing-i686/0001-fix-build.patch
    (from rev 304269, libpng/trunk/0001-fix-build.patch)
  libpng/repos/testing-i686/PKGBUILD
    (from rev 304269, libpng/trunk/PKGBUILD)
  libpng/repos/testing-x86_64/
  libpng/repos/testing-x86_64/0001-fix-build.patch
    (from rev 304269, libpng/trunk/0001-fix-build.patch)
  libpng/repos/testing-x86_64/PKGBUILD
    (from rev 304269, libpng/trunk/PKGBUILD)

-------------------------------------+
 testing-i686/0001-fix-build.patch   |  113 ++++++++++++++++++++++++++++++++++
 testing-i686/PKGBUILD               |   56 ++++++++++++++++
 testing-x86_64/0001-fix-build.patch |  113 ++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD             |   56 ++++++++++++++++
 4 files changed, 338 insertions(+)

Copied: libpng/repos/testing-i686/0001-fix-build.patch (from rev 304269, libpng/trunk/0001-fix-build.patch)
===================================================================
--- testing-i686/0001-fix-build.patch	                        (rev 0)
+++ testing-i686/0001-fix-build.patch	2017-08-28 07:15:25 UTC (rev 304270)
@@ -0,0 +1,113 @@
+From c82893b59c33348057bf2b1640da110114a1a915 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 08:42:23 +0200
+Subject: [PATCH 1/5] pnm2png: add missing parenthesis
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/pnm2png.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c
+index 1b550b8cf..d982c3435 100644
+--- a/contrib/pngminus/pnm2png.c
++++ b/contrib/pngminus/pnm2png.c
+@@ -376,7 +376,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
+   /* row_bytes is the width x number of channels x (bit-depth / 8) */
+     row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2);
+ 
+-  if ((row_bytes == 0 || (size_t)height > ((size_t)(-1))/(size_t)row_bytes)
++  if ((row_bytes == 0 || (size_t)height > ((size_t)(-1))/(size_t)row_bytes))
+   {
+     /* too big */ 
+     return FALSE;
+From 484f1f94646dbc4ebdef8ef25b18b2d04a9e2f6d Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 08:43:13 +0200
+Subject: [PATCH 2/5] pnm2png: add missing semicolon
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/pnm2png.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c
+index d982c3435..0ea9f7ae6 100644
+--- a/contrib/pngminus/pnm2png.c
++++ b/contrib/pngminus/pnm2png.c
+@@ -513,7 +513,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
+   if (png_pixels != (unsigned char*) NULL)
+     free (png_pixels);
+ 
+-  PNG_UNUSED(raw) /* Quiet a Coverity defect */
++  PNG_UNUSED(raw); /* Quiet a Coverity defect */
+ 
+   return TRUE;
+ } /* end of pnm2png */
+From ead5448352a4f8815fa4b6c389bc7962b810c1f9 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 08:59:24 +0200
+Subject: [PATCH 3/5] png2pnm: add missing semicolon
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/png2pnm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/pngminus/png2pnm.c b/contrib/pngminus/png2pnm.c
+index 39a9f4673..ae6f299cf 100644
+--- a/contrib/pngminus/png2pnm.c
++++ b/contrib/pngminus/png2pnm.c
+@@ -443,7 +443,7 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file,
+   if (png_pixels != (unsigned char*) NULL)
+     free (png_pixels);
+ 
+-  PNG_UNUSED(raw) /* to quiet a Coverity defect */
++  PNG_UNUSED(raw); /* to quiet a Coverity defect */
+   return TRUE;
+ 
+ } /* end of source */
+From 7a3ee1fec241b1f27be4f107036043225e4bdf7b Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 09:04:20 +0200
+Subject: [PATCH 4/5] png2pnm: add missing header for PNG_UNUSED()
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/png2pnm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/contrib/pngminus/png2pnm.c b/contrib/pngminus/png2pnm.c
+index ae6f299cf..f75c0cbef 100644
+--- a/contrib/pngminus/png2pnm.c
++++ b/contrib/pngminus/png2pnm.c
+@@ -22,6 +22,7 @@
+ #include <fcntl.h>
+ #endif
+ #include <zlib.h>
++#include <pngpriv.h>
+ 
+ #ifndef BOOL
+ #define BOOL unsigned char
+From 9d8c4a5b04b4201fa8659a3a76d48a560fa227b4 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 09:05:05 +0200
+Subject: [PATCH 5/5] pnm2png: add missing header for PNG_UNUSED()
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/pnm2png.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c
+index 0ea9f7ae6..5f6cb7f2e 100644
+--- a/contrib/pngminus/pnm2png.c
++++ b/contrib/pngminus/pnm2png.c
+@@ -23,6 +23,7 @@
+ #include <fcntl.h>
+ #endif
+ #include <zlib.h>
++#include <pngpriv.h>
+ 
+ #ifndef BOOL
+ #define BOOL unsigned char

Copied: libpng/repos/testing-i686/PKGBUILD (from rev 304269, libpng/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-08-28 07:15:25 UTC (rev 304270)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
+# Contributor: Travis Willard <travis at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=libpng
+pkgver=1.6.32
+_apngver=1.6.32
+pkgrel=1
+pkgdesc="A collection of routines used to create PNG format graphics files"
+arch=('i686' 'x86_64')
+url="http://www.libpng.org/pub/png/libpng.html"
+license=('custom')
+depends=('zlib' 'sh')
+validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson (mozilla) <glennrp at gmail.com>
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"{,.asc}
+        "https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz"
+        '0001-fix-build.patch')
+sha256sums=('c918c3113de74a692f0a1526ce881dc26067763eb3915c57ef3a0f7b6886f59b'
+            'SKIP'
+            'a6b79f1027bde510b215042c4375a3e2f9103113393269a5c261048e8d7a30c9'
+            '98adabd33280c16ebf6db68410c09bd2882c1dfef619297b8dc9cdd93eb06c78')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Add animated PNG (apng) support. Required by Firefox
+  # see http://sourceforge.net/projects/libpng-apng/
+  patch -Np1 -i ../libpng-$_apngver-apng.patch
+
+  # fix build
+  patch -Np1 -i ../0001-fix-build.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  cd contrib/pngminus
+  make PNGLIB="-L$pkgdir/usr/lib -lpng" -f makefile.std png2pnm pnm2png
+  install -m755 png2pnm pnm2png "$pkgdir/usr/bin/"
+  install -D -m644 ../../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: libpng/repos/testing-x86_64/0001-fix-build.patch (from rev 304269, libpng/trunk/0001-fix-build.patch)
===================================================================
--- testing-x86_64/0001-fix-build.patch	                        (rev 0)
+++ testing-x86_64/0001-fix-build.patch	2017-08-28 07:15:25 UTC (rev 304270)
@@ -0,0 +1,113 @@
+From c82893b59c33348057bf2b1640da110114a1a915 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 08:42:23 +0200
+Subject: [PATCH 1/5] pnm2png: add missing parenthesis
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/pnm2png.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c
+index 1b550b8cf..d982c3435 100644
+--- a/contrib/pngminus/pnm2png.c
++++ b/contrib/pngminus/pnm2png.c
+@@ -376,7 +376,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
+   /* row_bytes is the width x number of channels x (bit-depth / 8) */
+     row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2);
+ 
+-  if ((row_bytes == 0 || (size_t)height > ((size_t)(-1))/(size_t)row_bytes)
++  if ((row_bytes == 0 || (size_t)height > ((size_t)(-1))/(size_t)row_bytes))
+   {
+     /* too big */ 
+     return FALSE;
+From 484f1f94646dbc4ebdef8ef25b18b2d04a9e2f6d Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 08:43:13 +0200
+Subject: [PATCH 2/5] pnm2png: add missing semicolon
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/pnm2png.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c
+index d982c3435..0ea9f7ae6 100644
+--- a/contrib/pngminus/pnm2png.c
++++ b/contrib/pngminus/pnm2png.c
+@@ -513,7 +513,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
+   if (png_pixels != (unsigned char*) NULL)
+     free (png_pixels);
+ 
+-  PNG_UNUSED(raw) /* Quiet a Coverity defect */
++  PNG_UNUSED(raw); /* Quiet a Coverity defect */
+ 
+   return TRUE;
+ } /* end of pnm2png */
+From ead5448352a4f8815fa4b6c389bc7962b810c1f9 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 08:59:24 +0200
+Subject: [PATCH 3/5] png2pnm: add missing semicolon
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/png2pnm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/pngminus/png2pnm.c b/contrib/pngminus/png2pnm.c
+index 39a9f4673..ae6f299cf 100644
+--- a/contrib/pngminus/png2pnm.c
++++ b/contrib/pngminus/png2pnm.c
+@@ -443,7 +443,7 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file,
+   if (png_pixels != (unsigned char*) NULL)
+     free (png_pixels);
+ 
+-  PNG_UNUSED(raw) /* to quiet a Coverity defect */
++  PNG_UNUSED(raw); /* to quiet a Coverity defect */
+   return TRUE;
+ 
+ } /* end of source */
+From 7a3ee1fec241b1f27be4f107036043225e4bdf7b Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 09:04:20 +0200
+Subject: [PATCH 4/5] png2pnm: add missing header for PNG_UNUSED()
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/png2pnm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/contrib/pngminus/png2pnm.c b/contrib/pngminus/png2pnm.c
+index ae6f299cf..f75c0cbef 100644
+--- a/contrib/pngminus/png2pnm.c
++++ b/contrib/pngminus/png2pnm.c
+@@ -22,6 +22,7 @@
+ #include <fcntl.h>
+ #endif
+ #include <zlib.h>
++#include <pngpriv.h>
+ 
+ #ifndef BOOL
+ #define BOOL unsigned char
+From 9d8c4a5b04b4201fa8659a3a76d48a560fa227b4 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Mon, 28 Aug 2017 09:05:05 +0200
+Subject: [PATCH 5/5] pnm2png: add missing header for PNG_UNUSED()
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ contrib/pngminus/pnm2png.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c
+index 0ea9f7ae6..5f6cb7f2e 100644
+--- a/contrib/pngminus/pnm2png.c
++++ b/contrib/pngminus/pnm2png.c
+@@ -23,6 +23,7 @@
+ #include <fcntl.h>
+ #endif
+ #include <zlib.h>
++#include <pngpriv.h>
+ 
+ #ifndef BOOL
+ #define BOOL unsigned char

Copied: libpng/repos/testing-x86_64/PKGBUILD (from rev 304269, libpng/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-08-28 07:15:25 UTC (rev 304270)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
+# Contributor: Travis Willard <travis at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=libpng
+pkgver=1.6.32
+_apngver=1.6.32
+pkgrel=1
+pkgdesc="A collection of routines used to create PNG format graphics files"
+arch=('i686' 'x86_64')
+url="http://www.libpng.org/pub/png/libpng.html"
+license=('custom')
+depends=('zlib' 'sh')
+validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson (mozilla) <glennrp at gmail.com>
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"{,.asc}
+        "https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz"
+        '0001-fix-build.patch')
+sha256sums=('c918c3113de74a692f0a1526ce881dc26067763eb3915c57ef3a0f7b6886f59b'
+            'SKIP'
+            'a6b79f1027bde510b215042c4375a3e2f9103113393269a5c261048e8d7a30c9'
+            '98adabd33280c16ebf6db68410c09bd2882c1dfef619297b8dc9cdd93eb06c78')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Add animated PNG (apng) support. Required by Firefox
+  # see http://sourceforge.net/projects/libpng-apng/
+  patch -Np1 -i ../libpng-$_apngver-apng.patch
+
+  # fix build
+  patch -Np1 -i ../0001-fix-build.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  cd contrib/pngminus
+  make PNGLIB="-L$pkgdir/usr/lib -lpng" -f makefile.std png2pnm pnm2png
+  install -m755 png2pnm pnm2png "$pkgdir/usr/bin/"
+  install -D -m644 ../../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list