[Bug 244781] Mk/Uses/compiler.mk: Broken after LLVM 10 import

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 13 18:24:52 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244781

jinxiaoyong at gmail.com changed:

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

--- Comment #6 from jinxiaoyong at 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
===================================================================
--- compiler.mk (revision 528366)
+++ compiler.mk (working copy)
@@ -79,7 +79,7 @@
 _CCVERSION_${_CC_hash}=        ${_CCVERSION}
 PORTS_ENV_VARS+=       _CCVERSION_${_CC_hash}
 .endif
-COMPILER_VERSION=     
${_CCVERSION:M[0-9]*.[0-9]*:tW:C/([0-9]+)\.([0-9])\.*/\1\2/g}
+COMPILER_VERSION=     
${_CCVERSION:M[0-9]*.[0-9]*:tW:C/([0-9]+)\.([0-9]).*/\1\2/g}
 .if ${_CCVERSION:Mclang}
 COMPILER_TYPE= clang
 .else

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


More information about the freebsd-ports-bugs mailing list