SHA256
1
0
forked from pool/llvm

- Add glibc-2.23-libcxx.patch to fix test failures with glibc 2.23

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=429
This commit is contained in:
Ismail Dönmez 2016-03-02 09:09:29 +00:00 committed by Git OBS Bridge
parent 2519a57b99
commit e8b1875bae
4 changed files with 57 additions and 2 deletions

46
glibc-2.23-libcxx.patch Normal file
View File

@ -0,0 +1,46 @@
Index: libcxx-3.7.0.src/test/std/depr/depr.c.headers/math_h.pass.cpp
===================================================================
--- libcxx-3.7.0.src.orig/test/std/depr/depr.c.headers/math_h.pass.cpp
+++ libcxx-3.7.0.src/test/std/depr/depr.c.headers/math_h.pass.cpp
@@ -9,8 +9,6 @@
// <math.h>
-// XFAIL: linux
-
#include <math.h>
#include <type_traits>
#include <cassert>
Index: libcxx-3.7.0.src/test/std/numerics/c.math/cmath_isinf.pass.cpp
===================================================================
--- libcxx-3.7.0.src.orig/test/std/numerics/c.math/cmath_isinf.pass.cpp
+++ libcxx-3.7.0.src/test/std/numerics/c.math/cmath_isinf.pass.cpp
@@ -11,8 +11,6 @@
// isinf
-// XFAIL: linux
-
#include <cmath>
#include <type_traits>
#include <cassert>
@@ -27,4 +25,4 @@ int main()
static_assert((std::is_same<decltype(std::isinf(0)), bool>::value), "");
static_assert((std::is_same<decltype(std::isinf((long double)0)), bool>::value), "");
assert(std::isinf(-1.0) == false);
-}
\ No newline at end of file
+}
Index: libcxx-3.7.0.src/test/std/numerics/c.math/cmath_isnan.pass.cpp
===================================================================
--- libcxx-3.7.0.src.orig/test/std/numerics/c.math/cmath_isnan.pass.cpp
+++ libcxx-3.7.0.src/test/std/numerics/c.math/cmath_isnan.pass.cpp
@@ -11,8 +11,6 @@
// isnan
-// XFAIL: linux
-
#include <cmath>
#include <type_traits>
#include <cassert>

View File

@ -1,7 +1,7 @@
#
# spec file for package lldb
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 2 09:08:12 UTC 2016 - idonmez@suse.com
- Add glibc-2.23-libcxx.patch to fix test failures with glibc 2.23
-------------------------------------------------------------------
Sat Oct 3 17:00:28 UTC 2015 - mimi.vx@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package llvm
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -67,6 +67,7 @@ Patch10: clang-resourcedirs.patch
Patch11: libcxxabi-exceptions.patch
Patch13: llvm-remove-clang-only-flags.patch
Patch15: llvm-fix-find-gcc5-install.patch
Patch16: glibc-2.23-libcxx.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: binutils-devel >= 2.21.90
BuildRequires: bison
@ -168,6 +169,9 @@ This package contains the Python bindings to clang (C language) frontend for LLV
%patch11
%patch13 -p1
%patch15
%if 0%{?suse_version} > 1320
%patch16
%endif
# Move into right place
mv cfe-%{version}.src tools/clang