aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>2001-08-01 21:17:12 +0000
committerBill Fenner <fenner@FreeBSD.org>2001-08-01 21:17:12 +0000
commitdab2a981dfffd9aeba52a163d616aa27ab8b5c22 (patch)
tree0c4b31bb13ce86d388f8d6780df7d0dae734543f /benchmarks
parent517173833d1d48b4c6d1c035ecb3fd1295c8ee96 (diff)
downloadports-dab2a981dfffd9aeba52a163d616aa27ab8b5c22.tar.gz
ports-dab2a981dfffd9aeba52a163d616aa27ab8b5c22.zip
Don't let patch's auto-RCS-checkout behavior interfere with
applying patches by making the files writable before trying to patch them.
Notes
Notes: svn path=/head/; revision=45714
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/lmbench/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmarks/lmbench/Makefile b/benchmarks/lmbench/Makefile
index a616f99a0971..cf30f25fed8a 100644
--- a/benchmarks/lmbench/Makefile
+++ b/benchmarks/lmbench/Makefile
@@ -31,6 +31,17 @@ test: build
retest: build
@(cd ${WRKSRC}; make rerun)
+# The distribution comes with unwritable files; patch's magic RCS behavior
+# causes files to be checked out of RCS before being patched. If an $Id$
+# string is in the patch, this behavior causes the string to change to
+# reflect the locker, meaning that the patch will probably fail. Instead,
+# just chmod +w the files.
+PATCHEDFILES= src/Makefile scripts/config-run scripts/getbg
+pre-patch:
+.for f in ${PATCHEDFILES}
+ @${CHMOD} +w ${WRKSRC}/${f}
+.endfor
+
pre-install:
[ -d ${PREFIX}/lib/lmbench ] || ${MKDIR} ${PREFIX}/lib/lmbench