svn commit: r424052 - head/lang/referenceassemblies-pcl

Romain Tartière romain at FreeBSD.org
Sun Oct 16 09:19:47 UTC 2016


Author: romain
Date: Sun Oct 16 09:19:46 2016
New Revision: 424052
URL: https://svnweb.freebsd.org/changeset/ports/424052

Log:
  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

Modified:
  head/lang/referenceassemblies-pcl/Makefile

Modified: head/lang/referenceassemblies-pcl/Makefile
==============================================================================
--- head/lang/referenceassemblies-pcl/Makefile	Sun Oct 16 09:03:43 2016	(r424051)
+++ head/lang/referenceassemblies-pcl/Makefile	Sun Oct 16 09:19:46 2016	(r424052)
@@ -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' \


More information about the svn-ports-all mailing list