No longer building some clang help page, removing them

This commit is contained in:
Sylvestre Ledru 2015-07-10 22:41:19 +00:00
parent c6221d5094
commit b742b38391
6 changed files with 52 additions and 36 deletions

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ llvm-toolchain-snapshot (1:3.7~svn231060-1~exp2) UNRELEASED; urgency=medium
* Disable the patch force-gcc-header-obj.diff. Seems to cause bug #23556 * Disable the patch force-gcc-header-obj.diff. Seems to cause bug #23556
* Fix the CMake build. thanks to Paweł Bylica for the fix. * Fix the CMake build. thanks to Paweł Bylica for the fix.
Fix upstream bug #23352 Fix upstream bug #23352
* No longer building some clang help page, removing them
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 21 Apr 2015 09:41:41 +0200 -- Sylvestre Ledru <sylvestre@debian.org> Tue, 21 Apr 2015 09:41:41 +0200

View File

@ -1,3 +1 @@
usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html/clang/manpage.css usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html/
usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html/clang/clang.html
usr/lib/llvm-@LLVM_VERSION@/docs/llvm/ps/clang.ps

View File

@ -25,4 +25,4 @@ usr/bin/pp-trace-@LLVM_VERSION@
usr/bin/clang-query-@LLVM_VERSION@ usr/bin/clang-query-@LLVM_VERSION@
usr/bin/clang-rename-@LLVM_VERSION@ usr/bin/clang-rename-@LLVM_VERSION@
usr/lib/llvm-@LLVM_VERSION@/share/man/man1/clang.1 #usr/lib/llvm-@LLVM_VERSION@/share/man/man1/clang.1

View File

@ -1,4 +1,4 @@
build-llvm/tools/clang/docs/tools/clang-@LLVM_VERSION@.1 #build-llvm/tools/clang/docs/tools/clang-@LLVM_VERSION@.1
clang/tools/scan-build/scan-build-@LLVM_VERSION@.1 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

View File

@ -35,6 +35,7 @@ libclang-@LLVM_VERSION@.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_Cursor_getObjCDeclQualifiers@Base 3.4 clang_Cursor_getObjCDeclQualifiers@Base 3.4
clang_Cursor_getObjCPropertyAttributes@Base 3.4 clang_Cursor_getObjCPropertyAttributes@Base 3.4
clang_Cursor_getObjCSelectorIndex@Base 3.2 clang_Cursor_getObjCSelectorIndex@Base 3.2
clang_Cursor_getOffsetOfField@Base 3.7
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
@ -45,6 +46,7 @@ libclang-@LLVM_VERSION@.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_Cursor_getTemplateArgumentUnsignedValue@Base 3.6 clang_Cursor_getTemplateArgumentUnsignedValue@Base 3.6
clang_Cursor_getTemplateArgumentValue@Base 3.6 clang_Cursor_getTemplateArgumentValue@Base 3.6
clang_Cursor_getTranslationUnit@Base 3.2 clang_Cursor_getTranslationUnit@Base 3.2
clang_Cursor_isAnonymous@Base 3.7
clang_Cursor_isBitField@Base 3.4 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
@ -98,6 +100,7 @@ libclang-@LLVM_VERSION@.so.1 libclang1-@LLVM_VERSION@ #MINVER#
clang_Type_getOffsetOf@Base 3.4 clang_Type_getOffsetOf@Base 3.4
clang_Type_getSizeOf@Base 3.4 clang_Type_getSizeOf@Base 3.4
clang_Type_getTemplateArgumentAsType@Base 3.6 clang_Type_getTemplateArgumentAsType@Base 3.6
clang_Type_visitFields@Base 3.7
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 3.6 clang_VirtualFileOverlay_addFileMapping@Base 3.6
@ -152,6 +155,7 @@ libclang-@LLVM_VERSION@.so.1 libclang1-@LLVM_VERSION@ #MINVER#
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
clang_free@Base 3.7
clang_getArgType@Base 3.2 clang_getArgType@Base 3.2
clang_getArrayElementType@Base 3.2 clang_getArrayElementType@Base 3.2
clang_getArraySize@Base 3.2 clang_getArraySize@Base 3.2

43
debian/rules vendored
View File

