dev-util/glslang-7.12.3353_pre20191027-r1 installs /usr/lib/cmake with ABI-specific content (e.g. "lib64" paths). Correct directory for these files is /usr/$(get_libdir)/cmake (e.g. /usr/lib64/cmake). (dev-util/glslang-7.11.3114_pre20190415-r1 does not install any cmake files.) $ qlist dev-util/glslang | sort | grep cmake /usr/lib/cmake/HLSLTargets-gentoo.cmake /usr/lib/cmake/HLSLTargets.cmake /usr/lib/cmake/OGLCompilerTargets-gentoo.cmake /usr/lib/cmake/OGLCompilerTargets.cmake /usr/lib/cmake/OSDependentTargets-gentoo.cmake /usr/lib/cmake/OSDependentTargets.cmake /usr/lib/cmake/SPIRVTargets-gentoo.cmake /usr/lib/cmake/SPIRVTargets.cmake /usr/lib/cmake/SPVRemapperTargets-gentoo.cmake /usr/lib/cmake/SPVRemapperTargets.cmake /usr/lib/cmake/glslang-default-resource-limitsTargets-gentoo.cmake /usr/lib/cmake/glslang-default-resource-limitsTargets.cmake /usr/lib/cmake/glslangTargets-gentoo.cmake /usr/lib/cmake/glslangTargets.cmake /usr/lib/cmake/glslangValidatorTargets-gentoo.cmake /usr/lib/cmake/glslangValidatorTargets.cmake /usr/lib/cmake/spirv-remapTargets-gentoo.cmake /usr/lib/cmake/spirv-remapTargets.cmake $ grep lib64 $(qlist dev-util/glslang | sort | grep cmake) /usr/lib/cmake/HLSLTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libHLSL.so" /usr/lib/cmake/HLSLTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_HLSL "${_IMPORT_PREFIX}/lib64/libHLSL.so" ) /usr/lib/cmake/OGLCompilerTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libOGLCompiler.a" /usr/lib/cmake/OGLCompilerTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_OGLCompiler "${_IMPORT_PREFIX}/lib64/libOGLCompiler.a" ) /usr/lib/cmake/OSDependentTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libOSDependent.a" /usr/lib/cmake/OSDependentTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_OSDependent "${_IMPORT_PREFIX}/lib64/libOSDependent.a" ) /usr/lib/cmake/SPIRVTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libSPIRV.so" /usr/lib/cmake/SPIRVTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_SPIRV "${_IMPORT_PREFIX}/lib64/libSPIRV.so" ) /usr/lib/cmake/SPVRemapperTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libSPVRemapper.so" /usr/lib/cmake/SPVRemapperTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_SPVRemapper "${_IMPORT_PREFIX}/lib64/libSPVRemapper.so" ) /usr/lib/cmake/glslang-default-resource-limitsTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libglslang-default-resource-limits.so" /usr/lib/cmake/glslang-default-resource-limitsTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_glslang-default-resource-limits "${_IMPORT_PREFIX}/lib64/libglslang-default-resource-limits.so" ) /usr/lib/cmake/glslangTargets-gentoo.cmake: IMPORTED_LOCATION_GENTOO "${_IMPORT_PREFIX}/lib64/libglslang.so" /usr/lib/cmake/glslangTargets-gentoo.cmake:list(APPEND _IMPORT_CHECK_FILES_FOR_glslang "${_IMPORT_PREFIX}/lib64/libglslang.so" )
https://github.com/KhronosGroup/glslang/issues/1965
I'll wait to see if upstream has a quick response, and if not, apply your patch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f125854feafee201a007bd5e6812e89f704389 commit 80f125854feafee201a007bd5e6812e89f704389 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2019-11-22 23:24:21 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2019-11-22 23:24:21 +0000 dev-util/glslang: Respect CMAKE_INSTALL_LIBDIR Backported from: bd69a4fb1206c3441ed56a9a058adfb6e46d55a6 Fixes: https://bugs.gentoo.org/699416 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> ...E_INSTALL_LIBDIR-in-installed-CMake-files.patch | 105 +++++++++++++++++++++ .../glslang-7.12.3353_pre20191027-r2.ebuild | 30 ++++++ 2 files changed, 135 insertions(+)