Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang/files/9.0.0/, sys-devel/clang/
Date: Tue, 01 Oct 2019 07:01:08
Message-Id: 1569913256.8e7f35cf227ecd05010c9bca29d2431342622f26.mgorny@gentoo
1 commit: 8e7f35cf227ecd05010c9bca29d2431342622f26
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 1 06:15:33 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 1 07:00:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e7f35cf
7
8 sys-devel/clang: Fix test failure due to '.src' in path
9
10 Closes: https://bugs.gentoo.org/695412
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 sys-devel/clang/clang-9.0.0.ebuild | 3 ++
14 ...modules.cpp-test-to-work-when-build-direc.patch | 35 ++++++++++++++++++++++
15 2 files changed, 38 insertions(+)
16
17 diff --git a/sys-devel/clang/clang-9.0.0.ebuild b/sys-devel/clang/clang-9.0.0.ebuild
18 index 4a4b325876a..43b4cf171f1 100644
19 --- a/sys-devel/clang/clang-9.0.0.ebuild
20 +++ b/sys-devel/clang/clang-9.0.0.ebuild
21 @@ -73,6 +73,9 @@ PATCHES=(
22 # fix build with gcc-9.0.0
23 # https://bugs.llvm.org/show_bug.cgi?id=40547
24 "${FILESDIR}"/9.0.0/0002-Initialize-all-fields-in-ABIArgInfo.patch
25 + # fix silly test failure due to '.src' in path
26 + # https://bugs.llvm.org/show_bug.cgi?id=42979
27 + "${FILESDIR}"/9.0.0/0003-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch
28 )
29
30 # Multilib notes:
31
32 diff --git a/sys-devel/clang/files/9.0.0/0003-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch b/sys-devel/clang/files/9.0.0/0003-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch
33 new file mode 100644
34 index 00000000000..250302da8e4
35 --- /dev/null
36 +++ b/sys-devel/clang/files/9.0.0/0003-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch
37 @@ -0,0 +1,35 @@
38 +From f18d747107de3504ceac73abc1ec351fe8f58c95 Mon Sep 17 00:00:00 2001
39 +From: Tom Stellard <tstellar@××××××.com>
40 +Date: Mon, 30 Sep 2019 23:42:17 +0000
41 +Subject: [PATCH] Fix Driver/modules.cpp test to work when build directory name
42 + contains '.s'
43 +
44 +Reviewers: dyung, rsmith, hansw
45 +
46 +Subscribers: mati865, mgorny, cfe-commits
47 +
48 +Tags: #clang
49 +
50 +Differential Revision: https://reviews.llvm.org/D66176
51 +
52 +llvm-svn: 373275
53 +---
54 + clang/test/Driver/modules.cpp | 2 +-
55 + 1 file changed, 1 insertion(+), 1 deletion(-)
56 +
57 +diff --git a/clang/test/Driver/modules.cpp b/clang/test/Driver/modules.cpp
58 +index 7c549c1300f..4f4e3a41400 100644
59 +--- a/test/Driver/modules.cpp
60 ++++ b/test/Driver/modules.cpp
61 +@@ -15,7 +15,7 @@
62 + // RUN: %clang -std=c++2a %t/module.pcm -S -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE
63 + //
64 + // CHECK-COMPILE: -cc1 {{.*}} {{-emit-obj|-S}}
65 +-// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}}
66 ++// CHECK-COMPILE-SAME: -o {{.*}}module{{2*}}.pcm.o
67 + // CHECK-COMPILE-SAME: -x pcm
68 + // CHECK-COMPILE-SAME: {{.*}}.pcm
69 +
70 +--
71 +2.23.0
72 +