aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorromain <romain@FreeBSD.org>2016-10-16 17:19:46 +0800
committerromain <romain@FreeBSD.org>2016-10-16 17:19:46 +0800
commitffdb7341a2b48dca4c9ab43e1d6eaa32693467e3 (patch)
tree3ec0439da2c70b66274dd8bce3cb1c5c9cc2f9e5
parent854f9f546ef450f4213195747bf0a601ef853228 (diff)
downloadfreebsd-ports-gnome-ffdb7341a2b48dca4c9ab43e1d6eaa32693467e3.tar.gz
freebsd-ports-gnome-ffdb7341a2b48dca4c9ab43e1d6eaa32693467e3.tar.zst
freebsd-ports-gnome-ffdb7341a2b48dca4c9ab43e1d6eaa32693467e3.zip
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
-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' \