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)
This commit is contained in:
parent
bea98f43ad
commit
3f75157b50
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=544701
@ -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,14 +11,19 @@ MASTER_SITES= http://download.pureftpd.org/pub/blogbench/ \
|
||||
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}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user