* sync from 1:3.4.2-9~exp1

* libclang-3.5.so should be used instead libclang.so. Update the soname
  to match the new lib name (Closes: #759538)
* Rename liblldb.so to liblldb-3.5.so + update of the soname.
* python-clang-3.5 description updated
* liblldb-3.5 and python-lldb-3.5 added
* lldb-3.5-dev renamed to liblldb-3.5-dev to match the previous changes
* Manpages for llvm-ranlib, clang-apply-replacements, pp-trace and clang-tidy
  added
* clang-3.5 should depends on binutils (for ld, at least)
  (Closes: #751030)
* Try to bring back lldb-3.4-dev on mips & mipsel (Closes: #758314)
* Upload in unstable
* Try to bring back lldb on mips & mipsel
* Force scan-build to use the same version of clang
* Try to fix hurd (hurd-EIEIO-undef.diff)
This commit is contained in:
Sylvestre Ledru 2014-09-01 17:07:05 +00:00
commit 3dd601ae0d
24 changed files with 200 additions and 107 deletions

12
debian/TODO vendored
View File

@ -1,18 +1,6 @@
* add the support of libclang in llvm default (for now, it is * add the support of libclang in llvm default (for now, it is
called libclang1-3.3.so) called libclang1-3.3.so)
* add a symbol file for libclang.so in llvm default
* check if we should use alternatives
* remove of clang & llvm 3.2
* look at the bugs of llvm 3.2
* move the header at the right place in libclang-dev * move the header at the right place in libclang-dev
* bootstrap of clang with itself * bootstrap of clang with itself
* update of the soname
* man page for clang-format

31
debian/changelog vendored
View File

@ -1,3 +1,34 @@
llvm-toolchain-3.5 (1:3.5~+rc4-2) unstable; urgency=medium
* sync from 1:3.4.2-9~exp1
* libclang-3.5.so should be used instead libclang.so. Update the soname
to match the new lib name (Closes: #759538)
* Rename liblldb.so to liblldb-3.5.so + update of the soname.
* python-clang-3.5 description updated
* liblldb-3.5 and python-lldb-3.5 added
* lldb-3.5-dev renamed to liblldb-3.5-dev to match the previous changes
* Manpages for llvm-ranlib, clang-apply-replacements, pp-trace and clang-tidy
added
* clang-3.5 should depends on binutils (for ld, at least)
(Closes: #751030)
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 30 Aug 2014 18:09:20 +0200
llvm-toolchain-3.4 (1:3.4.2-8) unstable; urgency=medium
* Try to bring back lldb-3.4-dev on mips & mipsel (Closes: #758314)
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 16 Aug 2014 22:39:13 +0200
llvm-toolchain-3.4 (1:3.4.2-7) unstable; urgency=medium
* Upload in unstable
* Try to bring back lldb on mips & mipsel
* Force scan-build to use the same version of clang
* Try to fix hurd (hurd-EIEIO-undef.diff)
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 05 Aug 2014 14:40:05 +0200
llvm-toolchain-3.5 (1:3.5~+rc4-1) unstable; urgency=medium llvm-toolchain-3.5 (1:3.5~+rc4-1) unstable; urgency=medium
* New snapshot release * New snapshot release

View File

@ -3,3 +3,6 @@ clang/tools/scan-build/scan-build-@LLVM_VERSION@.1
debian/man/clang-check-@LLVM_VERSION@.1 debian/man/clang-check-@LLVM_VERSION@.1
debian/man/clang-tblgen-@LLVM_VERSION@.1 debian/man/clang-tblgen-@LLVM_VERSION@.1
debian/man/scan-view-@LLVM_VERSION@.1 debian/man/scan-view-@LLVM_VERSION@.1
debian/man/clang-tidy-@LLVM_VERSION@.1
debian/man/clang-apply-replacements-@LLVM_VERSION@.1
debian/man/pp-trace-@LLVM_VERSION@.1

View File

@ -1,2 +1,2 @@
debian/man/clang-format-diff-@LLVM_VERSION@.1 debian/man/clang-format-diff-@LLVM_VERSION@.1
debian/man/clang-format-@LLVM_VERSION@.1

55
debian/control vendored
View File

@ -22,7 +22,7 @@ Package: clang-3.5
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs}, Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
libclang-common-3.5-dev (= ${binary:Version}), libclang-common-3.5-dev (= ${binary:Version}),
libclang1-3.5 (= ${binary:Version}), libc6-dev libclang1-3.5 (= ${binary:Version}), libc6-dev, binutils
Provides: c-compiler, objc-compiler, c++-compiler Provides: c-compiler, objc-compiler, c++-compiler
Recommends: llvm-3.5-dev, python Recommends: llvm-3.5-dev, python
Suggests: gnustep, gnustep-devel, clang-3.5-doc Suggests: gnustep, gnustep-devel, clang-3.5-doc
@ -173,6 +173,13 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, python
Replaces: python-clang-3.3, python-clang-3.4 Replaces: python-clang-3.3, python-clang-3.4
Breaks: python-clang-3.3, python-clang-3.4 Breaks: python-clang-3.3, python-clang-3.4
Description: Clang Python Bindings Description: Clang Python Bindings
Clang project is a C, C++, Objective C and Objective C++ front-end
for the LLVM compiler. Its goal is to offer a replacement to the GNU Compiler
Collection (GCC).
.
Clang implements all of the ISO C++ 1998 and 2001 standards and also provides
a partial support of C++1y.
.
This binding package provides access to the Clang compiler and libraries. This binding package provides access to the Clang compiler and libraries.
@ -380,19 +387,49 @@ Description: Modular compiler and toolchain technologies, examples
Package: lldb-3.5 Package: lldb-3.5
Architecture: amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 powerpc mips mipsel Architecture: amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 powerpc mips mipsel
# ia64 mips mipsel hurd have been removed # ia64 mips mipsel hurd have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm3.5 (= ${binary:Version}), python, llvm-3.5-dev Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm3.5 (= ${binary:Version}), python, llvm-3.5-dev, liblldb-3.4, python-lldb-3.4
Pre-Depends: ${misc:Pre-Depends} Pre-Depends: ${misc:Pre-Depends}
Replaces: lldb-3.2, lldb-3.3, lldb-3.4
Breaks: lldb-3.2, lldb-3.3, lldb-3.4
Description: Next generation, high-performance debugger Description: Next generation, high-performance debugger
LLDB is a next generation, high-performance debugger. It is built as a set of LLDB is a next generation, high-performance debugger. It is built as a set of
reusable components which highly leverage existing libraries in the larger LLVM reusable components which highly leverage existing libraries in the larger LLVM
Project, such as the Clang expression parser and LLVM disassembler. Project, such as the Clang expression parser and LLVM disassembler.
Package: lldb-3.5-dev Package: liblldb-3.5
Architecture: amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 powerpc mips mipsel Architecture: amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 powerpc mips mipsel
# ia64 hurd have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm3.4 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Section: libs
Replaces: lldb-3.5 (<< 1:3.5~+rc4-2~)
Breaks: lldb-3.5 (<< 1:3.5~+rc4-2~)
Description: Next generation, high-performance debugger, library
LLDB is a next generation, high-performance debugger. It is built as a set of
reusable components which highly leverage existing libraries in the larger LLVM
Project, such as the Clang expression parser and LLVM disassembler.
.
This package contains the LLDB runtime library.
Package: python-lldb-3.5
Section: python
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python
Pre-Depends: ${misc:Pre-Depends}
Description: Next generation, high-performance debugger, python lib
LLDB is a next generation, high-performance debugger. It is built as a set of
reusable components which highly leverage existing libraries in the larger LLVM
Project, such as the Clang expression parser and LLVM disassembler.
.
This binding package provides access to lldb.
Package: liblldb-3.5-dev
Section: libdevel
Architecture: amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 powerpc mips mipsel
# ia64 mips mipsel hurd have been removed # ia64 mips mipsel hurd have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-3.5 (= ${binary:Version}) Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-3.5 (= ${binary:Version})
Replaces: lldb-3.5-dev (<< 1:3.5~+rc4-2~)
Breaks: lldb-3.5-dev (<< 1:3.5~+rc4-2~)
Pre-Depends: ${misc:Pre-Depends} Pre-Depends: ${misc:Pre-Depends}
Description: Next generation, high-performance debugger - Header files Description: Next generation, high-performance debugger - Header files
LLDB is a next generation, high-performance debugger. It is built as a set of LLDB is a next generation, high-performance debugger. It is built as a set of
@ -400,3 +437,11 @@ Description: Next generation, high-performance debugger - Header files
Project, such as the Clang expression parser and LLVM disassembler. Project, such as the Clang expression parser and LLVM disassembler.
. .
This package provides the header files to build extension over lldb. This package provides the header files to build extension over lldb.
Package: lldb-3.5-dev
Depends: liblldb-3.5-dev, ${misc:Depends}
Architecture: all
Section: oldlibs
Description: transitional dummy package to liblldb-3.5-dev
This is a transitional dummy package. It can safely be removed.

View File

@ -1,6 +1,7 @@
usr/lib/llvm-@LLVM_VERSION@/include/clang usr/lib/llvm-@LLVM_VERSION@/include/clang
usr/lib/llvm-@LLVM_VERSION@/include/clang-c usr/lib/llvm-@LLVM_VERSION@/include/clang-c
usr/lib/llvm-@LLVM_VERSION@/lib/libclang*a usr/lib/llvm-@LLVM_VERSION@/lib/libclang*a
usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so
usr/lib/llvm-@LLVM_VERSION@/lib/libmodernizeCore.a usr/lib/llvm-@LLVM_VERSION@/lib/libmodernizeCore.a

View File

@ -1,3 +1,2 @@
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1 usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1 usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/libclang.so usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/libclang.so

View File

@ -1,2 +1,5 @@
# I know and I am not planning to change that. # I know and I am not planning to change that.
libclang1-@LLVM_VERSION@: package-name-doesnt-match-sonames libclang1 libclang1-@LLVM_VERSION@: package-name-doesnt-match-sonames libclang1
# Provided as transition
libclang1-@LLVM_VERSION@: dev-pkg-without-shlib-symlink usr/lib/*/libclang-@LLVM_VERSION@.so.1 usr/lib/*/libclang.so

View File

@ -1,4 +1,4 @@
libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER# libclang-@LLVM_VERSION@.so libclang1-@LLVM_VERSION@ #MINVER#
clang_BlockCommandComment_getArgText@Base 3.2 clang_BlockCommandComment_getArgText@Base 3.2
clang_BlockCommandComment_getCommandName@Base 3.2 clang_BlockCommandComment_getCommandName@Base 3.2
clang_BlockCommandComment_getNumArgs@Base 3.2 clang_BlockCommandComment_getNumArgs@Base 3.2
@ -7,8 +7,8 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_CXCursorSet_insert@Base 3.2 clang_CXCursorSet_insert@Base 3.2
clang_CXIndex_getGlobalOptions@Base 3.2 clang_CXIndex_getGlobalOptions@Base 3.2
clang_CXIndex_setGlobalOptions@Base 3.2 clang_CXIndex_setGlobalOptions@Base 3.2
clang_CXXMethod_isConst@Base @LLVM_VERSION@ clang_CXXMethod_isConst@Base 3.4
clang_CXXMethod_isPureVirtual@Base @LLVM_VERSION@ clang_CXXMethod_isPureVirtual@Base 3.4
clang_CXXMethod_isStatic@Base 3.2 clang_CXXMethod_isStatic@Base 3.2
clang_CXXMethod_isVirtual@Base 3.2 clang_CXXMethod_isVirtual@Base 3.2
clang_Comment_getChild@Base 3.2 clang_Comment_getChild@Base 3.2
@ -17,7 +17,7 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_Comment_isWhitespace@Base 3.2 clang_Comment_isWhitespace@Base 3.2
clang_CompilationDatabase_dispose@Base 3.2 clang_CompilationDatabase_dispose@Base 3.2
clang_CompilationDatabase_fromDirectory@Base 3.2 clang_CompilationDatabase_fromDirectory@Base 3.2
clang_CompilationDatabase_getAllCompileCommands@Base @LLVM_VERSION@ clang_CompilationDatabase_getAllCompileCommands@Base 3.4
clang_CompilationDatabase_getCompileCommands@Base 3.2 clang_CompilationDatabase_getCompileCommands@Base 3.2
clang_CompileCommand_getArg@Base 3.2 clang_CompileCommand_getArg@Base 3.2
clang_CompileCommand_getDirectory@Base 3.2 clang_CompileCommand_getDirectory@Base 3.2
@ -30,19 +30,19 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_Cursor_getCommentRange@Base 3.2 clang_Cursor_getCommentRange@Base 3.2
clang_Cursor_getModule@Base 3.2 clang_Cursor_getModule@Base 3.2
clang_Cursor_getNumArguments@Base 3.2 clang_Cursor_getNumArguments@Base 3.2
clang_Cursor_getObjCDeclQualifiers@Base @LLVM_VERSION@ clang_Cursor_getObjCDeclQualifiers@Base 3.4
clang_Cursor_getObjCPropertyAttributes@Base @LLVM_VERSION@ clang_Cursor_getObjCPropertyAttributes@Base 3.4
clang_Cursor_getObjCSelectorIndex@Base 3.2 clang_Cursor_getObjCSelectorIndex@Base 3.2
clang_Cursor_getParsedComment@Base 3.2 clang_Cursor_getParsedComment@Base 3.2
clang_Cursor_getRawCommentText@Base 3.2 clang_Cursor_getRawCommentText@Base 3.2
clang_Cursor_getReceiverType@Base 3.2 clang_Cursor_getReceiverType@Base 3.2
clang_Cursor_getSpellingNameRange@Base 3.2 clang_Cursor_getSpellingNameRange@Base 3.2
clang_Cursor_getTranslationUnit@Base 3.2 clang_Cursor_getTranslationUnit@Base 3.2
clang_Cursor_isBitField@Base @LLVM_VERSION@ clang_Cursor_isBitField@Base 3.4
clang_Cursor_isDynamicCall@Base 3.2 clang_Cursor_isDynamicCall@Base 3.2
clang_Cursor_isNull@Base 3.2 clang_Cursor_isNull@Base 3.2
clang_Cursor_isObjCOptional@Base @LLVM_VERSION@ clang_Cursor_isObjCOptional@Base 3.4
clang_Cursor_isVariadic@Base @LLVM_VERSION@ clang_Cursor_isVariadic@Base 3.4
clang_FullComment_getAsHTML@Base 3.2 clang_FullComment_getAsHTML@Base 3.2
clang_FullComment_getAsXML@Base 3.2 clang_FullComment_getAsXML@Base 3.2
clang_HTMLStartTagComment_isSelfClosing@Base 3.2 clang_HTMLStartTagComment_isSelfClosing@Base 3.2
@ -58,6 +58,7 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_InlineCommandComment_getNumArgs@Base 3.2 clang_InlineCommandComment_getNumArgs@Base 3.2
clang_InlineCommandComment_getRenderKind@Base 3.2 clang_InlineCommandComment_getRenderKind@Base 3.2
clang_InlineContentComment_hasTrailingNewline@Base 3.2 clang_InlineContentComment_hasTrailingNewline@Base 3.2
<<<<<<< .working
clang_Location_isFromMainFile@Base @LLVM_VERSION@ clang_Location_isFromMainFile@Base @LLVM_VERSION@
clang_Location_isInSystemHeader@Base @LLVM_VERSION@ clang_Location_isInSystemHeader@Base @LLVM_VERSION@
clang_ModuleMapDescriptor_create@Base @LLVM_VERSION@ clang_ModuleMapDescriptor_create@Base @LLVM_VERSION@
@ -66,6 +67,11 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_ModuleMapDescriptor_setUmbrellaHeader@Base @LLVM_VERSION@ clang_ModuleMapDescriptor_setUmbrellaHeader@Base @LLVM_VERSION@
clang_ModuleMapDescriptor_writeToBuffer@Base @LLVM_VERSION@ clang_ModuleMapDescriptor_writeToBuffer@Base @LLVM_VERSION@
clang_Module_getASTFile@Base @LLVM_VERSION@ clang_Module_getASTFile@Base @LLVM_VERSION@
=======
clang_Location_isFromMainFile@Base 3.4
clang_Location_isInSystemHeader@Base 3.4
clang_Module_getASTFile@Base 3.4
>>>>>>> .merge-right.r1372
clang_Module_getFullName@Base 3.2 clang_Module_getFullName@Base 3.2
clang_Module_getName@Base 3.2 clang_Module_getName@Base 3.2
clang_Module_getNumTopLevelHeaders@Base 3.2 clang_Module_getNumTopLevelHeaders@Base 3.2
@ -83,6 +89,7 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_TParamCommandComment_getParamName@Base 3.2 clang_TParamCommandComment_getParamName@Base 3.2
clang_TParamCommandComment_isParamPositionValid@Base 3.2 clang_TParamCommandComment_isParamPositionValid@Base 3.2
clang_TextComment_getText@Base 3.2 clang_TextComment_getText@Base 3.2
<<<<<<< .working
clang_Type_getAlignOf@Base @LLVM_VERSION@ clang_Type_getAlignOf@Base @LLVM_VERSION@
clang_Type_getCXXRefQualifier@Base @LLVM_VERSION@ clang_Type_getCXXRefQualifier@Base @LLVM_VERSION@
clang_Type_getClassType@Base @LLVM_VERSION@ clang_Type_getClassType@Base @LLVM_VERSION@
@ -90,6 +97,13 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_Type_getOffsetOf@Base @LLVM_VERSION@ clang_Type_getOffsetOf@Base @LLVM_VERSION@
clang_Type_getSizeOf@Base @LLVM_VERSION@ clang_Type_getSizeOf@Base @LLVM_VERSION@
clang_Type_getTemplateArgumentAsType@Base @LLVM_VERSION@ clang_Type_getTemplateArgumentAsType@Base @LLVM_VERSION@
=======
clang_Type_getAlignOf@Base 3.4
clang_Type_getCXXRefQualifier@Base 3.4
clang_Type_getClassType@Base 3.4
clang_Type_getOffsetOf@Base 3.4
clang_Type_getSizeOf@Base 3.4
>>>>>>> .merge-right.r1372
clang_VerbatimBlockLineComment_getText@Base 3.2 clang_VerbatimBlockLineComment_getText@Base 3.2
clang_VerbatimLineComment_getText@Base 3.2 clang_VerbatimLineComment_getText@Base 3.2
clang_VirtualFileOverlay_addFileMapping@Base @LLVM_VERSION@ clang_VirtualFileOverlay_addFileMapping@Base @LLVM_VERSION@
@ -139,8 +153,13 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_equalRanges@Base 3.2 clang_equalRanges@Base 3.2
clang_equalTypes@Base 3.2 clang_equalTypes@Base 3.2
clang_executeOnThread@Base 3.2 clang_executeOnThread@Base 3.2
<<<<<<< .working
clang_findIncludesInFile@Base @LLVM_VERSION@ clang_findIncludesInFile@Base @LLVM_VERSION@
clang_findIncludesInFileWithBlock@Base @LLVM_VERSION@ clang_findIncludesInFileWithBlock@Base @LLVM_VERSION@
=======
clang_findIncludesInFile@Base 3.4
clang_findIncludesInFileWithBlock@Base 3.4
>>>>>>> .merge-right.r1372
clang_findReferencesInFile@Base 3.2 clang_findReferencesInFile@Base 3.2
clang_findReferencesInFileWithBlock@Base 3.2 clang_findReferencesInFileWithBlock@Base 3.2
clang_formatDiagnostic@Base 3.2 clang_formatDiagnostic@Base 3.2
@ -205,12 +224,24 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_getEnumConstantDeclValue@Base 3.2 clang_getEnumConstantDeclValue@Base 3.2
clang_getEnumDeclIntegerType@Base 3.2 clang_getEnumDeclIntegerType@Base 3.2
clang_getExpansionLocation@Base 3.2 clang_getExpansionLocation@Base 3.2
<<<<<<< .working
clang_getFieldDeclBitWidth@Base @LLVM_VERSION@ clang_getFieldDeclBitWidth@Base @LLVM_VERSION@
=======
clang_getFieldDeclBitWidth@Base 3.4
>>>>>>> .merge-right.r1372
clang_getFile@Base 3.2 clang_getFile@Base 3.2
<<<<<<< .working
clang_getFileLocation@Base @LLVM_VERSION@ clang_getFileLocation@Base @LLVM_VERSION@
=======
clang_getFileLocation@Base 3.4
>>>>>>> .merge-right.r1372
clang_getFileName@Base 3.2 clang_getFileName@Base 3.2
clang_getFileTime@Base 3.2 clang_getFileTime@Base 3.2
<<<<<<< .working
clang_getFileUniqueID@Base @LLVM_VERSION@ clang_getFileUniqueID@Base @LLVM_VERSION@
=======
clang_getFileUniqueID@Base 3.4
>>>>>>> .merge-right.r1372
clang_getFunctionTypeCallingConv@Base 3.2 clang_getFunctionTypeCallingConv@Base 3.2
clang_getIBOutletCollectionType@Base 3.2 clang_getIBOutletCollectionType@Base 3.2
clang_getIncludedFile@Base 3.2 clang_getIncludedFile@Base 3.2
@ -251,7 +282,11 @@ libclang.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_getTranslationUnitSpelling@Base 3.2 clang_getTranslationUnitSpelling@Base 3.2
clang_getTypeDeclaration@Base 3.2 clang_getTypeDeclaration@Base 3.2
clang_getTypeKindSpelling@Base 3.2 clang_getTypeKindSpelling@Base 3.2
<<<<<<< .working
clang_getTypeSpelling@Base @LLVM_VERSION@ clang_getTypeSpelling@Base @LLVM_VERSION@
=======
clang_getTypeSpelling@Base 3.4
>>>>>>> .merge-right.r1372
clang_getTypedefDeclUnderlyingType@Base 3.2 clang_getTypedefDeclUnderlyingType@Base 3.2
clang_hashCursor@Base 3.2 clang_hashCursor@Base 3.2
clang_indexLoc_getCXSourceLocation@Base 3.2 clang_indexLoc_getCXSourceLocation@Base 3.2

4
debian/liblldb-X.Y-dev.install.in vendored Normal file
View File

@ -0,0 +1,4 @@
/usr/lib/llvm-@LLVM_VERSION@/include/lldb
/usr/lib/llvm-@LLVM_VERSION@/lib/liblldb*a

4
debian/liblldb-X.Y.install.in vendored Normal file
View File

@ -0,0 +1,4 @@
usr/lib/llvm-@LLVM_VERSION@/lib/liblldb.so.1
usr/lib/llvm-@LLVM_VERSION@/lib/liblldb-@LLVM_VERSION@.so.1 /usr/lib/@DEB_HOST_MULTIARCH@/
usr/lib/llvm-@LLVM_VERSION@/lib/python2.7/site-packages/readline.so

5
debian/liblldb-X.Y.links.in vendored Normal file
View File

@ -0,0 +1,5 @@
usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so.1 usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so
usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so.1 usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so.1
usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so usr/lib/python2.7/dist-packages/lldb-@LLVM_VERSION@/_lldb.so
usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/liblldb.so.1

View File

@ -0,0 +1,4 @@
# That is normal. The lib is not (yet?) shipped as a new package
liblldb-@LLVM_VERSION@: package-name-doesnt-match-sonames liblldb
# For now, override this warning. We might create a -dev at some point
liblldb-@LLVM_VERSION@: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb.so.1 usr/lib/*/liblldb.so

View File

@ -1,2 +0,0 @@
usr/lib/llvm-@LLVM_VERSION@/include/lldb
usr/lib/llvm-@LLVM_VERSION@/lib/liblldb*a

View File

@ -1,12 +1,10 @@
usr/bin/lldb-@LLVM_VERSION@ usr/bin/lldb-@LLVM_VERSION@
usr/lib/llvm-@LLVM_VERSION@/bin/lldb usr/lib/llvm-@LLVM_VERSION@/bin/lldb
usr/lib/llvm-@LLVM_VERSION@/bin/lldb-platform usr/lib/llvm-@LLVM_VERSION@/bin/lldb-platform
usr/lib/llvm-@LLVM_VERSION@/bin/lldb-gdbserver
usr/lib/llvm-@LLVM_VERSION@/bin/lldb-mi usr/lib/llvm-@LLVM_VERSION@/bin/lldb-mi
usr/lib/llvm-@LLVM_VERSION@/lib/liblldb.so.1 /usr/lib/@DEB_HOST_MULTIARCH@/ usr/lib/llvm-@LLVM_VERSION@/bin/lldb-gdbserver
usr/lib/llvm-@LLVM_VERSION@/lib/python2.7/site-packages/lldb/
usr/lib/llvm-@LLVM_VERSION@/lib/python2.7/site-packages/readline.so
usr/bin/lldb-platform-@LLVM_VERSION@ usr/bin/lldb-platform-@LLVM_VERSION@
usr/bin/lldb-gdbserver-@LLVM_VERSION@ usr/bin/lldb-gdbserver-@LLVM_VERSION@
usr/bin/lldb-mi-@LLVM_VERSION@ usr/bin/lldb-mi-@LLVM_VERSION@

View File

@ -1,5 +1,3 @@
# That is normal. The lib is not shipped as a new package
lldb-@LLVM_VERSION@: package-name-doesnt-match-sonames liblldb
lldb-@LLVM_VERSION@: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb.so.1 usr/lib/*/liblldb.so lldb-@LLVM_VERSION@: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb.so.1 usr/lib/*/liblldb.so
# Does not really matter # Does not really matter
lldb-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/lldb-@LLVM_VERSION@.1.gz lldb-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/lldb-@LLVM_VERSION@.1.gz

View File

@ -7,4 +7,5 @@ debian/man/llvm-rtdyld-@LLVM_VERSION@.1
debian/man/llvm-size-@LLVM_VERSION@.1 debian/man/llvm-size-@LLVM_VERSION@.1
debian/man/llvm-tblgen-@LLVM_VERSION@.1 debian/man/llvm-tblgen-@LLVM_VERSION@.1
debian/man/macho-dump-@LLVM_VERSION@.1 debian/man/macho-dump-@LLVM_VERSION@.1
debian/man/llvm-ranlib-@LLVM_VERSION@.1

View File

@ -15,7 +15,7 @@ Index: llvm-toolchain-snapshot_3.5~svn213052/clang/tools/libclang/Makefile
# Add soname to the library. # Add soname to the library.
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD)) ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD))
- LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT) - LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT)
+ LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT).$(SONAME_MAJOR) + LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)-$(LLVM_VERSION_MAJOR).$(LLVM_VERSION_MINOR)$(SHLIBEXT)
endif endif
ifeq ($(ENABLE_CLANG_ARCMT),1) ifeq ($(ENABLE_CLANG_ARCMT),1)

13
debian/patches/lldb-libname.diff vendored Normal file
View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-3.5-3.5~+rc4/lldb/lib/Makefile
===================================================================
--- llvm-toolchain-3.5-3.5~+rc4.orig/lldb/lib/Makefile
+++ llvm-toolchain-3.5-3.5~+rc4/lldb/lib/Makefile
@@ -175,7 +175,7 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), L
LLVMLibsOptions += -Wl,--no-undefined
# Link in python
LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -ledit -lncurses -lpanel
- LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT).$(SONAME_EXTENSION)
+ LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)-$(LLVM_VERSION_MAJOR).$(LLVM_VERSION_MINOR)$(SHLIBEXT).$(SONAME_EXTENSION)
ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel powerpc powerpcspe))
# Link GCC atomic helper library
LLVMLibsOptions += -latomic

View File

@ -11,42 +11,3 @@ Index: llvm-toolchain-snapshot_3.5~svn199197/clang/tools/scan-build/scan-build
if (!defined $Clang || ! -x $Clang) { if (!defined $Clang || ! -x $Clang) {
$Clang = Cwd::realpath("$RealBin/clang"); $Clang = Cwd::realpath("$RealBin/clang");
} }
diff -Naur llvm-toolchain-3.5-3.5~+rc1.orig/clang/tools/scan-build/ccc-analyzer llvm-toolchain-3.5-3.5~+rc1/clang/tools/scan-build/ccc-analyzer
--- llvm-toolchain-3.5-3.5~+rc1.orig/clang/tools/scan-build/ccc-analyzer 2014-08-06 10:29:51.990552103 +0200
+++ llvm-toolchain-3.5-3.5~+rc1/clang/tools/scan-build/ccc-analyzer 2014-08-06 10:35:05.016567533 +0200
@@ -25,6 +25,17 @@
# Compiler command setup.
##===----------------------------------------------------------------------===##
+# Search in the PATH if the compiler exists
+sub SearchInPath {
+ my $file = shift;
+ foreach my $dir (split (':', $ENV{PATH})) {
+ if (-x "$dir/$file") {
+ return 1;
+ }
+ }
+ return 0;
+}
+
my $Compiler;
my $Clang;
my $DefaultCCompiler;
@@ -41,7 +52,7 @@
if ($FindBin::Script =~ /c\+\+-analyzer/) {
$Compiler = $ENV{'CCC_CXX'};
- if (!defined $Compiler || ! -x $Compiler) { $Compiler = $DefaultCXXCompiler; }
+ if (!defined $Compiler || (! -x $Compiler && ! SearchInPath($Compiler))) { $Compiler = $DefaultCXXCompiler; }
$Clang = $ENV{'CLANG_CXX'};
if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++'; }
@@ -50,7 +61,7 @@
}
else {
$Compiler = $ENV{'CCC_CC'};
- if (!defined $Compiler || ! -x $Compiler) { $Compiler = $DefaultCCompiler; }
+ if (!defined $Compiler || (! -x $Compiler && ! SearchInPath($Compiler))) { $Compiler = $DefaultCCompiler; }
$Clang = $ENV{'CLANG'};
if (!defined $Clang || ! -x $Clang) { $Clang = 'clang'; }

View File

@ -44,3 +44,4 @@ kfreebsd-lldb-gdbserver.diff
#fix-lldb-3.5-rc2.diff #fix-lldb-3.5-rc2.diff
gcc-compat-1.diff gcc-compat-1.diff
gcc-compat-2.diff gcc-compat-2.diff
lldb-libname.diff

1
debian/python-lldb-X.Y.install.in vendored Normal file
View File

@ -0,0 +1 @@
build-llvm/Release/lib/python2.7/site-packages/lldb/ /usr/lib/python2.7/dist-packages/

3
debian/python-lldb-X.Y.links.in vendored Normal file
View File

@ -0,0 +1,3 @@
usr/lib/@DEB_HOST_MULTIARCH@/libLLVM-@LLVM_VERSION_FULL@.so.1 usr/lib/python2.7/dist-packages/lldb/libLLVM-@LLVM_VERSION_FULL@.so.1
usr/lib/@DEB_HOST_MULTIARCH@/libLLVM-@LLVM_VERSION_FULL@.so.1 usr/lib/python2.7/dist-packages/lldb/libLLVM-@LLVM_VERSION@.so.1

57
debian/rules vendored
View File

@ -121,7 +121,7 @@ LLDB_DISABLE_ARCHS := arm64 hurd-i386 ia64 ppc64el
# mips* fails with "undefined references to `__atomic_load_8'" # mips* fails with "undefined references to `__atomic_load_8'"
ifeq (,$(filter-out $(LLDB_DISABLE_ARCHS), $(DEB_HOST_ARCH))) ifeq (,$(filter-out $(LLDB_DISABLE_ARCHS), $(DEB_HOST_ARCH)))
# Disable LLDB for this arch. # Disable LLDB for this arch.
LLDB_ENABLE=no LLDB_ENABLE=no
endif endif
@ -154,25 +154,25 @@ override_dh_auto_configure: preconfigure
# Remove some old symlinks # Remove some old symlinks
cd tools/ && \ cd tools/ && \
if test -h clang; then \ if test -h clang; then \
rm clang; \ rm clang; \
fi; \ fi; \
ln -s ../clang .; \ ln -s ../clang .; \
readlink clang readlink clang
if test $(POLLY_ENABLE) = yes; then \ if test $(POLLY_ENABLE) = yes; then \
cd tools/ && \ cd tools/ && \
if test -h polly; then \ if test -h polly; then \
rm polly; \ rm polly; \
fi; \ fi; \
ln -s ../polly .; \ ln -s ../polly .; \
fi fi
if test $(LLDB_ENABLE) = yes; then \ if test $(LLDB_ENABLE) = yes; then \
cd tools/ && \ cd tools/ && \
if test -h lldb; then \ if test -h lldb; then \
rm lldb; \ rm lldb; \
fi; \ fi; \
ln -s ../lldb .; \ ln -s ../lldb .; \
fi fi
@ -253,36 +253,31 @@ build_doc:
help2man --version-string=$(LLVM_VERSION) clang/tools/scan-view/scan-view > debian/man/scan-view-$(LLVM_VERSION).1 help2man --version-string=$(LLVM_VERSION) clang/tools/scan-view/scan-view > debian/man/scan-view-$(LLVM_VERSION).1
help2man --version-string=$(LLVM_VERSION) clang/tools/clang-format/clang-format-diff.py > debian/man/clang-format-diff-$(LLVM_VERSION).1 help2man --version-string=$(LLVM_VERSION) clang/tools/clang-format/clang-format-diff.py > debian/man/clang-format-diff-$(LLVM_VERSION).1
for f in clang clang-tblgen clang-check; do \ CMDS="llvm-dwarfdump llvm-mc llvm-mcmarkup llvm-objdump llvm-rtdyld llvm-size llvm-tblgen llvm-ranlib macho-dump lldb clang-format clang-modernize clang clang-tblgen clang-check clang-tidy clang-apply-replacements pp-trace"; \
help2man --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/Release/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \ for f in $$CMDS; do \
echo "Generating manpage of $$f"; \
LD_LIBRARY_PATH=$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/ help2man --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/Release/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \
done done
for f in llvm-dwarfdump llvm-mc llvm-mcmarkup llvm-objdump llvm-rtdyld llvm-size llvm-tblgen macho-dump lldb clang-format clang-modernize; do \
help2man --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/Release/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \
done
override_dh_auto_install: override_dh_auto_install:
$(MAKE) -C $(TARGET_BUILD) VERBOSE=1 install DESTDIR=$(DEB_INST)/ $(MAKE) -C $(TARGET_BUILD) VERBOSE=1 install DESTDIR=$(DEB_INST)/
chrpath -d $(TARGET_BUILD)/Release/bin/clang chrpath -d $(TARGET_BUILD)/Release/bin/clang
chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable` chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable`
chmod -x $(TARGET_BUILD)/tools/polly/Release/lib/libpolly*.a
# Add the trailing soname # Add the trailing soname
mv $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/libLLVM-$(LLVM_VERSION).so $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/libLLVM-$(LLVM_VERSION).so.$(SONAME_EXT) mv $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/libLLVM-$(LLVM_VERSION).so $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/libLLVM-$(LLVM_VERSION).so.$(SONAME_EXT)
if test $(LLDB_ENABLE) = yes; then \
mv $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/liblldb.so $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/liblldb.so.$(SONAME_EXT); \
fi
cd debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/lib/ && \ cd debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/lib/ && \
if test ! -f libclang-$(LLVM_VERSION).so.$(SONAME_EXT); then \ mv libclang.so libclang-$(LLVM_VERSION).so.$(SONAME_EXT) && \
mv libclang.so libclang-$(LLVM_VERSION).so.$(SONAME_EXT) && \ ln -s libclang-$(LLVM_VERSION).so.$(SONAME_EXT) libclang.so.$(SONAME_EXT); \
ln -s libclang-$(LLVM_VERSION).so.$(SONAME_EXT) libclang.so.$(SONAME_EXT); \ ln -s libclang-$(LLVM_VERSION).so.$(SONAME_EXT) libclang-$(LLVM_VERSION).so; \
if test $(LLDB_ENABLE) = yes; then \
mv liblldb.so liblldb-$(LLVM_VERSION).so.$(SONAME_EXT) && \
ln -s liblldb-$(LLVM_VERSION).so.$(SONAME_EXT) liblldb.so.$(SONAME_EXT); \
fi; \ fi; \
rm -f libLLVM-$(LLVM_VERSION_FULL).so; \ rm -f libLLVM-$(LLVM_VERSION_FULL).so
rm -f libclang.so
# Remove artefact (where compiler-rt is built) # Remove artefact (where compiler-rt is built)
if test -d $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux; then \ if test -d $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux; then \
@ -321,8 +316,10 @@ override_dh_auto_install:
cp -f $(CURDIR)/clang/tools/clang-format/clang-format.py clang/tools/clang-format/clang-format-$(LLVM_VERSION).py cp -f $(CURDIR)/clang/tools/clang-format/clang-format.py clang/tools/clang-format/clang-format-$(LLVM_VERSION).py
rm -rf clang/tools/scan-build-$(LLVM_VERSION)
cp -fR $(CURDIR)/clang/tools/scan-build clang/tools/scan-build-$(LLVM_VERSION) cp -fR $(CURDIR)/clang/tools/scan-build clang/tools/scan-build-$(LLVM_VERSION)
rm -rf clang/tools/scan-view-$(LLVM_VERSION)
cp -fR $(CURDIR)/clang/tools/scan-view clang/tools/scan-view-$(LLVM_VERSION) cp -fR $(CURDIR)/clang/tools/scan-view clang/tools/scan-view-$(LLVM_VERSION)
# Remove some license files # Remove some license files