Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2020 18:24:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244781] Mk/Uses/compiler.mk: Broken after LLVM 10 import
Message-ID:  <bug-244781-7788-zmzBVUUy7l@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244781-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244781-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244781

jinxiaoyong@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jinxiaoyong@gmail.com

--- Comment #6 from jinxiaoyong@gmail.com ---
With the new commit to compiler.mk, I'm getting

$ make -V COMPILER_VERSION
801 801)
$ clang --version
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM
8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin

So every ports that compares COMPILER_VERSION would treat it as a string and
error out.

I made a simple change to fix this

$ svnlite diff
Index: compiler.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- compiler.mk (revision 528366)
+++ compiler.mk (working copy)
@@ -79,7 +79,7 @@
 _CCVERSION_${_CC_hash}=3D        ${_CCVERSION}
 PORTS_ENV_VARS+=3D       _CCVERSION_${_CC_hash}
 .endif
-COMPILER_VERSION=3D=20=20=20=20=20
${_CCVERSION:M[0-9]*.[0-9]*:tW:C/([0-9]+)\.([0-9])\.*/\1\2/g}
+COMPILER_VERSION=3D=20=20=20=20=20
${_CCVERSION:M[0-9]*.[0-9]*:tW:C/([0-9]+)\.([0-9]).*/\1\2/g}
 .if ${_CCVERSION:Mclang}
 COMPILER_TYPE=3D clang
 .else

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244781-7788-zmzBVUUy7l>