Add patch from Honza Horak to fix build against mariadb 10.2 (RHBZ#1470540)
This commit is contained in:
parent
4f2c5d5b82
commit
772f6addbe
|
@ -0,0 +1,10 @@
|
||||||
|
--- sysbench-1.0.8-orig/src/drivers/mysql/drv_mysql.c 2017-07-13 09:07:07.132681600 +0200
|
||||||
|
+++ sysbench-1.0.8-orig/src/drivers/mysql/drv_mysql.c 2017-07-13 09:07:39.024776526 +0200
|
||||||
|
@@ -35,6 +35,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <mysql.h>
|
||||||
|
+#include <mysql_version.h>
|
||||||
|
#include <mysqld_error.h>
|
||||||
|
#include <errmsg.h>
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
Summary: System performance benchmark
|
Summary: System performance benchmark
|
||||||
Name: sysbench
|
Name: sysbench
|
||||||
Version: 1.0.8
|
Version: 1.0.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source0: https://github.com/akopytov/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/akopytov/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
URL: https://github.com/akopytov/sysbench/
|
URL: https://github.com/akopytov/sysbench/
|
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1470540
|
||||||
|
# https://github.com/akopytov/sysbench/issues/160
|
||||||
|
Patch0: sysbench-1.0.8-fix_build_with_mariadb_10_2.patch
|
||||||
|
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: ck-devel
|
BuildRequires: ck-devel
|
||||||
BuildRequires: docbook-style-xsl
|
BuildRequires: docbook-style-xsl
|
||||||
|
@ -60,6 +64,8 @@ rm -r third_party/luajit/luajit/
|
||||||
rm -r third_party/concurrency_kit/ck/
|
rm -r third_party/concurrency_kit/ck/
|
||||||
%{!?el6:rm -r third_party/cram/}
|
%{!?el6:rm -r third_party/cram/}
|
||||||
|
|
||||||
|
%patch0 -p1 -b .mariadb_10_2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
|
@ -93,6 +99,9 @@ cd tests
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 13 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.8-2
|
||||||
|
- Add patch from Honza Horak to fix build against mariadb 10.2 (RHBZ#1470540).
|
||||||
|
|
||||||
* Wed Jul 05 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.8-1
|
* Wed Jul 05 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.8-1
|
||||||
- Update to 1.0.8.
|
- Update to 1.0.8.
|
||||||
- Fix creation and installation of manual.html file.
|
- Fix creation and installation of manual.html file.
|
||||||
|
|
Loading…
Reference in New Issue