Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2016 09:19:46 +0000 (UTC)
From:      =?UTF-8?Q?Romain_Tarti=c3=a8re?= <romain@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424052 - head/lang/referenceassemblies-pcl
Message-ID:  <201610160919.u9G9Jkt8099524@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610160919.u9G9Jkt8099524>