llvm10: separate libclang and libclang-cpp into their own packages
This allows things to depend on libclang without carrying in the entire toolchain. Also, allows for libclang-32bit and libclang-cpp-32bit to exist, which will prevent runtime dependency issues with e.g. mesa-opencl. Also, disable lldb-devel and clang-tools-extra on 32bit multilib, as they don't really make sense there.
This commit is contained in:
parent
c1a017181f
commit
81c5dec485
4 changed files with 26 additions and 6 deletions
|
@ -1031,8 +1031,8 @@ libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
|
||||||
libyajl.so.2 yajl-2.0.1_1
|
libyajl.so.2 yajl-2.0.1_1
|
||||||
libconfuse.so.2 confuse-3.2.1_1
|
libconfuse.so.2 confuse-3.2.1_1
|
||||||
liblldb.so.10 lldb-10.0.0_1
|
liblldb.so.10 lldb-10.0.0_1
|
||||||
libclang.so.10 clang-10.0.0_1
|
libclang.so.10 libclang-10.0.0_3
|
||||||
libclang-cpp.so.10 clang-10.0.0_1
|
libclang-cpp.so.10 libclang-cpp-10.0.0_3
|
||||||
libLLVM-10.so libllvm10-10.0.0_1
|
libLLVM-10.so libllvm10-10.0.0_1
|
||||||
libLLVM-9.so libllvm9-9.0.0_1
|
libLLVM-9.so libllvm9-9.0.0_1
|
||||||
libisofs.so.6 libisofs-0.6.24_1
|
libisofs.so.6 libisofs-0.6.24_1
|
||||||
|
|
1
srcpkgs/libclang
Symbolic link
1
srcpkgs/libclang
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
llvm10
|
1
srcpkgs/libclang-cpp
Symbolic link
1
srcpkgs/libclang-cpp
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
llvm10
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'llvm10'
|
# Template file for 'llvm10'
|
||||||
pkgname=llvm10
|
pkgname=llvm10
|
||||||
version=10.0.0
|
version=10.0.0
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="llvm-${version}.src"
|
wrksrc="llvm-${version}.src"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="
|
configure_args="
|
||||||
|
@ -48,7 +48,7 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
ppc*) _lldb_enable=no ;;
|
ppc*) _lldb_enable=no ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
subpackages="clang-tools-extra clang clang-analyzer libllvm10"
|
subpackages="clang-tools-extra clang clang-analyzer libclang libclang-cpp libllvm10"
|
||||||
if [ "$_lldb_enable" = "yes" ]; then
|
if [ "$_lldb_enable" = "yes" ]; then
|
||||||
# XXX fails to cross compile due to python
|
# XXX fails to cross compile due to python
|
||||||
subpackages+=" lldb lldb-devel"
|
subpackages+=" lldb lldb-devel"
|
||||||
|
@ -198,6 +198,7 @@ clang-analyzer_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
clang-tools-extra_package() {
|
clang-tools-extra_package() {
|
||||||
|
lib32disabled=yes
|
||||||
depends="clang-${version}_${revision} python3"
|
depends="clang-${version}_${revision} python3"
|
||||||
short_desc+=" - Extra Clang tools"
|
short_desc+=" - Extra Clang tools"
|
||||||
homepage="https://clang.llvm.org/extra/"
|
homepage="https://clang.llvm.org/extra/"
|
||||||
|
@ -221,7 +222,8 @@ clang-tools-extra_package() {
|
||||||
|
|
||||||
clang_package() {
|
clang_package() {
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
depends="libstdc++-devel libgcc-devel binutils ${XBPS_TARGET_LIBC}-devel"
|
depends="libstdc++-devel libgcc-devel binutils ${XBPS_TARGET_LIBC}-devel
|
||||||
|
libclang-${version}_${revision}"
|
||||||
short_desc+=" - C language family frontend"
|
short_desc+=" - C language family frontend"
|
||||||
homepage="https://clang.llvm.org/"
|
homepage="https://clang.llvm.org/"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
@ -231,11 +233,26 @@ clang_package() {
|
||||||
vmove usr/bin/c-index-test
|
vmove usr/bin/c-index-test
|
||||||
vmove usr/lib/clang
|
vmove usr/lib/clang
|
||||||
vmove usr/lib/cmake/clang
|
vmove usr/lib/cmake/clang
|
||||||
vmove "usr/lib/libclang*"
|
vmove "usr/lib/libclang*.a"
|
||||||
|
vmove "usr/lib/libclang*.so"
|
||||||
vmove "usr/share/clang"
|
vmove "usr/share/clang"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
libclang_package() {
|
||||||
|
short_desc+=" - C frontend runtime library"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libclang.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libclang-cpp_package() {
|
||||||
|
short_desc+=" - C frontend runtime library (C++ interface)"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libclang-cpp.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lld_package() {
|
lld_package() {
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
short_desc+=" - linker"
|
short_desc+=" - linker"
|
||||||
|
@ -272,6 +289,7 @@ lldb_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
lldb-devel_package() {
|
lldb-devel_package() {
|
||||||
|
lib32disabled=yes
|
||||||
depends="lldb>=${version}_${revision}"
|
depends="lldb>=${version}_${revision}"
|
||||||
short_desc+=" - LLDB debugger - development files"
|
short_desc+=" - LLDB debugger - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue