From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/, sys-devel/llvm/files/
Date: Sun, 3 Jul 2016 07:17:54 +0000 (UTC) [thread overview]
Message-ID: <1467530264.bcee044c4c0e9f12b663f8886f181a7d46acea66.mgorny@gentoo> (raw)
commit: bcee044c4c0e9f12b663f8886f181a7d46acea66
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 3 06:50:42 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 3 07:17:44 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcee044c
sys-devel/llvm: Fix static analyzer -isystem support, #586168
.../llvm/files/clang-3.7.1-ccc-analyzer-isystem.patch | 18 ++++++++++++++++++
sys-devel/llvm/llvm-3.7.1-r3.ebuild | 3 +++
2 files changed, 21 insertions(+)
diff --git a/sys-devel/llvm/files/clang-3.7.1-ccc-analyzer-isystem.patch b/sys-devel/llvm/files/clang-3.7.1-ccc-analyzer-isystem.patch
new file mode 100644
index 0000000..78ca922
--- /dev/null
+++ b/sys-devel/llvm/files/clang-3.7.1-ccc-analyzer-isystem.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/586168
+
+Index: tools/clang/tools/scan-build/ccc-analyzer
+===================================================================
+--- a/tools/clang/tools/scan-build/ccc-analyzer (revision 250980)
++++ b/tools/clang/tools/scan-build/ccc-analyzer (working copy)
+@@ -586,9 +586,9 @@
+ }
+
+ # Compile mode flags.
+- if ($Arg =~ /^-[D,I,U,isystem](.*)$/) {
++ if ($Arg =~ /^-(D|I|U|isystem)(.*)$/) {
+ my $Tmp = $Arg;
+- if ($1 eq '') {
++ if ($2 eq '') {
+ # FIXME: Check if we are going off the end.
+ ++$i;
+ $Tmp = $Arg . $ARGV[$i];
diff --git a/sys-devel/llvm/llvm-3.7.1-r3.ebuild b/sys-devel/llvm/llvm-3.7.1-r3.ebuild
index d134a06..5f6e184 100644
--- a/sys-devel/llvm/llvm-3.7.1-r3.ebuild
+++ b/sys-devel/llvm/llvm-3.7.1-r3.ebuild
@@ -189,6 +189,9 @@ src_prepare() {
eapply "${FILESDIR}"/clang-3.4-darwin_prefix-include-paths.patch
eprefixify tools/clang/lib/Frontend/InitHeaderSearch.cpp
+ # Fix -isystem support in ccc-analyzer
+ eapply "${FILESDIR}"/clang-3.7.1-ccc-analyzer-isystem.patch
+
sed -i -e "s^@EPREFIX@^${EPREFIX}^" \
tools/clang/tools/scan-build/scan-build || die
next reply other threads:[~2016-07-03 7:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-03 7:17 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-08-02 17:24 [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/, sys-devel/llvm/files/ Matthias Maier
2016-07-05 19:04 Michał Górny
2016-03-28 21:31 Michał Górny
2016-03-28 15:57 Michał Górny
2016-01-25 15:28 Bernard Cafarelli
2016-01-07 22:10 Michał Górny
2016-01-07 22:10 Michał Górny
2016-01-07 22:10 Michał Górny
2015-12-02 19:55 Michał Górny
2015-08-24 15:03 Bernard Cafarelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467530264.bcee044c4c0e9f12b663f8886f181a7d46acea66.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox