Hello community, here is the log from the commit of package spew for openSUSE:Factory checked in at 2019-03-06 15:48:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/spew (Old) and /work/SRC/openSUSE:Factory/.spew.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spew" Wed Mar 6 15:48:17 2019 rev:4 rq:681756 version:1.0.8 Changes: -------- --- /work/SRC/openSUSE:Factory/spew/spew.changes 2016-07-05 09:51:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.spew.new.28833/spew.changes 2019-03-06 15:48:30.128433091 +0100 @@ -1,0 +2,8 @@ +Tue Mar 5 13:13:43 UTC 2019 - Martin Pluskal <[email protected]> + +- Add patches from gentoo: + * fix-automake-1.13.patch + * fix-format-security.patch + * fix-ncurses-tinfo.patch + +------------------------------------------------------------------- New: ---- fix-automake-1.13.patch fix-format-security.patch fix-ncurses-tinfo.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spew.spec ++++++ --- /var/tmp/diff_new_pack.1mLuAN/_old 2019-03-06 15:48:32.980432335 +0100 +++ /var/tmp/diff_new_pack.1mLuAN/_new 2019-03-06 15:48:32.984432334 +0100 @@ -1,7 +1,7 @@ # # spec file for package spew # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,14 +20,18 @@ Version: 1.0.8 Release: 0 Summary: An I/O performance measurement and load generation tool -License: GPL-2.0 +License: GPL-2.0-only Group: System/Benchmark -Url: http://freecode.com/projects/spew +URL: http://freecode.com/projects/spew Source: https://fossies.org/linux/privat/old/%{name}-%{version}.tgz +Patch0: fix-format-security.patch +Patch1: fix-automake-1.13.patch +Patch2: fix-ncurses-tinfo.patch +BuildRequires: autoconf +BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: popt-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Spew is used to measure I/O performance of character devices, block devices, @@ -41,8 +45,12 @@ %prep %setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build +autoreconf -fiv %configure make %{?_smp_mflags} @@ -50,14 +58,14 @@ %make_install %files -%defattr(-,root,root) -%doc AUTHORS COPYING FAQ NEWS README TODO +%license COPYING +%doc AUTHORS FAQ NEWS README TODO %{_bindir}/spew %{_bindir}/gorge %{_bindir}/regorge -%{_mandir}/man1/spew.1%{ext_man} -%{_mandir}/man1/gorge.1%{ext_man} -%{_mandir}/man1/regorge.1%{ext_man} +%{_mandir}/man1/spew.1%{?ext_man} +%{_mandir}/man1/gorge.1%{?ext_man} +%{_mandir}/man1/regorge.1%{?ext_man} %config %{_sysconfdir}/spew.conf %changelog ++++++ fix-automake-1.13.patch ++++++ Index: spew-1.0.8/configure.ac =================================================================== --- spew-1.0.8.orig/configure.ac +++ spew-1.0.8/configure.ac @@ -2,20 +2,13 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(src/spew.cpp) +AC_INIT(spew, 1.0.8) +AC_CONFIG_SRCDIR(src/spew.cpp) AC_CONFIG_AUX_DIR(config) -AM_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS(config.h) AM_MAINTAINER_MODE -SPEW_AGE=1 -SPEW_REVISION=0 -SPEW_CURRENT=8 -AC_SUBST(SPEW_AGE) -AC_SUBST(SPEW_REVISION) -AC_SUBST(SPEW_CURRENT) -VERSION=$SPEW_AGE.$SPEW_REVISION.$SPEW_CURRENT - -AM_INIT_AUTOMAKE(spew, $VERSION) +AM_INIT_AUTOMAKE # Checks for programs. AC_PROG_CXX ++++++ fix-format-security.patch ++++++ Index: spew-1.0.8/src/spew.cpp =================================================================== --- spew-1.0.8.orig/src/spew.cpp +++ spew-1.0.8/src/spew.cpp @@ -285,7 +285,7 @@ void help(poptContext &context) PATTERN_LOOKUP[Job::PATTERN_USER_DEFINED], PATTERN_LOOKUP[Job::PATTERN_USER_DEFINED], PATTERN_LOOKUP[DEFAULT_PATTERN]); - fprintf(stdout, outStr); + fprintf(stdout, "%s", outStr); fprintf(stdout, "\nReport bugs to Andrew Patterson <[email protected]>.\n"); } Index: spew-1.0.8/src/SpewTuiStatisticsWindow.cpp =================================================================== --- spew-1.0.8.orig/src/SpewTuiStatisticsWindow.cpp +++ spew-1.0.8/src/SpewTuiStatisticsWindow.cpp @@ -278,7 +278,7 @@ void SpewTuiStatisticsWindow::updateTota ""); if (mSpewTui->getCurrentIteration() > 0) { - int len = snprintf(NULL, 0, (char *)mTotalRunTime.getElapsedTimeStr().c_str()); + int len = snprintf(NULL, 0, "%s", (char *)mTotalRunTime.getElapsedTimeStr().c_str()); mvwprintw(mWindow, RUNTIME_FIELD_STARTY, RUNTIME_FIELD_STARTX + RUNTIME_FIELD_WIDTH - len, ++++++ fix-ncurses-tinfo.patch ++++++ Index: spew-1.0.8/configure.ac =================================================================== --- spew-1.0.8.orig/configure.ac +++ spew-1.0.8/configure.ac @@ -21,6 +21,7 @@ AC_PROG_LN_S # Checks for libraries. AC_CHECK_LIB(popt, poptGetContext, ,AC_MSG_ERROR([PACKAGE] requires popt)) AC_CHECK_LIB(ncurses, wresize, ,AC_MSG_ERROR([PACKAGE] requires ncurses)) +PKG_CHECK_MODULES(NCURSES, [ncurses]) # Checks for header files. AC_HEADER_STDC Index: spew-1.0.8/src/Makefile.am =================================================================== --- spew-1.0.8.orig/src/Makefile.am +++ spew-1.0.8/src/Makefile.am @@ -24,7 +24,7 @@ libcommon_a_SOURCES = \ libtui_a_SOURCES = \ Tui.cpp Tui.h -LDADD = libcommon.a libtui.a +LDADD = libcommon.a libtui.a $(NCURSES_LIBS) bin_PROGRAMS = spew spew_SOURCES = spew.cpp \ @@ -37,6 +37,7 @@ spew_SOURCES = spew.cpp \ SpewTuiStatisticsWindow.cpp SpewTuiStatisticsWindow.h \ SpewTuiStatusWindow.cpp SpewTuiStatusWindow.h +spew_CFLAGS = $(NCURSES_CFLAGS) spew_LDFLAGS = $(STATIC_LINK) install-exec-local:
