Hello community, here is the log from the commit of package gimp-unstable checked in at Thu Jun 29 22:46:34 CEST 2006. -------- --- GNOME/gimp-unstable/gimp-unstable.changes 2006-02-15 10:32:03.000000000 +0100 +++ gimp-unstable/gimp-unstable.changes 2006-06-29 19:27:10.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Jun 29 19:26:56 CEST 2006 - nadvornik@suse.cz + +- do not use deprecated libpng functions + +------------------------------------------------------------------- New: ---- gimp-libpng.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gimp-unstable.spec ++++++ --- /var/tmp/diff_new_pack.QNgLve/_old 2006-06-29 22:46:17.000000000 +0200 +++ /var/tmp/diff_new_pack.QNgLve/_new 2006-06-29 22:46:17.000000000 +0200 @@ -18,7 +18,7 @@ %define sysconfdir /etc %define prefix /opt/gnome Version: 2.3.7 -Release: 4 +Release: 17 License: GPL Group: Productivity/Graphics/Bitmap Editors Requires: gnome-icon-theme @@ -30,6 +30,7 @@ Autoreqprov: on Summary: The GNU Image Manipulation Program--Development Branch Source: ftp://ftp.gimp.org/pub/gimp/v2.3/%{_name}-%{version}.tar.bz2 +Patch1: gimp-libpng.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -425,6 +426,7 @@ %prep %setup -q -n %{_name}-%{version} +%patch1 # We can ignore these warnings: # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22197 # gimpvector.c: 1021 @@ -515,6 +517,8 @@ %{prefix}/share/gtk-doc/html/* %changelog -n gimp-unstable +* Thu Jun 29 2006 - nadvornik@suse.cz +- do not use deprecated libpng functions * Wed Feb 15 2006 - stbinner@suse.de - use just "Gimp" as name, don't duplicate GenericName description * Fri Feb 10 2006 - sbrabec@suse.cz ++++++ gimp-libpng.patch ++++++ --- plug-ins/common/png.c +++ plug-ins/common/png.c @@ -1012,12 +1012,16 @@ * Done with the file... */ +#if PNG_LIBPNG_VER > 88 + png_destroy_read_struct(&pp, &info, NULL); +#else png_read_destroy (pp, info, NULL); + free (pp); + free (info); +#endif /* PNG_LIBPNG_VER > 88 */ g_free (pixel); g_free (pixels); - free (pp); - free (info); fclose (fp); @@ -1441,7 +1445,14 @@ }; png_write_end (pp, info); + +#if PNG_LIBPNG_VER > 88 + png_destroy_write_struct(&pp, &info); +#else png_write_destroy (pp); + free (pp); + free (info); +#endif /* PNG_LIBPNG_VER > 88 */ g_free (pixel); g_free (pixels); @@ -1456,9 +1467,6 @@ g_free (text); } - free (pp); - free (info); - fclose (fp); return (1); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit-help@opensuse.org