From owner-svn-ports-head@freebsd.org Sun Oct 16 09:19:47 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B0FCC12D31; Sun, 16 Oct 2016 09:19:47 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FE7CEED; Sun, 16 Oct 2016 09:19:47 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9G9Jk3d099525; Sun, 16 Oct 2016 09:19:46 GMT (envelope-from romain@FreeBSD.org) Received: (from romain@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9G9Jkt8099524; Sun, 16 Oct 2016 09:19:46 GMT (envelope-from romain@FreeBSD.org) Message-Id: <201610160919.u9G9Jkt8099524@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: romain set sender to romain@FreeBSD.org using -f From: =?UTF-8?Q?Romain_Tarti=c3=a8re?= Date: Sun, 16 Oct 2016 09:19:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424052 - head/lang/referenceassemblies-pcl X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2016 09:19:47 -0000 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' \