llvm: update to 3.0.

This commit is contained in:
Juan RP 2011-12-02 09:49:47 +01:00
parent 3c16cbb069
commit 532f26a7d8
16 changed files with 17 additions and 129 deletions

View File

@ -921,3 +921,5 @@ libyaml-0.so.2 libyaml libyaml-devel
libgtksourceviewmm-3.0.so.0 gtksourceviewmm gtksourceviewmm-devel
libyajl.so.2 yajl yajl-devel
libconfuse.so.0 confuse confuse-devel
libLLVM-3.0.so libllvm llvm-devel
libclang.so libclang libclang-devel

View File

@ -13,7 +13,6 @@ long_desc="
rest of Clang, the analyzer is implemented as a C++ library that can be used
by other tools and applications."
revision=1
noarch=yes
pycompile_dirs="usr/lib/clang-analyzer"
@ -33,6 +32,4 @@ do_install()
ln -s ../lib/${pkgname}/scan-${f}/scan-${f} \
scan-${f}
done
python -m compileall ${DESTDIR}/usr/lib/clang-analyzer
python -O -m compileall ${DESTDIR}/usr/lib/clang-analyzer
}

View File

@ -28,8 +28,6 @@ long_desc="
This package includes development files for the LLVM clang."
revision=1
Add_dependency run clang
do_install()

View File

@ -1,5 +1,7 @@
libLLVM-2.9.so
libpthread.so.0
libstdc++.so.6
libgcc_s.so.1
libc.so.6
libLLVM-3.0.so
libdl.so.2
libm.so.6

View File

@ -26,10 +26,7 @@ long_desc="
* A single unified parser for C, Objective C, C++, and Objective C++
* Conformance with C/C++/ObjC and their variants"
revision=2
Add_dependency run libffi
Add_dependency run llvm
Add_dependency run gcc ">=4.5"
do_install()

View File

@ -1,3 +1,3 @@
# Only accept the same ABI version.
abi_depends=">=2.9"
abi_depends=">=3.0"
api_depends="${abi_depends}"

View File

@ -1,6 +1,6 @@
libLLVM-2.9.so
libpthread.so.0
libdl.so.2
libstdc++.so.6
libgcc_s.so.1
libc.so.6
libLLVM-3.0.so

View File

@ -28,8 +28,6 @@ long_desc="
This package includes the shared library used by the Clang frontend."
revision=2
Add_dependency run libffi
do_install()

View File

@ -6,9 +6,6 @@ long_desc="
This package includes the shared libraries used by the LLVM projects."
revision=2
do_install()
{
install -d ${DESTDIR}/usr/lib

View File

@ -6,8 +6,6 @@ long_desc="
This package includes development files for the LLVM clang."
revision=1
Add_dependency run libffi-devel
Add_dependency run libllvm
Add_dependency run llvm

View File

@ -1,7 +1,8 @@
libLLVM-2.9.so
libpthread.so.0
libstdc++.so.6
libc.so.6
libdl.so.2
libm.so.6
libgcc_s.so.1
libLLVM-3.0.so
libclang.so

View File

@ -1,60 +0,0 @@
# Fix upstream bug #9869:
# Operator.h incompatibility with GCC 4.6 in C++0x mode
--- include/llvm/Operator.h 2011/02/07 16:40:21 125006
+++ include/llvm/Operator.h 2011/05/08 01:59:22 131062
@@ -186,28 +186,46 @@
};
class AddOperator
- : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {};
+ : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {
+ ~AddOperator(); // DO NOT IMPLEMENT
+};
class SubOperator
- : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {};
+ : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {
+ ~SubOperator(); // DO NOT IMPLEMENT
+};
class MulOperator
- : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {};
+ : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
+ ~MulOperator(); // DO NOT IMPLEMENT
+};
class ShlOperator
- : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {};
+ : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
+ ~ShlOperator(); // DO NOT IMPLEMENT
+};
class SDivOperator
- : public ConcreteOperator<PossiblyExactOperator, Instruction::SDiv> {};
+ : public ConcreteOperator<PossiblyExactOperator, Instruction::SDiv> {
+ ~SDivOperator(); // DO NOT IMPLEMENT
+};
class UDivOperator
- : public ConcreteOperator<PossiblyExactOperator, Instruction::UDiv> {};
+ : public ConcreteOperator<PossiblyExactOperator, Instruction::UDiv> {
+ ~UDivOperator(); // DO NOT IMPLEMENT
+};
class AShrOperator
- : public ConcreteOperator<PossiblyExactOperator, Instruction::AShr> {};
+ : public ConcreteOperator<PossiblyExactOperator, Instruction::AShr> {
+ ~AShrOperator(); // DO NOT IMPLEMENT
+};
class LShrOperator
- : public ConcreteOperator<PossiblyExactOperator, Instruction::LShr> {};
+ : public ConcreteOperator<PossiblyExactOperator, Instruction::LShr> {
+ ~LShrOperator(); // DO NOT IMPLEMENT
+};
class GEPOperator
: public ConcreteOperator<Operator, Instruction::GetElementPtr> {
+ ~GEPOperator(); // DO NOT IMPLEMENT
+
enum {
IsInBounds = (1 << 0)
};

View File

@ -1,10 +0,0 @@
--- tools/clang/tools/libclang/CIndexer.cpp.orig 2011-04-07 13:08:24.000000000 +0300
+++ tools/clang/tools/libclang/CIndexer.cpp 2011-04-07 13:11:52.224884642 +0300
@@ -80,6 +80,7 @@ std::string CIndexer::getClangResourcesP
// We now have the CIndex directory, locate clang relative to it.
LibClangPath.eraseComponent();
+ LibClangPath.eraseComponent();
#endif
LibClangPath.appendComponent("clang");

View File

@ -1,13 +0,0 @@
# Get the correct list of symbols to export
# See http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-April/008559.html
--- autoconf/ExportMap.map 2010-02-25 00:33:41.000000000 +0200
+++ autoconf/ExportMap.map 2010-05-10 14:14:22.000000000 +0300
@@ -2,6 +2,7 @@
global: main;
__progname;
environ;
+ _ZN4llvm8RegistryIN5clang14FrontendActionENS_14RegistryTraitsIS2_EEE4HeadE;
local: *;
};