@ -15,6 +15,9 @@ endif
VENDOR=$(shell lsb_release -is) VENDOR=$(shell lsb_release -is)
AUTOCONF_BUILD=yes
BUILD_DIR=Release
DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_ARCH_BITS = $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS) DEB_HOST_ARCH_BITS = $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
@ -188,8 +191,10 @@ override_dh_auto_configure: preconfigure
# Due to bug upstream, no symlink here # Due to bug upstream, no symlink here
cp -R -H clang-tools-extra tools/clang/tools/extra cp -R -H clang-tools-extra tools/clang/tools/extra
# Start the actual configure
cd $(TARGET_BUILD) && $(PRE_PROCESS_CONF) \ if test $(AUTOCONF_BUILD) = yes; then \
cd $(TARGET_BUILD); \
$(PRE_PROCESS_CONF) \
../configure $(confargs) \ ../configure $(confargs) \
--prefix=/usr/lib/llvm-$(LLVM_VERSION) \ --prefix=/usr/lib/llvm-$(LLVM_VERSION) \
--bindir=\$${prefix}/bin/ \ --bindir=\$${prefix}/bin/ \
@ -206,7 +211,13 @@ override_dh_auto_configure: preconfigure
--enable-shared \ --enable-shared \
--disable-bindings \ --disable-bindings \
$(CONFIGURE_EXTRA) \ $(CONFIGURE_EXTRA) \
CLANG_VENDOR=$(VENDOR) || { cat config.log tools/polly/config.log; exit 1; } CLANG_VENDOR=$(VENDOR) || { cat config.log tools/polly/config.log; exit 1; }; \
else \
cd $(TARGET_BUILD) && \
cmake ../ \
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-$(LLVM_VERSION) \
-DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=on; \
fi
# cd $(TARGET_BUILD) && cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON # cd $(TARGET_BUILD) && cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
# mkdir build-compiler-rt && cd build-compiler-rt && cmake ../compiler-rt # mkdir build-compiler-rt && cd build-compiler-rt && cmake ../compiler-rt
# --with-ocaml-libdir=/usr/lib/ocaml/llvm-$(LLVM_VERSION) \ # --with-ocaml-libdir=/usr/lib/ocaml/llvm-$(LLVM_VERSION) \
@ -250,14 +261,16 @@ build_doc:
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"; \ 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"; \
for f in $$CMDS; do \ for f in $$CMDS; do \
echo "Generating manpage of $$f"; \ echo "Generating manpage of $$f"; \
LD_LIBRARY_PATH=$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/ help2man --no-discard-stderr --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/Release/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \ LD_LIBRARY_PATH=$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/ help2man --no-discard-stderr --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/$(BUILD_DIR)/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \
done 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)/$(BUILD_DIR)/bin/clang
chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable` # Only run on executable, not script
chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable -exec file -i '{}' \; | grep 'x-executable; charset=binary'|cut -d: -f1`
# 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)
@ -300,7 +313,7 @@ override_dh_auto_install:
done done
# Rename some stuff with the version name # Rename some stuff with the version name
cp $(CURDIR)/$(TARGET_BUILD)/tools/clang/docs/tools/clang.1 $(CURDIR)/$(TARGET_BUILD)/tools/clang/docs/tools/clang-$(LLVM_VERSION).1 # cp $(CURDIR)/$(TARGET_BUILD)/tools/clang/docs/tools/clang.1 $(CURDIR)/$(TARGET_BUILD)/tools/clang/docs/tools/clang-$(LLVM_VERSION).1
cp $(CURDIR)/clang/tools/scan-build/scan-build.1 $(CURDIR)/clang/tools/scan-build/scan-build-$(LLVM_VERSION).1 cp $(CURDIR)/clang/tools/scan-build/scan-build.1 $(CURDIR)/clang/tools/scan-build/scan-build-$(LLVM_VERSION).1
@ -332,7 +345,7 @@ override_dh_auto_install:
sed -i 's|LLVM_CMAKE_DIR "/usr/lib/llvm-$(LLVM_VERSION)/share/llvm/cmake"|LLVM_CMAKE_DIR "/usr/share/llvm-$(LLVM_VERSION)/cmake"|' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/llvm/cmake/LLVMConfig.cmake sed -i 's|LLVM_CMAKE_DIR "/usr/lib/llvm-$(LLVM_VERSION)/share/llvm/cmake"|LLVM_CMAKE_DIR "/usr/share/llvm-$(LLVM_VERSION)/cmake"|' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/llvm/cmake/LLVMConfig.cmake
# Managed in lldb-X.Y.links.in # Managed in lldb-X.Y.links.in
rm -f $(CURDIR)/$(TARGET_BUILD)/Release/lib/python*/site-packages/lldb/_lldb.so rm -f $(CURDIR)/$(TARGET_BUILD)/$(BUILD_DIR)/lib/python*/site-packages/lldb/_lldb.so
# Manage the polly files. Sometimes, we build them. Sometimes not. # Manage the polly files. Sometimes, we build them. Sometimes not.
if test $(POLLY_ENABLE) = yes; then \ if test $(POLLY_ENABLE) = yes; then \
@ -385,22 +398,22 @@ override_dh_auto_test:
# LLVM tests # LLVM tests
ifneq (,$(findstring $(DEB_HOST_ARCH),$(ARCH_LLVM_TEST_OK))) ifneq (,$(findstring $(DEB_HOST_ARCH),$(ARCH_LLVM_TEST_OK)))
# Fail the build if the test fails # Fail the build if the test fails
NJOBS="$(NJOBS)" LD_LIBRARY_PATH=$(CURDIR)/$(TARGET_BUILD)/Release/lib/ $(MAKE) -C $(TARGET_BUILD) check NJOBS="$(NJOBS)" LD_LIBRARY_PATH=$(CURDIR)/$(TARGET_BUILD)/$(BUILD_DIR)/lib/ $(MAKE) -C $(TARGET_BUILD) check
else else
NJOBS="$(NJOBS)" LD_LIBRARY_PATH=$(CURDIR)/$(TARGET_BUILD)/Release/lib/ $(MAKE) -C $(TARGET_BUILD) check || true NJOBS="$(NJOBS)" LD_LIBRARY_PATH=$(CURDIR)/$(TARGET_BUILD)/$(BUILD_DIR)/lib/ $(MAKE) -C $(TARGET_BUILD) check || true
endif endif
# clang tests # clang tests
# setup the env # setup the env
cd $(TARGET_BUILD)/Release/lib/ && ln -s libclang.so libclang.so.1 && ln -s libclang.so libclang-$(LLVM_VERSION).so.1 cd $(TARGET_BUILD)/$(BUILD_DIR)/lib/ && ln -s libclang.so libclang.so.1 && ln -s libclang.so libclang-$(LLVM_VERSION).so.1
cd $(TARGET_BUILD)/ && $(MAKE) -C tools/clang/ test || true cd $(TARGET_BUILD)/ && $(MAKE) -C tools/clang/ test || true
rm -f $(TARGET_BUILD)/Release/lib/libclang.so.1 $(TARGET_BUILD)/Release/lib/libclang-$(LLVM_VERSION).so.1 rm -f $(TARGET_BUILD)/$(BUILD_DIR)/lib/libclang.so.1 $(TARGET_BUILD)/$(BUILD_DIR)/lib/libclang-$(LLVM_VERSION).so.1
# lldb tests # lldb tests
ifeq (,$(filter $(DEB_HOST_ARCH), $(LLDB_DISABLE_ARCHS) armhf armel)) ifeq (,$(filter $(DEB_HOST_ARCH), $(LLDB_DISABLE_ARCHS) armhf armel))
if test $(LLDB_ENABLE) = yes; then \ if test $(LLDB_ENABLE) = yes; then \
cd $(TARGET_BUILD)/Release/lib/python2.7/site-packages/lldb && if test ! -h _lldb.so -o ! -f _lldb.so; then ln -s ../../../liblldb.so _lldb.so; fi; \ cd $(TARGET_BUILD)/$(BUILD_DIR)/lib/python2.7/site-packages/lldb && if test ! -h _lldb.so -o ! -f _lldb.so; then ln -s ../../../liblldb.so _lldb.so; fi; \
if test ! -h libLLVM-$(LLVM_VERSION).so.$(SONAME_EXT) -o ! -f _lldb.so; then \ if test ! -h libLLVM-$(LLVM_VERSION).so.$(SONAME_EXT) -o ! -f _lldb.so; then \
ln -s ../../../libLLVM-$(LLVM_VERSION_FULL).so libLLVM-$(LLVM_VERSION).so.$(SONAME_EXT); \ ln -s ../../../libLLVM-$(LLVM_VERSION_FULL).so libLLVM-$(LLVM_VERSION).so.$(SONAME_EXT); \
fi; \ fi; \
@ -409,7 +422,7 @@ ifeq (,$(filter $(DEB_HOST_ARCH), $(LLDB_DISABLE_ARCHS) armhf armel))
fi; \ fi; \
fi fi
cd $(TARGET_BUILD)/Release/lib && \ cd $(TARGET_BUILD)/$(BUILD_DIR)/lib && \
rm -f liblldb-$(LLVM_VERSION).so && \ rm -f liblldb-$(LLVM_VERSION).so && \
ln -s liblldb.so liblldb-$(LLVM_VERSION).so ln -s liblldb.so liblldb-$(LLVM_VERSION).so
@ -420,7 +433,7 @@ ifeq (,$(filter $(DEB_HOST_ARCH), $(LLDB_DISABLE_ARCHS) armhf armel))
endif endif
# Managed by debian build system # Managed by debian build system
rm -f $(CURDIR)/$(TARGET_BUILD)/Release/lib/python*/site-packages/lldb/_lldb.so $(TARGET_BUILD)/Release/lib/liblldb-$(LLVM_VERSION).so rm -f $(CURDIR)/$(TARGET_BUILD)/$(BUILD_DIR)/lib/python*/site-packages/lldb/_lldb.so $(TARGET_BUILD)/$(BUILD_DIR)/lib/liblldb-$(LLVM_VERSION).so
# polly tests # polly tests
if test $(POLLY_ENABLE) = yes; then \ if test $(POLLY_ENABLE) = yes; then \