From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44996) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOB8K-0004KZ-9d for guix-patches@gnu.org; Mon, 13 Apr 2020 22:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOB8I-0000eB-Rq for guix-patches@gnu.org; Mon, 13 Apr 2020 22:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOB8I-0000e7-Od for guix-patches@gnu.org; Mon, 13 Apr 2020 22:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOB8I-0002mR-KB for guix-patches@gnu.org; Mon, 13 Apr 2020 22:17:02 -0400 Subject: [bug#40617] sysbench (New package) Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:42142) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOAnR-0005aF-02 for guix-patches@gnu.org; Mon, 13 Apr 2020 21:55:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOAnP-0001xV-Mz for guix-patches@gnu.org; Mon, 13 Apr 2020 21:55:28 -0400 Received: from 216-80-121-173.s13.demp-ubr2.chi-demp.il.static.cable.rcncustomer.com ([216.80.121.173]:51894 helo=ericcbrown.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOAnP-0001x7-Fd for guix-patches@gnu.org; Mon, 13 Apr 2020 21:55:27 -0400 Received: from localhost (unknown [192.168.1.1]) by ericcbrown.com (Postfix) with ESMTPSA id 2E8833D6874C for ; Mon, 13 Apr 2020 20:55:26 -0500 (CDT) From: Eric Brown Date: Mon, 13 Apr 2020 20:55:25 -0500 Message-ID: <874ktm7rw2.fsf@ericcbrown.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40617@debbugs.gnu.org --=-=-= Content-Type: text/plain Dear All, Please see attached a patch for sysbench, a benchmarking utility. Best regards, Eric --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=sysbench.patch Content-Transfer-Encoding: quoted-printable Content-Description: sysbench patch >From 4906fb3db0482cbb5862f8f56e6e107499dee2d8 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Mon, 13 Apr 2020 20:34:11 -0500 Subject: [PATCH] gnu: Add sysbench. * gnu/packages/benchmark.scm (sysbench): New variable. --- gnu/packages/benchmark.scm | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm index 4e6c416518..b27cd5436e 100644 --- a/gnu/packages/benchmark.scm +++ b/gnu/packages/benchmark.scm @@ -7,6 +7,7 @@ ;;; Copyright =C2=A9 2019 G=C3=A1bor Boskovits ;;; Copyright =C2=A9 2019 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2020 Vincent Legoll +;;; Copyright =C2=A9 2020 Eric Brown ;;; ;;; This file is part of GNU Guix. ;;; @@ -31,16 +32,22 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages databases) #:use-module (gnu packages linux) + #:use-module (gnu packages lua) + #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages storage) + #:use-module (gnu packages tls) #:use-module (ice-9 match)) =20 (define-public fio @@ -258,3 +265,60 @@ benchmark how your file systems perform with respect t= o data read and write speed, the number of seeks that can be performed per second, and the numbe= r of file metadata operations that can be performed per second.") (license license:gpl2))) ;GPL 2 only, see copyright.txt + +(define-public sysbench + (package + (name "sysbench") + (version "1.0.19") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/akopytov/sysbench") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zgqb9cr7ld3vw4a3jhq1mlszhcyjlpr0c8q1jcp1d27l9dcvd1w")) + (modules '((guix build utils))))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; until shebangs fixed + #:configure-flags '("--with-system-luajit") + #:phases + (modify-phases %standard-phases + (delete 'bootstrap) + (add-after 'patch-source-shebangs 'libtoolize + (lambda _ (invoke "libtoolize" "--copy" "--force"))) + (add-after 'libtoolize 'aclocal + (lambda _ (invoke "aclocal" "-I" "m4"))) + (add-after 'aclocal 'autoreconf + (lambda _ (invoke "autoreconf" "--install"))) + (add-after 'autoreconf 'automake + (lambda _ (invoke "automake" + "-c" "--foreign" "--add-missing"))) + (add-after 'automake 'autoconf + (lambda _ (invoke "autoconf")))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("lua" ,lua) + ("m4" ,m4) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("python" ,python-minimal))) + (inputs + `(("libaio" ,libaio) + ("luajit" ,luajit) + ("mysql" ,mysql) + ("openssl" ,openssl) + ("postgresql" ,postgresql) + ("zlib" ,zlib))) + (home-page "https://github.com/akopytov/sysbench/") + (synopsis "Scriptable multi-threaded benchmark tool ") + (description "sysbench is a scriptable multi-threaded benchmark tool b= ased +on LuaJIT. It is most frequently used for database benchmarks, but can als= o be +used to create arbitrarily complex workloads that do not involve a database +server.") + (license license:gpl2+))) + --=20 2.26.0 --=-=-=--