Date: Tue, 11 Aug 2020 17:01:50 +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-branches@freebsd.org Subject: svn commit: r544701 - branches/2020Q3/benchmarks/blogbench Message-ID: <202008111701.07BH1oik025742@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@gmail.com Approved by: jmohacsi@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@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?202008111701.07BH1oik025742>