View File

@ -1,12 +0,0 @@
# Make all gcc 4.[56] from xbps work.
--- tools/clang/lib/Driver/ToolChains.cpp 2011-03-21 23:29:27.000000000 +0200
+++ tools/clang/lib/Driver/ToolChains.cpp 2011-04-08 00:03:34.000000000 +0300
@@ -1449,7 +1449,7 @@ Linux::Linux(const HostInfo &Host, const
GccTriple = "i586-suse-linux";
}
- const char* GccVersions[] = {"4.5.2", "4.5.1", "4.5", "4.4.5", "4.4.4",
+ const char* GccVersions[] = {"4.6.2", "4.6", "4.5",
"4.4.3", "4.4", "4.3.4", "4.3.3", "4.3.2",
"4.3", "4.2.4", "4.2.3", "4.2.2", "4.2.1",
"4.2"};

View File

@ -1,10 +1,10 @@
# Template file for 'llvm'
pkgname=llvm
version=2.9
revision=2
version=3.0
wrksrc=${pkgname}-${version}.src
distfiles="
http://www.llvm.org/releases/${version}/llvm-${version}.tgz
http://www.llvm.org/releases/${version}/clang-${version}.tgz"
http://www.llvm.org/releases/${version}/llvm-${version}.tar.gz
http://www.llvm.org/releases/${version}/clang-${version}.tar.gz"
build_style=gnu-configure
configure_args="--disable-expensive-checks --disable-debug-runtime
--enable-targets=all --enable-bindings=none --enable-optimize
@ -14,8 +14,8 @@ maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.llvm.org"
license="BSD"
checksum="
661236cfa17428b48cfa9cbb9909f7569c64b8ecd219fd91dbc00e3b557b3779
70c41f3f782a71cbaa7bc8d6ea29fce4263ad3e8558dfecc6dc11cdef17909df"
519eb11d3499ce99c6ffdb8718651fc91425ed7690eac91c8d6853474f7c0477
b64e72da356d7c3428cfd7ac620d49ec042c84eaee13c26024879f555f4e126d"
long_desc="
Low Level Virtual Machine (LLVM) is:
@ -53,8 +53,6 @@ subpackages="libclang clang-analyzer clang clang-devel libllvm"
subpackages="${subpackages} llvm-devel llvm-docs"
# XXX: Investigate bindings support.
Add_dependency run libffi
Add_dependency run libclang
Add_dependency build groff
Add_dependency build perl
Add_dependency build python
@ -62,12 +60,7 @@ Add_dependency build libffi-devel
post_extract() {
# Move clang files into the llvm source.
if [ -d ${XBPS_BUILDDIR}/clang-${version} ]; then
mv ${XBPS_BUILDDIR}/clang-${version} ${wrksrc}/tools/clang
if [ -d ${XBPS_BUILDDIR}/clang-${version}.src ]; then
mv ${XBPS_BUILDDIR}/clang-${version}.src ${wrksrc}/tools/clang
fi
}
pre_install() {
# for pod2html
export PATH=$PATH:/usr/lib/perl5/core_perl/bin
}