Date: Wed, 16 Mar 2016 06:12:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 208052] devel/llvm38: wrong patch for ccc-analyzer causes a lot of warning Message-ID: <bug-208052-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208052 Bug ID: 208052 Summary: devel/llvm38: wrong patch for ccc-analyzer causes a lot of warning Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: brooks@FreeBSD.org Reporter: afiskon@devzen.ru Assignee: brooks@FreeBSD.org Flags: maintainer-feedback?(brooks@FreeBSD.org) $ cat files/clang-patch-tools_clang_tools_scan-build_libexec_ccc-analyzer $FreeBSD$ --- tools/clang/tools/scan-build/libexec/ccc-analyzer.orig +++ tools/clang/tools/scan-build/libexec/ccc-analyzer @@ -81,6 +81,9 @@ if (-x "/usr/bin/xcrun") { $UseXCRUN =3D 1; } +} elsif (`uname -s` =3D=3D "FreeBSD") { + $DefaultCCompiler =3D 'cc'; + $DefaultCXXCompiler =3D 'c++'; } else { $DefaultCCompiler =3D 'gcc'; $DefaultCXXCompiler =3D 'g++'; With this patch running scan-build gives a lot of warnings like this: ``` Argument "FreeBSD" isn't numeric in numeric eq (=3D=3D) at /usr/local/llvm38/bin/../libexec/ccc-analyzer line 84. Argument "FreeBSD\n" isn't numeric in numeric eq (=3D=3D) at /usr/local/llvm38/bin/../libexec/ccc-analyzer line 84. ``` Besides newline character is missing in "FreeBSD" string. So it should be actually: elsif(`uname -s` eq "FreeBSD\n") --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208052-13>