* update glslang to 15.0.0-2

This commit is contained in:
Alexander Baldeck 2024-12-08 11:20:38 +01:00
parent 85e6201cea
commit 1502cd0b68
3 changed files with 18 additions and 16 deletions

View File

@ -1,7 +1,7 @@
pkgbase = glslang
pkgdesc = OpenGL and OpenGL ES shader front end and validator
pkgver = 14.3.0
pkgrel = 1.1
pkgver = 15.0.0
pkgrel = 2
url = https://github.com/KhronosGroup/glslang
arch = x86_64
arch = powerpc64le
@ -16,7 +16,7 @@ pkgbase = glslang
depends = gcc-libs
depends = spirv-tools
options = staticlibs
source = glslang-14.3.0.tar.gz::https://github.com/KhronosGroup/glslang/archive/14.3.0.tar.gz
sha256sums = be6339048e20280938d9cb399fcdd06e04f8654d43e170e8cce5a56c9a754284
source = glslang-15.0.0.tar.gz::https://github.com/KhronosGroup/glslang/archive/15.0.0.tar.gz
sha256sums = c31c8c2e89af907507c0631273989526ee7d5cdf7df95ececd628fd7b811e064
pkgname = glslang

View File

@ -1,19 +1,11 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Daurnimator <daurnimator@archlinux.org>
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Maintainer: Robin Candau <antiz@archlinux.org>
# Careful when upgrading this package! It usually breaks ABI without bumping
# soname. Also, be very mindful of the version of spirv-tools that this links
# to. Upstream actually expects the use of the particular commits of
# spirv-tools and spirv-headers that are provided in known_good.json. However,
# if we went that route, we'd have to vendor the resulting spirv-tools libs
# from this glslang build and they would be incompatible with system libs,
# resulting in us having to ship both. Instead, I recommend just waiting until
# upstream releases a compatible version of spirv-tools, then updating the
# spriv-tools system package and only then building glslang against that.
pkgname=glslang
pkgver=14.3.0
pkgrel=1.1
pkgver=15.0.0
pkgrel=2
pkgdesc='OpenGL and OpenGL ES shader front end and validator'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/KhronosGroup/glslang'
@ -22,7 +14,7 @@ depends=('gcc-libs' 'spirv-tools')
makedepends=('cmake' 'ninja' 'spirv-headers' 'python')
options=('staticlibs')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz)
sha256sums=('be6339048e20280938d9cb399fcdd06e04f8654d43e170e8cce5a56c9a754284')
sha256sums=('c31c8c2e89af907507c0631273989526ee7d5cdf7df95ececd628fd7b811e064')
build() {
cd ${pkgname}-${pkgver}
@ -50,11 +42,13 @@ build() {
check() {
cd ${pkgname}-${pkgver}
ninja -Cbuild-shared test
}
package() {
cd ${pkgname}-${pkgver}
DESTDIR="${pkgdir}" cmake --install build-static
DESTDIR="${pkgdir}" cmake --install build-shared

8
glslang/README.md Normal file
View File

@ -0,0 +1,8 @@
# glslang
## Silent dependency on specific spirv-tools & spirv-headers version
Careful when upgrading this package! It usually breaks ABI without bumping soname.
Also, be very mindful of the version of `spirv-tools` that this links to. Upstream actually expects the use of the particular commits of `spirv-tools` and `spirv-headers` that are provided in the `known_good.json` file.
However, if we went that route, we'd have to vendor the resulting `spirv-tools` libs from this `glslang` build and they would be incompatible with system libs, resulting in us having to ship both. Instead, I recommend just waiting until upstream releases a compatible version of `spirv-tools`, then updating the `spriv-tools` system package and only then building `glslang` against that.