Accepting request 131961 from home:pgajdos:libpng15
- build also with libpng15 * libpng15.patch OBS-URL: https://build.opensuse.org/request/show/131961 OBS-URL: https://build.opensuse.org/package/show/Publishing/plotutils?expand=0&rev=10
This commit is contained in:
parent
017c70f513
commit
161aa93e5d
31
plotutils-libpng15.patch
Normal file
31
plotutils-libpng15.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Index: plotutils-2.6/libplot/z_write.c
|
||||||
|
===================================================================
|
||||||
|
--- plotutils-2.6.orig/libplot/z_write.c
|
||||||
|
+++ plotutils-2.6/libplot/z_write.c
|
||||||
|
@@ -164,7 +164,7 @@ _pl_z_maybe_output_image (S___(Plotter *
|
||||||
|
}
|
||||||
|
|
||||||
|
/* cleanup after libpng errors (error handler does a longjmp) */
|
||||||
|
- if (setjmp (png_ptr->jmpbuf))
|
||||||
|
+ if (setjmp (png_jmpbuf(png_ptr)))
|
||||||
|
{
|
||||||
|
png_destroy_write_struct (&png_ptr, (png_info **)NULL);
|
||||||
|
return -1;
|
||||||
|
@@ -444,7 +444,7 @@ _our_error_fn_stdio (png_struct *png_ptr
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
- longjmp (png_ptr->jmpbuf, 1);
|
||||||
|
+ longjmp (png_jmpbuf(png_ptr), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
@@ -515,7 +515,7 @@ _our_error_fn_stream (png_struct *png_pt
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
- longjmp (png_ptr->jmpbuf, 1);
|
||||||
|
+ longjmp (png_jmpbuf(png_ptr), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 29 12:39:58 UTC 2012 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- build also with libpng15
|
||||||
|
* libpng15.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 6 13:20:52 UTC 2012 - pgajdos@suse.com
|
Mon Aug 6 13:20:52 UTC 2012 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ Patch: plotutils-man.patch
|
|||||||
Patch1: plotutils-uninitialized.patch
|
Patch1: plotutils-uninitialized.patch
|
||||||
Patch2: plotutils-dasharray-format.patch
|
Patch2: plotutils-dasharray-format.patch
|
||||||
Patch3: plotutils-autoreconf.patch
|
Patch3: plotutils-autoreconf.patch
|
||||||
|
Patch4: plotutils-libpng15.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -164,6 +165,7 @@ Authors:
|
|||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
%patch3
|
%patch3
|
||||||
|
%patch4 -p1
|
||||||
# Force update lex and bison code:
|
# Force update lex and bison code:
|
||||||
grep -rslE '(made by GNU Bison|A Bison parser, made from|"lex.yy.c")' . | xargs -r rm -f
|
grep -rslE '(made by GNU Bison|A Bison parser, made from|"lex.yy.c")' . | xargs -r rm -f
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user