diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-05-15 11:03:10 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-07-06 10:17:37 -0700 |
commit | 357d498581bdddd608f5b036f7ccc37b8e78f299 (patch) | |
tree | dc8a4ccbed49f2aaba6ccd6a531b36cc15254d46 | |
parent | 7df560dc452cec07affbcfd0ca5678c8b5e5fcc0 (diff) | |
download | meta-clang-357d498581bdddd608f5b036f7ccc37b8e78f299.tar.gz |
clang: Use python2 for scan-view
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/clang/0008-clang-scan-view-needs-python-2.x.patch | 27 | ||||
-rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0008-clang-scan-view-needs-python-2.x.patch b/recipes-devtools/clang/clang/0008-clang-scan-view-needs-python-2.x.patch new file mode 100644 index 0000000..a61ab09 --- /dev/null +++ b/recipes-devtools/clang/clang/0008-clang-scan-view-needs-python-2.x.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 38ea94d7476866d1ba337414e6834c5432140de8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 15 May 2018 10:28:43 -0700 | ||
4 | Subject: [PATCH 8/8] clang: scan-view needs python 2.x | ||
5 | |||
6 | Some distributions e.g. archlinux have switched to pointing | ||
7 | python to python3, therefore its better to be specific about | ||
8 | python version needed. | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | tools/scan-view/bin/scan-view | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/tools/scan-view/bin/scan-view b/tools/scan-view/bin/scan-view | ||
16 | index 1b6e8ba90d..7c5867d1be 100755 | ||
17 | --- a/tools/scan-view/bin/scan-view | ||
18 | +++ b/tools/scan-view/bin/scan-view | ||
19 | @@ -1,4 +1,4 @@ | ||
20 | -#!/usr/bin/env python | ||
21 | +#!/usr/bin/env python2 | ||
22 | |||
23 | """The clang static analyzer results viewer. | ||
24 | """ | ||
25 | -- | ||
26 | 2.17.0 | ||
27 | |||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index a751150..6ed40be 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -18,6 +18,7 @@ CLANGPATCHES = "\ | |||
18 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ | 18 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ |
19 | file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ | 19 | file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ |
20 | file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \ | 20 | file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \ |
21 | file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=tools/clang \ | ||
21 | " | 22 | " |
22 | #CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" | 23 | #CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" |
23 | 24 | ||