summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorrin <rin@pkgsrc.org>2021-11-20 05:57:28 +0000
committerrin <rin@pkgsrc.org>2021-11-20 05:57:28 +0000
commit59c6028aecdfe3e59f29eb214d7b340a6d1edc81 (patch)
treeb00fdc876e4df2c4ab78976032a60654700ef68b /benchmarks
parentb1856afd753dcbf53a14c22edf501c8a7df6594a (diff)
downloadpkgsrc-59c6028aecdfe3e59f29eb214d7b340a6d1edc81.tar.gz
bonnie++: Bump revision.
- Fix RELRO support. - Cast double variable into int when printf with %d. - Rename patch-ab to patch-Makefile.in.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/bonnie++/Makefile3
-rw-r--r--benchmarks/bonnie++/distinfo6
-rw-r--r--benchmarks/bonnie++/patches/patch-Makefile.in (renamed from benchmarks/bonnie++/patches/patch-ab)24
-rw-r--r--benchmarks/bonnie++/patches/patch-bon_time.cpp15
-rw-r--r--benchmarks/bonnie++/patches/patch-configure15
5 files changed, 51 insertions, 12 deletions
diff --git a/benchmarks/bonnie++/Makefile b/benchmarks/bonnie++/Makefile
index ebaad2dade1..e03c6180beb 100644
--- a/benchmarks/bonnie++/Makefile
+++ b/benchmarks/bonnie++/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.42 2021/07/10 01:43:57 markd Exp $
+# $NetBSD: Makefile,v 1.43 2021/11/20 05:57:28 rin Exp $
#
DISTNAME= bonnie++-1.98
+PKGREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://www.coker.com.au/bonnie++/
EXTRACT_SUFX= .tgz
diff --git a/benchmarks/bonnie++/distinfo b/benchmarks/bonnie++/distinfo
index 74a5b0e50d5..c86eb7d45de 100644
--- a/benchmarks/bonnie++/distinfo
+++ b/benchmarks/bonnie++/distinfo
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.15 2021/10/26 10:02:51 nia Exp $
+$NetBSD: distinfo,v 1.16 2021/11/20 05:57:28 rin Exp $
BLAKE2s (bonnie++-1.98.tgz) = 18bd3fd99055e0dd2e09e534400a9f8d00fc4a12a631e996eb76aa52c41622f1
SHA512 (bonnie++-1.98.tgz) = 3cf70be4a20c58c80e29a140ec6d3c3884f1b4101e0fb63da0ea831fe4a5eb4e275bda2ce4eaf7d9c2bfb65742e985249b491cda8bdad85984a62f2fc19756c0
Size (bonnie++-1.98.tgz) = 100339 bytes
-SHA1 (patch-ab) = 18756a4f3efaf8d478c3edc5be424c099c47e374
+SHA1 (patch-Makefile.in) = f5a63ab563236d1ab530a5e65120b254afcec9f7
SHA1 (patch-bon__io.cpp) = 2ce4504424c8fbf88ee5d1eb21e3556f541a05f4
SHA1 (patch-bon_csv2html.cpp) = 98a9336418b38b8ff56824155e370bd294c251fd
+SHA1 (patch-bon_time.cpp) = ccff7d0b8e19da3c1faf7ef0c05f6bec7a757f04
+SHA1 (patch-configure) = 8ab35b98bc88d1928eb9b405746bd2429ca2ad5c
SHA1 (patch-port.h.in) = 089d93456efab27a91d5574ed6b8f5956a734620
diff --git a/benchmarks/bonnie++/patches/patch-ab b/benchmarks/bonnie++/patches/patch-Makefile.in
index 51f8ce482a9..46346767e24 100644
--- a/benchmarks/bonnie++/patches/patch-ab
+++ b/benchmarks/bonnie++/patches/patch-Makefile.in
@@ -1,21 +1,27 @@
-$NetBSD: patch-ab,v 1.6 2018/06/01 10:55:52 maya Exp $
+$NetBSD: patch-Makefile.in,v 1.1 2021/11/20 05:57:29 rin Exp $
---- Makefile.in.orig 2008-12-30 21:04:25.000000000 +0000
-+++ Makefile.in
-@@ -9,10 +9,10 @@ prefix=@prefix@
+- DESTDIR support
+- CFLAGS and LDFLAGS support for large file and relro
+
+--- Makefile.in.orig 2008-12-31 06:04:25.000000000 +0900
++++ Makefile.in 2021-11-17 19:42:27.075733292 +0900
+@@ -9,10 +9,11 @@
eprefix=@exec_prefix@
#MORE_WARNINGS=-Weffc++
WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -Wcast-align -Wsign-compare -Wpointer-arith -Wwrite-strings -Wformat-security -Wswitch-enum -Winit-self $(MORE_WARNINGS)
-CFLAGS=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
-+CFLAGS+=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
- CXX=@CXX@ $(CFLAGS)
- LINK=@CXX@
+-CXX=@CXX@ $(CFLAGS)
+-LINK=@CXX@
-THREAD_LFLAGS=@thread_ldflags@
++CFLAGS+=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
++LDFLAGS=@LDFLAGS@
++CXX=@CXX@ $(CFLAGS) $(LDFLAGS)
++LINK=@CXX@ $(LDFLAGS)
+THREAD_LDFLAGS=@thread_ldflags@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
-@@ -34,13 +34,13 @@ GETCHSRC=getc_putc_helper.cpp duration.c
+@@ -34,13 +35,13 @@
GETCHOBJS=$(GETCHSRC:.cpp=.o)
bonnie++: $(BONOBJS)
@@ -32,7 +38,7 @@ $NetBSD: patch-ab,v 1.6 2018/06/01 10:55:52 maya Exp $
getc_putc_helper: $(GETCHOBJS)
$(CXX) -o getc_putc_helper $(GETCHOBJS)
-@@ -52,15 +52,15 @@ generate_randfile: generate_randfile.o
+@@ -52,15 +53,15 @@
$(LINK) generate_randfile.o -o generate_randfile
install-bin: $(EXE) $(EXES)
diff --git a/benchmarks/bonnie++/patches/patch-bon_time.cpp b/benchmarks/bonnie++/patches/patch-bon_time.cpp
new file mode 100644
index 00000000000..edcec5262d5
--- /dev/null
+++ b/benchmarks/bonnie++/patches/patch-bon_time.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-bon_time.cpp,v 1.1 2021/11/20 05:57:29 rin Exp $
+
+Cast double variable into int when printf with %d.
+
+--- bon_time.cpp.orig 2021-11-18 11:35:23.646872320 +0900
++++ bon_time.cpp 2021-11-18 11:36:15.386982308 +0900
+@@ -146,7 +146,7 @@ int BonTimer::print_stat(tests_t test, i
+ }
+ else
+ {
+- fprintf(m_fp, " %5d", stat);
++ fprintf(m_fp, " %5d", (int)stat);
+ }
+ }
+ else
diff --git a/benchmarks/bonnie++/patches/patch-configure b/benchmarks/bonnie++/patches/patch-configure
new file mode 100644
index 00000000000..016e2c99764
--- /dev/null
+++ b/benchmarks/bonnie++/patches/patch-configure
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2021/11/20 05:57:29 rin Exp $
+
+Do not clobber LDFLAGS.
+
+--- configure.orig 2018-09-13 22:07:36.000000000 +0900
++++ configure 2021-11-17 19:51:35.412026321 +0900
+@@ -3963,8 +3963,6 @@
+ linux_pthread="#define LINUX_PTHREAD"
+ fi
+
+-LDFLAGS=-lpthread
+-
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <pthread.h>