Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llvm metapkg #53198

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,6 @@ libclang-cpp.so.17 libclang-cpp17-17.0.6_1
libLLVM-17.so libllvm17-17.0.6_1
libLLVM.so.18.1 libllvm18-18.1.8_1
libLLVM.so.19.1 libllvm19-19.1.0_1
libLLVMSPIRVLib.so.18.1 SPIRV-LLVM-Translator-18.1.2_1
libLLVMSPIRVLib.so.19.1 SPIRV-LLVM-Translator19-19.1.1_1
libomp.so.5 libomp-17.0.6_1
libomptarget.so.18.1 libomp-18.1.8_1
Expand Down
33 changes: 8 additions & 25 deletions srcpkgs/SPIRV-LLVM-Translator/template
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
# Template file for 'SPIRV-LLVM-Translator'
pkgname=SPIRV-LLVM-Translator
version=18.1.3
version=19
revision=1
build_style=cmake
configure_args="-Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_SKIP_RPATH=ON
-DLLVM_SPIRV_INCLUDE_TESTS=OFF -DBUILD_SHARED_LIBS=ON
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr"
hostmakedepends="clang18 llvm18"
makedepends="llvm18-devel SPIRV-Headers SPIRV-Tools-devel"
short_desc="API and commands for processing SPIR-V modules"
build_style=meta
depends="SPIRV-LLVM-Translator${version}"
short_desc="Bidirectional SPIR-V to LLVM Translator - meta package"
maintainer="Daniel Martinez <[email protected]>"
license="NCSA"
homepage="https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
distfiles="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v${version}.tar.gz"
checksum=d896f35102c3ba9e16ead7b4db53b75e6131982cdb36a3324f17c68a43598759

alternatives="llvm-spirv:llvm-spirv:/usr/bin/llvm-spirv-${version%.*.*}"

post_install() {
mv ${DESTDIR}/usr/bin/llvm-spirv ${DESTDIR}/usr/bin/llvm-spirv-${version%.*.*}
vlicense LICENSE.TXT
}
license="Public Domain"
homepage="https://www.voidlinux.org"

