svn commit: r544701 - branches/2020Q3/benchmarks/blogbench
Fernando Apesteguía
fernape at FreeBSD.org
Tue Aug 11 17:01:50 UTC 2020
Author: fernape
Date: Tue Aug 11 17:01:49 2020
New Revision: 544701
URL: https://svnweb.freebsd.org/changeset/ports/544701
Log:
MFH: r544699
benchmarks/blogbench: fix rand()-related crash
blogbench uses rand(3) unsafely from different threads which leads to crashes.
Use arc4random(3) instead.
Bump PORTREVISION
While here, relocate USES variable.
PR: 248420
Submitted by: sigsys at gmail.com
Approved by: jmohacsi at bsd.hu (maintainer)
Approved by: ports-secteam (blanket, runtime fix)
Modified:
branches/2020Q3/benchmarks/blogbench/Makefile
Directory Properties:
branches/2020Q3/ (props changed)
Modified: branches/2020Q3/benchmarks/blogbench/Makefile
==============================================================================
--- branches/2020Q3/benchmarks/blogbench/Makefile Tue Aug 11 17:00:14 2020 (r544700)
+++ branches/2020Q3/benchmarks/blogbench/Makefile Tue Aug 11 17:01:49 2020 (r544701)
@@ -3,6 +3,7 @@
PORTNAME= blogbench
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://download.pureftpd.org/pub/blogbench/ \
ftp://ftp.pureftpd.org/pub/pure-ftpd/misc/blogbench/
@@ -10,13 +11,18 @@ MASTER_SITES= http://download.pureftpd.org/pub/blogben
MAINTAINER= jmohacsi at bsd.hu
COMMENT= Performance Test of Filesystem I/O
-GNU_CONFIGURE= yes
USES= tar:bzip2
+GNU_CONFIGURE= yes
+
PLIST_FILES= bin/blogbench man/man8/blogbench.8.gz
PORTDOCS= README
OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -Ee 's|[[:<:]]rand\(|arc4random(|g' \
+ "${WRKSRC}"/src/*.[ch]
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
More information about the svn-ports-branches
mailing list