Bug#794905: llvm-3.7-dev: Incorrect install prefix in installed LLVMConfig.cmake
James Price
j.price at bristol.ac.uk
Fri Aug 7 21:58:19 UTC 2015
Package: llvm-3.7-dev
Version: 1:3.7~+rc2-2
Severity: normal
Tags: patch
Dear Maintainer,
The LLVM_INSTALL_PREFIX variable set by LLVMConfig.cmake wrongly
assumes that the installed CMake configuration files are in a
subdirectory of the actual LLVM installation. The Debian package moves
the CMake configuration files to /usr/share/llvm-VERSION/, so this
assumption is not correct.
The way that the LLVM_INSTALL_PREFIX variable is determined has
changed in LLVM 3.7, and this issue for Debian was pointed out (along
with a proposed fix) by Brad King, here:
http://thread.gmane.org/gmane.comp.compilers.llvm.cvs/255502/focus=25574
The attached patch resolves this by essentially using the same
mechanism to determine LLVM_INSTALL_PREFIX as was used in LLVM
3.6. The resulting changes to the generated LLVMConfig.cmake match the
changes proposed by Brad above.
Many thanks,
James
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages llvm-3.7-dev depends on:
ii libc6 2.19-19
ii libedit2 3.1-20150325-1
ii libffi-dev 3.2.1-3
ii libffi6 3.2.1-3
ii libgcc1 1:5.2.1-14
ii libjsoncpp0v5 0.10.5-1
ii libllvm3.7 1:3.7~+rc2-2
ii libstdc++6 5.2.1-14
ii libtinfo-dev 5.9+20150516-2
ii libtinfo5 5.9+20150516-2
ii llvm-3.7 1:3.7~+rc2-2
ii zlib1g 1:1.2.8.dfsg-2+b1
llvm-3.7-dev recommends no packages.
llvm-3.7-dev suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-cmake-config-prefix.diff
Type: text/x-diff
Size: 1184 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150807/33f1df99/attachment.diff>
More information about the Pkg-llvm-team
mailing list