[packages/glslang] - added symlink patch (fix glslangValidator compatibility symlink creation; still required by Mesa)

qboosh qboosh at pld-linux.org
Thu Feb 29 20:59:13 CET 2024


commit 67e4c0e54667dab969c0df13e7a3bada825db808
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Feb 29 20:47:30 2024 +0100

    - added symlink patch (fix glslangValidator compatibility symlink creation; still required by Mesa)

 glslang-symlink.patch | 11 +++++++++++
 glslang.spec          |  3 +++
 2 files changed, 14 insertions(+)
---
diff --git a/glslang.spec b/glslang.spec
index e1b0bdb..9f4822e 100644
--- a/glslang.spec
+++ b/glslang.spec
@@ -13,6 +13,7 @@ Group:		Applications/Graphics
 #Source0Download: https://github.com/KhronosGroup/glslang/releases
 Source0:	https://github.com/KhronosGroup/glslang/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	bfbf7fb0d18d00306ef229f289a8d593
+Patch0:		%{name}-symlink.patch
 URL:		https://github.com/KhronosGroup/glslang
 BuildRequires:	bison
 BuildRequires:	cmake >= 3.14.0
@@ -50,6 +51,7 @@ AST.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %cmake -B build \
@@ -81,6 +83,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGES.md LICENSE.txt README-spirv-remap.txt
 %attr(755,root,root) %{_bindir}/glslang
+%attr(755,root,root) %{_bindir}/glslangValidator
 %attr(755,root,root) %{_bindir}/spirv-remap
 %attr(755,root,root) %{_libdir}/libSPIRV.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libSPIRV.so.14
diff --git a/glslang-symlink.patch b/glslang-symlink.patch
new file mode 100644
index 0000000..ae92619
--- /dev/null
+++ b/glslang-symlink.patch
@@ -0,0 +1,11 @@
+--- glslang-14.0.0/StandAlone/CMakeLists.txt.orig	2023-12-22 18:11:28.000000000 +0100
++++ glslang-14.0.0/StandAlone/CMakeLists.txt	2024-02-29 20:31:40.878763802 +0100
+@@ -116,7 +116,7 @@ if(PROJECT_IS_TOP_LEVEL)
+     # Create the same symlink at install time
+     install(CODE "execute_process( \
+                       COMMAND ${CMAKE_COMMAND} -E ${link_method} $<TARGET_FILE_NAME:glslang-standalone> ${legacy_glslang_name} \
+-                      WORKING_DIRECTORY \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})")
++                      WORKING_DIRECTORY \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR})")
+ 
+     if(ENABLE_SPVREMAPPER)
+         install(TARGETS spirv-remap EXPORT glslang-targets)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glslang.git/commitdiff/67e4c0e54667dab969c0df13e7a3bada825db808



More information about the pld-cvs-commit mailing list