From owner-svn-ports-all@freebsd.org Fri Jan 8 23:41:26 2016 Return-Path: Delivered-To: svn-ports-all@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 E768DA67A4C; Fri, 8 Jan 2016 23:41:26 +0000 (UTC) (envelope-from bdrewery@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 B5B061ADB; Fri, 8 Jan 2016 23:41:26 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u08NfPGD030486; Fri, 8 Jan 2016 23:41:25 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u08NfPBf030485; Fri, 8 Jan 2016 23:41:25 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201601082341.u08NfPBf030485@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Fri, 8 Jan 2016 23:41:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405599 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 23:41:27 -0000 Author: bdrewery Date: Fri Jan 8 23:41:25 2016 New Revision: 405599 URL: https://svnweb.freebsd.org/changeset/ports/405599 Log: Make COMPILER_VERSION more compatible with clang 3.8 trunk. "clang version 3.8.0 (trunk 256945) (based on LLVM 3.8.0svn)" was giving "38 38" was a result. Now duplicates for fmake are trimmed and only the first version found is used for bmake using its :tW. With hat: portmgr In collaboration with: dim Modified: head/Mk/Uses/compiler.mk Modified: head/Mk/Uses/compiler.mk ============================================================================== --- head/Mk/Uses/compiler.mk Fri Jan 8 23:22:54 2016 (r405598) +++ head/Mk/Uses/compiler.mk Fri Jan 8 23:41:25 2016 (r405599) @@ -67,7 +67,11 @@ _COMPILER_ARGS+= features .endif _CCVERSION!= ${CC} --version -COMPILER_VERSION= ${_CCVERSION:M[0-9].[0-9]*:C/([0-9]).([0-9]).*/\1\2/g} +.if defined(.PARSEDIR) +COMPILER_VERSION= ${_CCVERSION:M[0-9].[0-9]*:tW:C/([0-9]).([0-9]).*/\1\2/g} +.else +COMPILER_VERSION= ${_CCVERSION:M[0-9].[0-9]*:C/([0-9]).([0-9]).*/\1\2/g:u} +.endif .if ${_CCVERSION:Mclang} COMPILER_TYPE= clang .else