aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Tartière <romain@FreeBSD.org>2016-10-16 09:19:46 +0000
committerRomain Tartière <romain@FreeBSD.org>2016-10-16 09:19:46 +0000
commit1b28e1174930e142aca704a70e722c94cec7917b (patch)
tree3ec0439da2c70b66274dd8bce3cb1c5c9cc2f9e5
parenteeb39316e3b4129fe7a989e98c51111809fd2c59 (diff)
Fix build on FreeBSD<11
In spite of the 'g', the pattern is only substituted once on FreeBSD 9.x and 10.x, leading to wrong filenames for extracted files, and staging failure. Repeat the pattern enough times so that all '\\' or replaced with '/'. Reported by: pkg-fallout
Notes
svn path=/head/; revision=424052
-rw-r--r--lang/referenceassemblies-pcl/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/referenceassemblies-pcl/Makefile b/lang/referenceassemblies-pcl/Makefile
index 6e252a20b907..55ece9f19279 100644
--- a/lang/referenceassemblies-pcl/Makefile
+++ b/lang/referenceassemblies-pcl/Makefile
@@ -37,7 +37,12 @@ do-extract:
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${NETPORTABLEDIR}
+# XXX: tar(1)'s 'g' flag is broken on FreeBSD<11.
+# Repeat the pattern as a workaround.
tar -xC ${STAGEDIR}${PREFIX}/${NETPORTABLEDIR} -f ${WRKDIR}/PortableReferenceAssemblies.zip \
+ -s'|\\|/|g' \
+ -s'|\\|/|g' \
+ -s'|\\|/|g' \
-s'|\\|/|g'
tar -xC ${STAGEDIR}${PREFIX}/${NETPORTABLEDIR} -f ${DISTDIR}/referenceassemblies-pcl_2014.04.14.orig.tar.bz2 \
-s'|${PRADIR}||g' \