Date: Tue, 11 Aug 2020 16:59:12 +0000 (UTC) From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r544699 - head/benchmarks/blogbench Message-ID: <202008111659.07BGxCqw020703@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fernape Date: Tue Aug 11 16:59:11 2020 New Revision: 544699 URL: https://svnweb.freebsd.org/changeset/ports/544699 Log: 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@gmail.com Approved by: jmohacsi@bsd.hu (maintainer) MFH: 2020Q3 (runtime fix) Modified: head/benchmarks/blogbench/Makefile Modified: head/benchmarks/blogbench/Makefile ============================================================================== --- head/benchmarks/blogbench/Makefile Tue Aug 11 16:58:31 2020 (r544698) +++ head/benchmarks/blogbench/Makefile Tue Aug 11 16:59:11 2020 (r544699) @@ -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@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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008111659.07BGxCqw020703>