vulkan-validation-layers-32: 1.3.216.0 -> 1.3.231.1

This commit is contained in:
Tim Biermann 2022-11-06 09:02:30 +00:00
parent cf85c2062b
commit acecb18e0f
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 8 additions and 35 deletions

View File

@ -1,7 +1,6 @@
untrusted comment: verify with /etc/ports/compat-32.pub
RWSwxGo/zH7eXaqNXTKG0q/B+O1YjYoRxcfSgeAWNLPeTpS9ChzeRjkJ/O/YGpG6deMU0RgIToa2r8l0jnhGf2rqzvRFpWJb6go=
SHA256 (Pkgfile) = bc40bf1237ce5bd3652e97a6446c14faf58ad4ccbae17dd73e1245f8e01a58f1
RWSwxGo/zH7eXY04IqXPp4lQn94mD94uhTcfl4x5PMsmHQBfaZN0+il3f1sdi0gx4aPRqdOTZAjVtlYlRtqqVtVqEZEzoLxtwQ4=
SHA256 (Pkgfile) = 219463f938a8875213992d490cc08d6f7a5604e7645b7e1aac0c26e5ef9dd644
SHA256 (.footprint) = 5c3e1cb61d0d5070cc1d278ec445757e1913b70cdec30985988d48c2f6ded070
SHA256 (Vulkan-ValidationLayers-1.3.216.0.tar.gz) = 593d9b818d536490b70322a01b306ec165df5e7a70d770d05014fbd0b325fa15
SHA256 (add-missing-export.patch) = 6ce7222099403dea8425b1dd305b9ebc43e747c32aca2a24cfc7f67ddd34cebf
SHA256 (Vulkan-ValidationLayers-1.3.231.1.tar.gz) = ea40af0f499e7e97a86ee54410c5c78e7f7bac40f65ae09a1549773b6501bf4d
SHA256 (fix_shared.patch) = 840af33ab26638c8c29da4a7f284eae6aeb40e01d506eef9851d7e6ee4a8bed0

View File

@ -5,32 +5,30 @@
# Optional: wayland-32
name=vulkan-validation-layers-32
version=1.3.216.0
version=1.3.231.1
release=1
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$version/Vulkan-ValidationLayers-$version.tar.gz
add-missing-export.patch
fix_shared.patch)
build() {
patch -d Vulkan-ValidationLayers-sdk-$version -p1 -i $SRC/add-missing-export.patch
patch -d Vulkan-ValidationLayers-sdk-$version -p1 -i $SRC/fix_shared.patch
prt-get isinst ninja && PKGMK_VULKAN_VALIDATION_LAYERS+=' -G Ninja'
prt-get isinst wayland-32 || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
cmake -S Vulkan-ValidationLayers-sdk-$version -B build $PKGMK_VULKAN_VALIDATION_LAYERS \
cmake -S Vulkan-ValidationLayers-sdk-$version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib32 \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
-D SPIRV_HEADERS_INSTALL_DIR=/usr \
-D VULKAN_HEADERS_INSTALL_DIR=/usr \
-D BUILD_TESTS=OFF \
-D BUILD_LAYER_SUPPORT_FILES=ON \
-D USE_ROBIN_HOOD_HASHING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --build build --target install
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/{include,share}
}

View File

@ -1,24 +0,0 @@
diff -up Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.cpp.dma Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.cpp
--- Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.cpp.dma 2021-08-07 08:13:46.344320103 +1000
+++ Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.cpp 2021-08-07 08:14:22.130893289 +1000
@@ -68,7 +68,7 @@ class ConfigFile {
static ConfigFile layer_config;
-string GetEnvironment(const char *variable) {
+VK_LAYER_EXPORT string GetEnvironment(const char *variable) {
#if !defined(__ANDROID__) && !defined(_WIN32)
const char *output = getenv(variable);
return output == NULL ? "" : output;
diff -up Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.h.dma Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.h
--- Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.h.dma 2021-08-07 08:14:04.352608540 +1000
+++ Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.h 2021-08-07 08:14:15.237782885 +1000
@@ -33,7 +33,7 @@
#define SECONDARY_VK_REGISTRY_HIVE_STR "HKEY_CURRENT_USER"
#endif
-std::string GetEnvironment(const char *variable);
+VK_LAYER_EXPORT std::string GetEnvironment(const char *variable);
#ifdef __cplusplus
extern "C" {