Hello community,

here is the log from the commit of package fio for openSUSE:Factory checked in 
at 2019-10-09 15:19:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fio (Old)
 and      /work/SRC/openSUSE:Factory/.fio.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fio"

Wed Oct  9 15:19:34 2019 rev:51 rq:736304 version:3.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/fio/fio.changes  2019-07-04 15:44:22.334212312 
+0200
+++ /work/SRC/openSUSE:Factory/.fio.new.2352/fio.changes        2019-10-09 
15:19:37.856471466 +0200
@@ -1,0 +2,10 @@
+Tue Oct  8 00:00:00 CEST 2019 - dste...@suse.cz
+
+- Update to version 3.16:
+  * new: NBD support
+  * new: ZBD support
+  * for the rest see http://brick.kernel.dk/snaps/fio-3.16.shortlog.txt
+- Added patches:
+  * 0001-Fix-compilation-error-with-gfio.patch
+
+-------------------------------------------------------------------

Old:
----
  fio-3.14.tar.bz2

New:
----
  0001-Fix-compilation-error-with-gfio.patch
  fio-3.16.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fio.spec ++++++
--- /var/tmp/diff_new_pack.uR8q82/_old  2019-10-09 15:19:38.400470063 +0200
+++ /var/tmp/diff_new_pack.uR8q82/_new  2019-10-09 15:19:38.404470053 +0200
@@ -37,7 +37,7 @@
 %endif
 
 Name:           fio
-Version:        3.14
+Version:        3.16
 Release:        0
 Summary:        Flexible I/O tester
 License:        GPL-2.0-only
@@ -45,6 +45,7 @@
 Url:            http://git.kernel.dk/?p=fio.git;a=summary
 Source:         http://brick.kernel.dk/snaps/fio-%{version}.tar.bz2
 Patch0:         fio.python2.patch
+Patch1:         0001-Fix-compilation-error-with-gfio.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gtk2-devel
 BuildRequires:  libaio-devel
@@ -99,6 +100,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 sed -i "s|%{_bindir}/bash|/bin/bash|g" tools/genfio

++++++ 0001-Fix-compilation-error-with-gfio.patch ++++++
>From 5b215853ed4b438b5b2d4ac3e56d5f0d19e145d9 Mon Sep 17 00:00:00 2001
From: Anatol Pomozov <anatol.pomo...@gmail.com>
Date: Mon, 23 Sep 2019 14:12:12 -0700
Subject: [PATCH] Fix compilation error with gfio
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Commit 36833fb04 replaced many usages of strncpy with snprintf.
But there is one place where new arguments were added but the function
name has not been changed. It leads to the following compilation error:

gclient.c:333:2: error: too many arguments to function ‘strncpy’
  333 |  strncpy(message, sizeof(message), "%s", status_message);
      |  ^~~~~~~
In file included from /usr/include/features.h:450,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:25,
                 from gclient.c:1:
/usr/include/bits/string_fortified.h:103:1: note: declared here
  103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
      | ^~~~~

Signed-off-by: Anatol Pomozov <anatol.pomo...@gmail.com>
---
 gclient.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gclient.c b/gclient.c
index 64324177ef1a..d8dc62d28aca 100644
--- a/gclient.c
+++ b/gclient.c
@@ -330,7 +330,7 @@ static void gfio_update_thread_status_all(struct gui *ui, 
char *status_message,
        static char message[100];
        const char *m = message;
 
-       strncpy(message, sizeof(message), "%s", status_message);
+       snprintf(message, sizeof(message), "%s", status_message);
        gtk_progress_bar_set_text(GTK_PROGRESS_BAR(ui->thread_status_pb), m);
        gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(ui->thread_status_pb), 
perc / 100.0);
        gtk_widget_queue_draw(ui->window);
-- 
2.23.0

++++++ fio-3.14.tar.bz2 -> fio-3.16.tar.bz2 ++++++
++++ 3288 lines of diff (skipped)


Reply via email to