Accepting request 78647 from devel:tools:compiler

- Update to r137452
  * Fix problems found by PVS-Studio
  * More AVX fixes
  * Many C++ fixes
- Add assume-opensuse.patch to remove dependency on openSUSE-release

OBS-URL: https://build.opensuse.org/request/show/78647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/llvm?expand=0&rev=8
This commit is contained in:
Sascha Peilicke 2011-08-15 09:45:34 +00:00 committed by Git OBS Bridge
commit 465ba1b569
5 changed files with 30 additions and 6 deletions

12
assume-opensuse.patch Normal file
View File

@ -0,0 +1,12 @@
--- tools/clang/lib/Driver/ToolChains.cpp 2011-08-12 11:19:35.000000000 +0200
+++ tools/clang/lib/Driver/ToolChains.cpp 2011-08-12 12:10:47.733446958 +0200
@@ -1346,8 +1346,7 @@
}
static bool IsOpenSuse(enum LinuxDistro Distro) {
- return Distro == OpenSuse11_3 || Distro == OpenSuse11_4 ||
- Distro == OpenSuse12_1;
+ return true;
}
static bool IsDebian(enum LinuxDistro Distro) {

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ae70fae97209d33a1c69522d71f7b94eec12512a18918365994ff24d40d90e2
size 12090920

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8fb480c2b5b6ed1510e8e440b6d445190e206ddb870b3e9f34a158dda95206bd
size 12116392

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Aug 12 09:22:18 UTC 2011 - idonmez@novell.com
- Update to r137452
* Fix problems found by PVS-Studio
* More AVX fixes
* Many C++ fixes
- Add assume-opensuse.patch to remove dependency on openSUSE-release
-------------------------------------------------------------------
Wed Aug 3 11:18:31 UTC 2011 - idonmez@novell.com

View File

@ -17,7 +17,7 @@
%define _sharedir %{_prefix}/share
%define _revision 136773
%define _revision 137452
%define _release_version 3.0
%if 0%{?suse_version} >= 1200
@ -27,7 +27,7 @@
%endif
Name: llvm
Version: 2.9.99.svn20110803
Version: 2.9.99.svn20110812
Release: 1
License: NCSA
Summary: Low Level Virtual Machine
@ -39,6 +39,8 @@ Source100: %{name}-rpmlintrc
Patch1: set-revision.patch
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Use correct lib prefix
Patch2: clang-cmake-lib.patch
# PATCH-FIX-OPENSUSE assume-opensuse.patch idoenmez@suse.de -- Always enable openSUSE/SUSE features
Patch3: assume-opensuse.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@ -51,7 +53,6 @@ BuildRequires: flex
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: openSUSE-release
BuildRequires: python-devel
BuildRequires: tcl-devel
BuildRequires: tk-devel
@ -135,6 +136,7 @@ This package contains vim plugins for LLVM like syntax highlighting.
%setup -q
%patch1
%patch2
%patch3
sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp
%build
@ -274,6 +276,7 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*
%defattr(-,root,root)
%doc *.TXT *.txt
%{_bindir}/bugpoint
%{_bindir}/diagtool
%{_bindir}/llc
%{_bindir}/lli
%{_bindir}/macho-dump