From b4d443dd67e8ea66e5c4d39e69b55892ad616bdc Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Wed, 14 Sep 2011 14:48:08 +0000 Subject: Fix building with libpng15 (including missing zlib.h include) wrt #380437 by Diego Elio Pettenò MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Portage version: 2.2.0_alpha55/cvs/Linux x86_64) --- sci-visualization/grace/ChangeLog | 7 ++++++- .../grace/files/grace-5.1.22-libpng15.patch | 19 +++++++++++++++++++ sci-visualization/grace/grace-5.1.22-r2.ebuild | 5 +++-- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 sci-visualization/grace/files/grace-5.1.22-libpng15.patch (limited to 'sci-visualization/grace') diff --git a/sci-visualization/grace/ChangeLog b/sci-visualization/grace/ChangeLog index b7267dbb76b0..f9186eca4628 100644 --- a/sci-visualization/grace/ChangeLog +++ b/sci-visualization/grace/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-visualization/grace # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/ChangeLog,v 1.51 2011/06/21 14:30:59 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/ChangeLog,v 1.52 2011/09/14 14:48:08 ssuominen Exp $ + + 14 Sep 2011; Samuli Suominen grace-5.1.22-r2.ebuild, + +files/grace-5.1.22-libpng15.patch: + Fix building with libpng15 (including missing zlib.h include) wrt #380437 by + Diego Elio Pettenò 21 Jun 2011; Justin Lecher grace-5.1.22-r1.ebuild, grace-5.1.22-r2.ebuild: diff --git a/sci-visualization/grace/files/grace-5.1.22-libpng15.patch b/sci-visualization/grace/files/grace-5.1.22-libpng15.patch new file mode 100644 index 000000000000..43db9e0723a5 --- /dev/null +++ b/sci-visualization/grace/files/grace-5.1.22-libpng15.patch @@ -0,0 +1,19 @@ +--- src/rstdrv.c ++++ src/rstdrv.c +@@ -53,6 +53,7 @@ + #endif + + #ifdef HAVE_LIBPNG ++# include + # include + #endif + +@@ -885,7 +886,7 @@ + return; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + png_destroy_write_struct(&png_ptr, &info_ptr); + return; + } diff --git a/sci-visualization/grace/grace-5.1.22-r2.ebuild b/sci-visualization/grace/grace-5.1.22-r2.ebuild index a693026bdd84..a9b98de426b0 100644 --- a/sci-visualization/grace/grace-5.1.22-r2.ebuild +++ b/sci-visualization/grace/grace-5.1.22-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/grace-5.1.22-r2.ebuild,v 1.9 2011/06/21 14:30:59 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/grace-5.1.22-r2.ebuild,v 1.10 2011/09/14 14:48:08 ssuominen Exp $ EAPI=4 @@ -46,7 +46,8 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-5.1.21-fortran.patch # fix a leak (from freebsd) epatch "${FILESDIR}"/${P}-dlmodule.patch \ - "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-libpng15.patch # don't strip if not asked for sed -i \ -- cgit v1.2.3-65-gdbad