On 06/23/2016 09:36 AM, Debian Bug Tracking System wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the llvm-3.8-dev package:
>
> #819072: llvm-3.8-dev: LLVM CMake files broken by Debian packaging
>
> It has been closed by Sylvestre Ledru <[email protected]>.
There is one remaining problem as of 3.8.1-1.
In r1918 this change was made:
# Explicit debian/tmp since there are multiple declarations
-debian/tmp/usr/lib/llvm-@LLVM_VERSION@/share/llvm/cmake/*.cmake
usr/share/llvm-@LLVM_VERSION@/cmake/
+debian/tmp/usr/lib/llvm-@LLVM_VERSION@/share/llvm/cmake/*.cmake
This is correct. However, my suggestion to do that also stated
that we need to add a symlink:
/usr/share/llvm-@LLVM_VERSION@/cmake ->
/usr/lib/llvm-@LLVM_VERSION@/share/llvm/cmake
This symlink is missing and so CMake projects cannot find the package
in default search locations.
I'm not familiar enough with debian packaging infrastructure to know
how to create this symlink and get it included in the llvm-3.8-dev
package, but it should be pretty simple for those that know.
Meanwhile the attached patch removes an unnecessary `sed` operation
that no longer matches anything or has any effect.
Thanks,
-Brad
Index: debian/rules
===================================================================
--- debian/rules (revision 1983)
+++ debian/rules (working copy)
@@ -409,9 +409,6 @@
rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/include/llvm/Support/LICENSE.TXT \
$(CURDIR)/debian/llvm-$(LLVM_VERSION)-dev/usr/lib/llvm-$(LLVM_VERSION)/build/autoconf/LICENSE.TXT
-# Change CMake module dir
- 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
-
# Disable CMake's package validation checks for target files that we may remove.
sed -i '/_IMPORT_CHECK_TARGETS \(Polly\|sancov\)/ {s|^|#|}' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/llvm/cmake/LLVMExports-*.cmake