Ship the lldb headers into lldb-X.Y-dev (Closes: #723743)

I might create a liblldb-X.Y library at some point but I think it is too
early.
This commit is contained in:
Sylvestre Ledru 2013-09-20 16:26:55 +00:00
parent 2f8839dd19
commit 6d6fb79caf
6 changed files with 53 additions and 4 deletions

5
debian/changelog vendored
View File

@ -3,8 +3,11 @@ llvm-toolchain-3.3 (1:3.3-10) unstable; urgency=low
* Update of the description of LLVM packages
(LLVM no longer mean Low Level Virtual Machine)
* Disable the build of lldb under HURD
* Ship the lldb headers into lldb-X.Y-dev (Closes: #723743)
I might create a liblldb-X.Y library at some point but I think it is too
early.
--
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 09 Sep 2013 14:35:08 +0200
llvm-toolchain-3.3 (1:3.3-9) unstable; urgency=low

11
debian/control vendored
View File

@ -414,3 +414,14 @@ Description: Next generation, high-performance debugger
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.
Package: lldb-3.3-dev
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-3.3 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Description: Next generation, high-performance debugger - Header files
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 provides the header files to build extension over lldb.

1
debian/lldb-3.3-dev.install vendored Normal file
View File

@ -0,0 +1 @@
/usr/lib/llvm-3.3/include/lldb

View File

@ -0,0 +1,33 @@
Index: llvm-toolchain-3.3-3.3/lldb/include/lldb/Makefile
===================================================================
--- llvm-toolchain-3.3-3.3.orig/lldb/include/lldb/Makefile (révision 191067)
+++ llvm-toolchain-3.3-3.3/lldb/include/lldb/Makefile (copie de travail)
@@ -4,11 +4,11 @@
include $(LEVEL)/Makefile.common
install-local::
- $(Echo) Installing Clang include files
+ $(Echo) Installing LLDB include files
$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir)
- $(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include/clang" ; then \
- cd $(PROJ_SRC_ROOT)/tools/clang/include && \
- for hdr in `find clang -type f '!' '(' -name '*~' \
+ $(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/lldb/include/lldb" ; then \
+ cd $(PROJ_SRC_ROOT)/tools/lldb/include && \
+ for hdr in `find lldb -type f '!' '(' -name '*~' \
-o -name '.#*' -o -name '*.in' -o -name '*.txt' \
-o -name 'Makefile' -o -name '*.td' -o -name '*.orig' ')' -print \
| grep -v CVS | grep -v .svn | grep -v .dir` ; do \
@@ -21,9 +21,9 @@
done ; \
fi
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
- $(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/clang/include/clang" ; then \
- cd $(PROJ_OBJ_ROOT)/tools/clang/include && \
- for hdr in `find clang -type f '!' '(' -name 'Makefile' ')' -print \
+ $(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/lldb/include/lldb" ; then \
+ cd $(PROJ_OBJ_ROOT)/tools/lldb/include && \
+ for hdr in `find lldb -type f '!' '(' -name 'Makefile' ')' -print \
| grep -v CVS | grep -v .tmp | grep -v .dir` ; do \
$(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
done ; \

View File

@ -35,3 +35,4 @@ libprofile_rt_sparc.patch
lldb-hurd.diff
libstdc++-header-i386.diff
kfreebsd_target_info_clang33.diff
lldb-install-headers.diff

6
debian/rules vendored
View File

@ -105,12 +105,12 @@ override_dh_auto_configure: debian/lldb-$(LLVM_VERSION).install debian/lldb-$(LL
fi; \
ln -s ../polly .
if test $(LLDB_ENABLE) = yes; then \
if test $(LLDB_ENABLE) = yes; then \
cd tools/ && \
if test -h lldb; then \
rm lldb; \
fi; \
ln -s ../lldb .; \
ln -s ../lldb .; \
fi
cd projects/ && \
@ -176,7 +176,7 @@ build_doc:
for f in llvm-dwarfdump llvm-mc llvm-mcmarkup llvm-objdump llvm-rtdyld llvm-size llvm-tblgen macho-dump lldb clang-format cpp11-migrate; do \
help2man --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/Release/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \
done
done
override_dh_auto_install:
$(MAKE) -C $(TARGET_BUILD) VERBOSE=1 install DESTDIR=$(CURDIR)/debian/tmp/