SPIRV-LLVM-Translator-devel_package() {
depends="SPIRV-LLVM-Translator-${version}_${revision}"
build_style=meta
depends="SPIRV-LLVM-Translator${version}-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
4 changes: 2 additions & 2 deletions srcpkgs/SPIRV-LLVM-Translator19/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'SPIRV-LLVM-Translator19'
pkgname=SPIRV-LLVM-Translator19
version=19.1.1
revision=1
revision=2
_llvm_ver=${version%%.*}
build_style=cmake
configure_args="-Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_SKIP_RPATH=ON
Expand All @@ -27,7 +27,7 @@ post_install() {

SPIRV-LLVM-Translator19-devel_package() {
depends="SPIRV-LLVM-Translator${_llvm_ver}-${version}_${revision}"
conflicts="SPIRV-LLVM-Translator-devel>=0"
conflicts="SPIRV-LLVM-Translator-devel<=18.1.3_1"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/clang-devel
1 change: 1 addition & 0 deletions srcpkgs/flang
1 change: 1 addition & 0 deletions srcpkgs/flang-devel
1 change: 1 addition & 0 deletions srcpkgs/libclc
36 changes: 0 additions & 36 deletions srcpkgs/libclc/template

This file was deleted.

1 change: 1 addition & 0 deletions srcpkgs/lld-devel
1 change: 1 addition & 0 deletions srcpkgs/lldb-devel
1 change: 1 addition & 0 deletions srcpkgs/llvm-bolt
1 change: 1 addition & 0 deletions srcpkgs/llvm-devel
100 changes: 89 additions & 11 deletions srcpkgs/llvm/template
Original file line number Diff line number Diff line change
@@ -1,50 +1,84 @@
# Template file for 'llvm'
pkgname=llvm
version=17
revision=5
version=19
revision=1
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
maintainer="Enno Boland <[email protected]>"
license="Public Domain"
homepage="https://www.voidlinux.org"
replaces="llvm15>=0 llvm12>=0 llvm11>=0 llvm10>=0 llvm9>=0 llvm8>=0 llvm7>=0 llvm6.0>=0 llvm3.9>=0"
replaces="llvm18>=0 llvm17>=0 llvm15>=0 llvm12>=0 llvm11>=0 llvm10>=0 llvm9>=0
llvm8>=0 llvm7>=0 llvm6.0>=0 llvm3.9>=0"

llvm-devel_package() {
build_style=meta
replaces="llvm18-devel>=0 llvm17-devel>=0"
depends="llvm${version}-devel>=0"
short_desc+=" - ${pkgname}"
}

clang_package() {
build_style=meta
replaces="clang18>=0 clang17>=0"
depends="clang${version}>=0"
short_desc+=" - clang"
short_desc+=" - ${pkgname}"
}

clang-devel_package() {
build_style=meta
replaces="clang18-devel>=0 clang17-devel>=0"
depends="clang${version}-devel>=0"
short_desc+=" - ${pkgname}"
}

clang-tools-extra_package() {
build_style=meta
replaces="clang-tools-extra18>=0 clang-tools-extra17>=0"
depends="clang-tools-extra${version}>=0"
short_desc+=" - clang-tools-extra"
short_desc+=" - ${pkgname}"
}

clang-analyzer_package() {
build_style=meta
replaces="clang-analyzer18>=0 clang-analyzer17>=0"
depends="clang-analyzer${version}>=0"
short_desc+=" - clang-analyzer"
short_desc+=" - ${pkgname}"
}

lld_package() {
build_style=meta
replaces="lld18>=0 lld17>=0"
depends="lld${version}>=0"
short_desc+=" - lld"
short_desc+=" - ${pkgname}"
}

lld-devel_package() {
build_style=meta
replaces="lld18-devel>=0 lld17-devel>=0"
depends="lld${version}-devel>=0"
short_desc+=" - ${pkgname}"
}

lldb_package() {
build_style=meta
replaces="lldb18>=0 lldb17>=0"
depends="lldb${version}>=0"
short_desc+=" - lldb"
short_desc+=" - ${pkgname}"
}

lldb-devel_package() {
build_style=meta
replaces="lldb18-devel>=0 lldb17-devel>=0"
depends="lldb${version}-devel>=0"
short_desc+=" - ${pkgname}"
}

compiler-rt_package() {
reverts="17.0.6_1 17.0.6_2"
build_style=meta
depends="compiler-rt${version}>=0"
short_desc+=" - compiler-rt"
short_desc+=" - ${pkgname}"
}

libclang_package() {
Expand All @@ -68,13 +102,57 @@ libllvm_package() {
libomp_package() {
reverts="17.0.6_1 17.0.6_2"
build_style=meta
replaces="libomp18>=0 libomp17>=0"
depends="libomp${version}>=0"
short_desc+=" - transitional meta package"
short_desc+=" - ${pkgname}"
}

libomp-devel_package() {
reverts="17.0.6_1 17.0.6_2"
build_style=meta
replaces="libomp18-devel>=0 libomp17-devel>=0"
depends="libomp${version}-devel>=0"
short_desc+=" - transitional meta package"
short_desc+=" - ${pkgname}"
}

mlir_package() {
build_style=meta
replaces="mlir18>=0 mlir17>=0"
depends="mlir${version}>=0"
short_desc+=" - ${pkgname}"
}

mlir-devel_package() {
build_style=meta
replaces="mlir18-devel>=0 mlir17-devel>=0"
depends="mlir${version}-devel>=0"
short_desc+=" - ${pkgname}"
}

flang_package() {
build_style=meta
replaces="flang18>=0 flang17>=0"
depends="flang${version}>=0"
short_desc+=" - ${pkgname}"
}

flang-devel_package() {
build_style=meta
replaces="flang18-devel>=0 flang17-devel>=0"
depends="flang${version}-devel>=0"
short_desc+=" - ${pkgname}"
}

llvm-bolt_package() {
build_style=meta
replaces="llvm-bolt18>=0 llvm-bolt17>=0"
depends="llvm-bolt${version}>=0"
short_desc+=" - ${pkgname}"
}

libclc_package() {
build_style=meta
replaces="libclc-git>=0"
depends="libclc${version}>=0"
short_desc+=" - ${pkgname}"
}
1 change: 1 addition & 0 deletions srcpkgs/mlir
1 change: 1 addition & 0 deletions srcpkgs/mlir-devel