Hello community, here is the log from the commit of package gnucap for openSUSE:Factory checked in at 2016-06-19 13:54:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnucap (Old) and /work/SRC/openSUSE:Factory/.gnucap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnucap" Changes: -------- --- /work/SRC/openSUSE:Factory/gnucap/gnucap.changes 2012-07-02 10:52:08.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.gnucap.new/gnucap.changes 2016-06-19 13:54:14.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Jun 17 06:46:39 UTC 2016 - dmitr...@opensuse.org + +- Fix build with GCC 6 [boo#985099] + * gnucap-0.35-gcc6.patch + +------------------------------------------------------------------- New: ---- gnucap-0.35-gcc6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnucap.spec ++++++ --- /var/tmp/diff_new_pack.9sIn99/_old 2016-06-19 13:54:15.000000000 +0200 +++ /var/tmp/diff_new_pack.9sIn99/_new 2016-06-19 13:54:15.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package gnucap # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,13 +15,14 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: gnucap Version: 0.35 -Release: 10 -License: GPL-2.0+ +Release: 0 Summary: Gnu Circuit Analysis Package -Url: http://www.gnu.org/software/gnucap/ +License: GPL-2.0+ Group: Productivity/Scientific/Electronics +Url: http://www.gnu.org/software/gnucap/ Source: %{name}-%{version}.tar.bz2 Source1: gnucap-modelgen.1 # PATCH-FIX-UPSTREAM -- fix build with GCC 4.3 @@ -32,6 +33,8 @@ Patch3: gnucap-docpath.patch # PATCH-FIX-OPENSUSE -- from Debian: add shebang, and explicitly call gnucap Patch4: gnucap-fix_runall.patch +# PATCH-FIX-UPSTREAM -- Fix build with GCC 6 +Patch5: gnucap-0.35-gcc6.patch BuildRequires: gcc-c++ BuildRequires: libpng-devel BuildRequires: ncurses-devel @@ -72,6 +75,7 @@ %patch2 -p1 %patch3 -p0 %patch4 -p0 +%patch5 -p1 rm INSTALL %build ++++++ gnucap-0.35-gcc6.patch ++++++ diff -up gnucap-0.35/src/plot.cc~ gnucap-0.35/src/plot.cc --- gnucap-0.35/src/plot.cc~ 2016-04-26 09:16:25.000000000 +0200 +++ gnucap-0.35/src/plot.cc 2016-04-26 09:18:43.392162278 +0200 @@ -231,9 +231,9 @@ static void plotarg( double yhi, double zhi) { - auto char adata[MAXWIDTH+1]; /* actual data. copy emptydata, insert */ + char adata[MAXWIDTH+1]; /* actual data. copy emptydata, insert */ char *xxs; /* string representation of xx */ - memcpy(adata, emptydata, MAXWIDTH); /* copy prototype */ + memcpy(adata, emptydata, MAXWIDTH + 1); /* copy prototype */ xxs = ftos( xx, 11, 5, IO::formaat ); if (zz != NOT_VALID) { adata[point(zz,zlo,zhi,CONSSCALE,0,1)] = '+';/* zap data into string */