From 66dfda543ca74897147a28f4b60db3686f034e9c Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 18 Oct 2021 11:07:30 +0200 Subject: [PATCH] Bring back the llvm manpages (Closes: #995684) Were generated at the wrong place --- debian/changelog | 2 ++ debian/llvm-X.Y.manpages.in | 2 +- debian/qualify-clang.sh | 6 ++++++ debian/rules | 4 ++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3d3f8c1f..f86f82a2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ llvm-toolchain-13 (1:13.0.0-6) unstable; urgency=medium * Remove omp-device-info from LLVMExports.cmake (Closes: #996551) * Fix a atomic issue. Thanks to YunQiang Su for the patch Partial fix for #995827 + * Bring back the llvm manpages (Closes: #995684) + Were generated at the wrong place -- Sylvestre Ledru Fri, 15 Oct 2021 10:45:30 +0200 diff --git a/debian/llvm-X.Y.manpages.in b/debian/llvm-X.Y.manpages.in index 35702d06..e2483708 100644 --- a/debian/llvm-X.Y.manpages.in +++ b/debian/llvm-X.Y.manpages.in @@ -1,4 +1,4 @@ -docs/_build/man/* +llvm/docs/_build/man/* debian/man/llvm-dwarfdump-@LLVM_VERSION@.1 debian/man/llvm-mc-@LLVM_VERSION@.1 debian/man/llvm-objdump-@LLVM_VERSION@.1 diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 5db5b871..b1b7fcb7 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -44,6 +44,12 @@ if grep "File format not recognized" foo.log; then exit 1 fi +# Test #995684 +if test /usr/share/man/man1/llc-$VERSION.1.gz; then + echo "llvm manpage are missing (using llc as an example)" + exit 1 +fi + if test ! -f /usr/bin/scan-build-$VERSION; then echo "Install clang-tools-$VERSION" exit 1 diff --git a/debian/rules b/debian/rules index e47035e2..7a15c040 100755 --- a/debian/rules +++ b/debian/rules @@ -597,7 +597,7 @@ ifeq (${POLLY_ENABLE},yes) endif # Rename manpages - d=$(CURDIR)/docs/_build/man/; \ + d=$(CURDIR)/llvm/docs/_build/man/; \ if test -d $$d; then \ cd $$d; \ for f in *.1; do \ @@ -966,7 +966,7 @@ override_dh_gencontrol: override_dh_auto_clean: - rm -rf $(TARGET_BUILD) tools/clang/include/clang/Debian/debian_path.h docs/_build/ clang/docs/_build tools/clang/docs/_html/ + rm -rf $(TARGET_BUILD) tools/clang/include/clang/Debian/debian_path.h llvm/docs/_build/ clang/docs/_build tools/clang/docs/_html/ # QA tools rm -rf cov-int/ reports/ rm -f `ls debian/*.in|sed -e "s|.in$$||g"`