- added config patch (include config-host.h in fio.h, some headers rely on its defines)
--- /dev/null
+--- fio-3.20/fio.h.orig 2020-05-23 19:14:14.000000000 +0200
++++ fio-3.20/fio.h 2020-05-31 07:41:20.001840008 +0200
+@@ -14,6 +14,7 @@
+ #include <inttypes.h>
+ #include <assert.h>
+
++#include "config-host.h"
+ #include "compiler/compiler.h"
+ #include "thread_options.h"
+ #include "flist.h"
--- /dev/null
+--- fio-3.20/gfio.h.orig 2020-05-23 19:14:14.000000000 +0200
++++ fio-3.20/gfio.h 2020-05-31 07:38:31.099999894 +0200
+@@ -53,7 +53,7 @@
+ /*
+ * Main window widgets and data
+ */
+-struct gui {
++extern struct gui {
+ GtkUIManager *uimanager;
+ GtkRecentManager *recentmanager;
+ GtkActionGroup *actiongroup;
+--- fio-3.20/gfio.c.orig 2020-05-23 19:14:14.000000000 +0200
++++ fio-3.20/gfio.c 2020-05-31 07:40:17.605364061 +0200
+@@ -38,6 +38,7 @@
+ #include "gclient.h"
+ #include "graph.h"
+
++struct gui main_ui;
+ static bool gfio_server_running;
+ static unsigned int gfio_graph_limit = 100;
+
Source0: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
# Source0-md5: 5cf2eabf487c51001aceada90f961555
Patch0: %{name}-guasi.patch
+Patch1: %{name}-no-common.patch
+Patch2: %{name}-config.patch
URL: http://git.kernel.dk/?p=fio.git;a=summary
BuildRequires: bison
%{?with_ceph:BuildRequires: ceph-devel}
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%{__sed} -i -e '1s,/usr/bin/bash,/bin/bash,' tools/genfio
%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' tools/{hist/fio-histo-log-pctiles.py,plot/fio2gnuplot}