From ffdb7341a2b48dca4c9ab43e1d6eaa32693467e3 Mon Sep 17 00:00:00 2001 From: romain Date: Sun, 16 Oct 2016 09:19:46 +0000 Subject: 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 --- lang/referenceassemblies-pcl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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' \ -- cgit