Hello community, here is the log from the commit of package xfig for openSUSE:Factory checked in at Tue Apr 7 14:18:20 CEST 2009. -------- --- xfig/xfig.changes 2008-05-14 19:13:26.000000000 +0200 +++ /mounts/work_src_done/STABLE/xfig/xfig.changes 2009-04-06 11:28:40.760001495 +0200 @@ -1,0 +2,5 @@ +Mon Apr 6 11:23:08 CEST 2009 - werner@suse.de + +- Add fix to avoid FPE aftger zoom in (bnc#492295) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- xfig.3.2.5-zoom_fpe.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xfig.spec ++++++ --- /var/tmp/diff_new_pack.K11319/_old 2009-04-07 14:18:07.000000000 +0200 +++ /var/tmp/diff_new_pack.K11319/_new 2009-04-07 14:18:07.000000000 +0200 @@ -1,10 +1,17 @@ # # spec file for package xfig (Version 3.2.5) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -19,7 +26,7 @@ Requires: transfig netpbm ghostscript-fonts-std AutoReqProv: on Version: 3.2.5 -Release: 92 +Release: 134 Summary: Facility for Interactive Generation of Figures under the X Window System Url: http://www.xfig.org/ Source: xfig.%{version}.tar.bz2 @@ -37,6 +44,7 @@ Patch7: xfig.%{version}-fixes.dif Patch8: xfig.%{version}-pspdftex.dif Patch9: xfig.%{version}-zoom.dif +Patch10: xfig.%{version}-zoom_fpe.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} %if "%_exec_prefix" == "/usr/X11R6" @@ -84,10 +92,11 @@ %patch7 -p0 -b .fixes %patch8 -p0 -b .pspdftex %patch9 -p0 -b .zoom -cp $RPM_SOURCE_DIR/font-test.fig . -xmkmf -a -D_DATA='%{_data}' -DStandardDefines='' +%patch10 -p0 -b .fpe +cp %{S:1} . %build +xmkmf -a -D_DATA='%{_data}' -DStandardDefines='' CCOPTIONS="$RPM_OPT_FLAGS -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99" CCOPTIONS="$CCOPTIONS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" make CCOPTIONS="$CCOPTIONS" @@ -139,6 +148,8 @@ %doc %{_mandir}/man1/xfig.1x.gz %changelog +* Mon Apr 06 2009 werner@suse.de +- Add fix to avoid FPE aftger zoom in (bnc#492295) * Wed May 14 2008 werner@suse.de - Fix buffer overflow in zoom handling (bnc#390283) * Fri Apr 25 2008 werner@suse.de ++++++ xfig.3.2.5-zoom_fpe.dif ++++++ Index: xfig.3.2.5/w_rulers.c =================================================================== --- w_rulers.c +++ w_rulers.c 2009-03-06 11:23:08.000000000 +0200 @@ -1149,7 +1149,7 @@ get_skip_prec(void) /* look for values for current zoom */ if ((display_zoomscale/appres.userscale <= rs->max_zoom) || (rs->max_zoom == 0.0)) { - skip = rs->skipt/appres.userscale; + skip = rs->skipt>appres.userscale ? rs->skipt/appres.userscale : 1; skipx = skip * rs->skipx; sprintf(precstr, "%%.%df", rs->prec); break; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org