pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/benchmarks/bonnie++ bonnie++: Bump revision.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1dd05a8251e9
branches:  trunk
changeset: 769794:1dd05a8251e9
user:      rin <rin%pkgsrc.org@localhost>
date:      Sat Nov 20 05:57:28 2021 +0000

description:
bonnie++: Bump revision.

- Fix RELRO support.
- Cast double variable into int when printf with %d.
- Rename patch-ab to patch-Makefile.in.

diffstat:

 benchmarks/bonnie++/Makefile                   |   3 +-
 benchmarks/bonnie++/distinfo                   |   6 +-
 benchmarks/bonnie++/patches/patch-Makefile.in  |  63 ++++++++++++++++++++++++++
 benchmarks/bonnie++/patches/patch-ab           |  57 -----------------------
 benchmarks/bonnie++/patches/patch-bon_time.cpp |  15 ++++++
 benchmarks/bonnie++/patches/patch-configure    |  15 ++++++
 6 files changed, 99 insertions(+), 60 deletions(-)

diffs (196 lines):

diff -r adfc84b2e09d -r 1dd05a8251e9 benchmarks/bonnie++/Makefile
--- a/benchmarks/bonnie++/Makefile      Sat Nov 20 00:31:18 2021 +0000
+++ b/benchmarks/bonnie++/Makefile      Sat Nov 20 05:57:28 2021 +0000
@@ -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 -r adfc84b2e09d -r 1dd05a8251e9 benchmarks/bonnie++/distinfo
--- a/benchmarks/bonnie++/distinfo      Sat Nov 20 00:31:18 2021 +0000
+++ b/benchmarks/bonnie++/distinfo      Sat Nov 20 05:57:28 2021 +0000
@@ -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 -r adfc84b2e09d -r 1dd05a8251e9 benchmarks/bonnie++/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/bonnie++/patches/patch-Makefile.in     Sat Nov 20 05:57:28 2021 +0000
@@ -0,0 +1,63 @@
+$NetBSD: patch-Makefile.in,v 1.1 2021/11/20 05:57:29 rin Exp $
+
+- 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)
+-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 +35,13 @@
+ GETCHOBJS=$(GETCHSRC:.cpp=.o)
+ 
+ bonnie++: $(BONOBJS)
+-      $(LINK) -o bonnie++ $(BONOBJS) $(THREAD_LFLAGS)
++      $(LINK) -o bonnie++ $(BONOBJS) $(THREAD_LDFLAGS)
+ 
+ zcav: $(ZCAVOBJS)
+-      $(LINK) -o zcav $(ZCAVOBJS) $(THREAD_LFLAGS)
++      $(LINK) -o zcav $(ZCAVOBJS) $(THREAD_LDFLAGS)
+ 
+ getc_putc: $(GETCOBJS) getc_putc_helper
+-      $(LINK) -o getc_putc $(GETCOBJS) $(THREAD_LFLAGS)
++      $(LINK) -o getc_putc $(GETCOBJS) $(THREAD_LDFLAGS)
+ 
+ getc_putc_helper: $(GETCHOBJS)
+       $(CXX) -o getc_putc_helper $(GETCHOBJS)
+@@ -52,15 +53,15 @@
+       $(LINK) generate_randfile.o -o generate_randfile
+ 
+ install-bin: $(EXE) $(EXES)
+-      mkdir -p $(eprefix)/bin $(eprefix)/sbin
+-      @INSTALL_PROGRAM@ @stripping@ $(EXES) $(eprefix)/sbin
+-      @INSTALL_PROGRAM@ @stripping@ $(EXE) $(eprefix)/bin
+-      @INSTALL_SCRIPT@ $(SCRIPTS) $(eprefix)/bin
++      mkdir -p $(eprefix)/bin ${DESTDIR}$(eprefix)/sbin
++      @INSTALL_PROGRAM@ @stripping@ $(EXES) ${DESTDIR}$(eprefix)/sbin
++      @INSTALL_PROGRAM@ @stripping@ $(EXE) ${DESTDIR}$(eprefix)/bin
++      @INSTALL_SCRIPT@ $(SCRIPTS) ${DESTDIR}$(eprefix)/bin
+ 
+ install: install-bin
+-      mkdir -p @mandir@/man1 @mandir@/man8
+-      @INSTALL_DATA@ $(MAN1) @mandir@/man1
+-      @INSTALL_DATA@ $(MAN8) @mandir@/man8
++      mkdir -p @mandir@/man1 ${DESTDIR}@mandir@/man8
++      @INSTALL_DATA@ $(MAN1) ${DESTDIR}@mandir@/man1
++      @INSTALL_DATA@ $(MAN8) ${DESTDIR}@mandir@/man8
+ 
+ %.o: %.cpp
+       $(CXX) -c $<
diff -r adfc84b2e09d -r 1dd05a8251e9 benchmarks/bonnie++/patches/patch-ab
--- a/benchmarks/bonnie++/patches/patch-ab      Sat Nov 20 00:31:18 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-$NetBSD: patch-ab,v 1.6 2018/06/01 10:55:52 maya Exp $
-
---- Makefile.in.orig   2008-12-30 21:04:25.000000000 +0000
-+++ Makefile.in
-@@ -9,10 +9,10 @@ prefix=@prefix@
- 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@
--THREAD_LFLAGS=@thread_ldflags@
-+THREAD_LDFLAGS=@thread_ldflags@
- 
- INSTALL=@INSTALL@
- INSTALL_PROGRAM=@INSTALL_PROGRAM@
-@@ -34,13 +34,13 @@ GETCHSRC=getc_putc_helper.cpp duration.c
- GETCHOBJS=$(GETCHSRC:.cpp=.o)
- 
- bonnie++: $(BONOBJS)
--      $(LINK) -o bonnie++ $(BONOBJS) $(THREAD_LFLAGS)
-+      $(LINK) -o bonnie++ $(BONOBJS) $(THREAD_LDFLAGS)
- 
- zcav: $(ZCAVOBJS)
--      $(LINK) -o zcav $(ZCAVOBJS) $(THREAD_LFLAGS)
-+      $(LINK) -o zcav $(ZCAVOBJS) $(THREAD_LDFLAGS)
- 
- getc_putc: $(GETCOBJS) getc_putc_helper
--      $(LINK) -o getc_putc $(GETCOBJS) $(THREAD_LFLAGS)
-+      $(LINK) -o getc_putc $(GETCOBJS) $(THREAD_LDFLAGS)
- 
- getc_putc_helper: $(GETCHOBJS)
-       $(CXX) -o getc_putc_helper $(GETCHOBJS)
-@@ -52,15 +52,15 @@ generate_randfile: generate_randfile.o
-       $(LINK) generate_randfile.o -o generate_randfile
- 
- install-bin: $(EXE) $(EXES)
--      mkdir -p $(eprefix)/bin $(eprefix)/sbin
--      @INSTALL_PROGRAM@ @stripping@ $(EXES) $(eprefix)/sbin
--      @INSTALL_PROGRAM@ @stripping@ $(EXE) $(eprefix)/bin
--      @INSTALL_SCRIPT@ $(SCRIPTS) $(eprefix)/bin
-+      mkdir -p $(eprefix)/bin ${DESTDIR}$(eprefix)/sbin
-+      @INSTALL_PROGRAM@ @stripping@ $(EXES) ${DESTDIR}$(eprefix)/sbin
-+      @INSTALL_PROGRAM@ @stripping@ $(EXE) ${DESTDIR}$(eprefix)/bin
-+      @INSTALL_SCRIPT@ $(SCRIPTS) ${DESTDIR}$(eprefix)/bin
- 
- install: install-bin
--      mkdir -p @mandir@/man1 @mandir@/man8
--      @INSTALL_DATA@ $(MAN1) @mandir@/man1
--      @INSTALL_DATA@ $(MAN8) @mandir@/man8
-+      mkdir -p @mandir@/man1 ${DESTDIR}@mandir@/man8
-+      @INSTALL_DATA@ $(MAN1) ${DESTDIR}@mandir@/man1
-+      @INSTALL_DATA@ $(MAN8) ${DESTDIR}@mandir@/man8
- 
- %.o: %.cpp
-       $(CXX) -c $<
diff -r adfc84b2e09d -r 1dd05a8251e9 benchmarks/bonnie++/patches/patch-bon_time.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/bonnie++/patches/patch-bon_time.cpp    Sat Nov 20 05:57:28 2021 +0000
@@ -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 -r adfc84b2e09d -r 1dd05a8251e9 benchmarks/bonnie++/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/bonnie++/patches/patch-configure       Sat Nov 20 05:57:28 2021 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index