Commit 03489baf authored by Dennis Krupenik's avatar Dennis Krupenik Committed by Kevin Daudt
Browse files

testing/sysbench: new aport

parent 941dbe37
# Contributor: Dennis Krupenik <dennis@krupenik.com>
# Maintainer: Dennis Krupenik <dennis@krupenik.com>
pkgname=sysbench
pkgver=1.0.20
pkgrel=0
pkgdesc="Scriptable database and system performance benchmark"
url="https://github.com/akopytov/sysbench"
arch="x86 x86_64 aarch64"
license="GPL-2.0"
depends_dev="libaio-dev"
makedepends="$depends_dev autoconf automake libtool python3"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/akopytov/sysbench/archive/$pkgver/sysbench-$pkgver.tar.gz
python3-test.patch"
prepare() {
default_prepare
./autogen.sh
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--without-mysql
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="510453f26c4304eee74cff82a99356b668478f97eaf942fa3654a27692743b52d39dda526fa8d136568b5ad136157c8658ae5eb2ae4e8593b161dcd49621f24f sysbench-1.0.20.tar.gz
025b93453d1adb0d9d09dc9c7aea6f76e4f4bfa4a4dd42bfef5658f90852ffe504a58149ab3d39794996d3fde45bad9dbc7ecdf77be80fb3b27cbe54e757d50e python3-test.patch"
From eec24b5cce5f9e4ff04a725306e393f987d743b8 Mon Sep 17 00:00:00 2001
From: Dennis Krupenik <dennis@krupenik.com>
Date: Tue, 8 Sep 2020 14:45:37 +0300
Subject: [PATCH] Prefer python3 to python2
Some distributions do not alias /usr/bin/python3 to /usr/bin/python
---
tests/test_run.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/test_run.sh b/tests/test_run.sh
index 669ed751..17ef0fac 100755
--- a/tests/test_run.sh
+++ b/tests/test_run.sh
@@ -86,6 +86,9 @@ export LUA_PATH
if $(command -v python >/dev/null 2>&1)
then
PYTHON=python
+elif $(command -v python3 >/dev/null 2>&1)
+then
+ PYTHON=python3
elif $(command -v python2 >/dev/null 2>&1)
then
PYTHON=python2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment