Files
termux-packages/packages/shaderc
termux-pacman-bot 2c017077b3 fix(main/shaderc): do not conflict with glslang
- Fixes https://github.com/termux/termux-packages/issues/26901

- Based on Arch Linux: 3ed2bcb635/README.md

- Unvendor dependencies `spirv-tools` and `glslang`, forcing `shaderc` to depend on the termux-packages `spirv-tools` and `glslang` instead of its vendored ones and not conflict with them.

- Desired for the creation of an improved Blender package that could then be installed simultaneously with and also depend on **many** other packages that depend on `glslang` without conflicting with them (that is how Arch Linux's Blender package works). The current situation (before this PR) is that `shaderc` cannot be installed in Termux while anything that depends on `glslang` or `spirv-tools` is installed, which unfortunately makes it difficult to develop an improved Blender package without changing Termux's `shaderc` package to not do that.

> [!WARNING]
> **Possible downside**: after this, `shaderc` might stop working suddenly if `spirv-tools` is bumped past unknown future versions without `shaderc` being recompiled. I have not disabled auto updating of `spirv-tools` with this, but I am prepared to watch out for the potential of that happening and try to fix it myself if it does happen.

Changeset of the provided files of `shaderc` (removed files are provided instead by the `glslang` and `spriv-tools` packages):

```diff
--- shaderc-old.txt	2025-10-15 06:22:43.186510341 -0500
+++ shaderc-new.txt	2025-10-15 06:23:12.066510330 -0500
@@ -7,88 +7,17 @@
 /data/data/com.termux/files/usr/bin
 /data/data/com.termux/files/usr/bin/glslc
 /data/data/com.termux/files/usr/include
-/data/data/com.termux/files/usr/include/glslang
-/data/data/com.termux/files/usr/include/glslang/Include
-/data/data/com.termux/files/usr/include/glslang/Include/ResourceLimits.h
-/data/data/com.termux/files/usr/include/glslang/Include/glslang_c_interface.h
-/data/data/com.termux/files/usr/include/glslang/Include/glslang_c_shader_types.h
-/data/data/com.termux/files/usr/include/glslang/Include/visibility.h
-/data/data/com.termux/files/usr/include/glslang/MachineIndependent
-/data/data/com.termux/files/usr/include/glslang/MachineIndependent/Versions.h
-/data/data/com.termux/files/usr/include/glslang/Public
-/data/data/com.termux/files/usr/include/glslang/Public/ResourceLimits.h
-/data/data/com.termux/files/usr/include/glslang/Public/ShaderLang.h
-/data/data/com.termux/files/usr/include/glslang/Public/resource_limits_c.h
-/data/data/com.termux/files/usr/include/glslang/SPIRV
-/data/data/com.termux/files/usr/include/glslang/SPIRV/GlslangToSpv.h
-/data/data/com.termux/files/usr/include/glslang/SPIRV/Logger.h
-/data/data/com.termux/files/usr/include/glslang/SPIRV/SPVRemapper.h
-/data/data/com.termux/files/usr/include/glslang/SPIRV/SpvTools.h
-/data/data/com.termux/files/usr/include/glslang/SPIRV/disassemble.h
-/data/data/com.termux/files/usr/include/glslang/SPIRV/spirv.hpp11
-/data/data/com.termux/files/usr/include/glslang/build_info.h
 /data/data/com.termux/files/usr/include/shaderc
 /data/data/com.termux/files/usr/include/shaderc/env.h
 /data/data/com.termux/files/usr/include/shaderc/shaderc.h
 /data/data/com.termux/files/usr/include/shaderc/shaderc.hpp
 /data/data/com.termux/files/usr/include/shaderc/status.h
 /data/data/com.termux/files/usr/include/shaderc/visibility.h
-/data/data/com.termux/files/usr/include/spirv-tools
-/data/data/com.termux/files/usr/include/spirv-tools/libspirv.h
-/data/data/com.termux/files/usr/include/spirv-tools/libspirv.hpp
-/data/data/com.termux/files/usr/include/spirv-tools/linker.hpp
-/data/data/com.termux/files/usr/include/spirv-tools/optimizer.hpp
 /data/data/com.termux/files/usr/lib
-/data/data/com.termux/files/usr/lib/cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools/SPIRV-ToolsConfig.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools/SPIRV-ToolsTarget-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-diff
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-diff/SPIRV-Tools-diffConfig.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-diff/SPIRV-Tools-diffTargets-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-diff/SPIRV-Tools-diffTargets.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-link
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-link/SPIRV-Tools-linkConfig.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-link/SPIRV-Tools-linkTargets-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-link/SPIRV-Tools-linkTargets.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-lint
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-lint/SPIRV-Tools-lintConfig.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-lint/SPIRV-Tools-lintTargets-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-lint/SPIRV-Tools-lintTargets.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-opt
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optConfig.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optTargets-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optTargets.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-reduce
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-reduce/SPIRV-Tools-reduceConfig.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-reduce/SPIRV-Tools-reduceTarget-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/SPIRV-Tools-reduce/SPIRV-Tools-reduceTarget.cmake
-/data/data/com.termux/files/usr/lib/cmake/glslang
-/data/data/com.termux/files/usr/lib/cmake/glslang/glslang-config-version.cmake
-/data/data/com.termux/files/usr/lib/cmake/glslang/glslang-config.cmake
-/data/data/com.termux/files/usr/lib/cmake/glslang/glslang-targets-release.cmake
-/data/data/com.termux/files/usr/lib/cmake/glslang/glslang-targets.cmake
-/data/data/com.termux/files/usr/lib/libGenericCodeGen.a
-/data/data/com.termux/files/usr/lib/libMachineIndependent.a
-/data/data/com.termux/files/usr/lib/libOSDependent.a
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools-diff.a
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools-link.a
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools-lint.a
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools-opt.a
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools-reduce.a
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools-shared.so
-/data/data/com.termux/files/usr/lib/libSPIRV-Tools.a
-/data/data/com.termux/files/usr/lib/libSPIRV.a
-/data/data/com.termux/files/usr/lib/libSPVRemapper.a
-/data/data/com.termux/files/usr/lib/libglslang-default-resource-limits.a
-/data/data/com.termux/files/usr/lib/libglslang.a
 /data/data/com.termux/files/usr/lib/libshaderc.a
 /data/data/com.termux/files/usr/lib/libshaderc_combined.a
 /data/data/com.termux/files/usr/lib/libshaderc_shared.so
 /data/data/com.termux/files/usr/lib/pkgconfig
-/data/data/com.termux/files/usr/lib/pkgconfig/SPIRV-Tools-shared.pc
-/data/data/com.termux/files/usr/lib/pkgconfig/SPIRV-Tools.pc
 /data/data/com.termux/files/usr/lib/pkgconfig/shaderc.pc
 /data/data/com.termux/files/usr/lib/pkgconfig/shaderc_combined.pc
 /data/data/com.termux/files/usr/lib/pkgconfig/shaderc_static.pc
```
2025-10-20 23:05:10 +00:00
..