Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869245 - dev-util/glslang-1.3.224: installs architecture-dependent files to /usr/share
Summary: dev-util/glslang-1.3.224: installs architecture-dependent files to /usr/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nick Sarnie
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-09 02:33 UTC by Andrew Church
Modified: 2022-09-11 15:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2022-09-09 02:33:27 UTC
dev-util/glslang-1.3.224 installs architecture-dependent CMake control files to /usr/share/glslang, resulting in library architecture mismatches on multilib systems.  For example, on multilib x86-64, /usr/share/glslang/glslang-targets-gentoo.cmake contains only 32-bit library paths, causing builds of 64-bit packages using glslang to fail due to trying to link the 32-bit library.

Building glslang with only a single arch works around the problem.  I haven't used CMake enough to know what a proper multilib solution would look like.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 02:36:20 UTC
Huh, I thought we'd fixed this a while ago.
Comment 2 Nick Sarnie gentoo-dev 2022-09-09 02:46:07 UTC
Great, it looks like both ABIs install /usr/share/glslang/glslang-targets-gentoo.cmake with paths for that ABI but both ABIs use the same file so it overwrites and we end up with lib64.

Always love to see it.
Comment 3 Larry the Git Cow gentoo-dev 2022-09-11 15:50:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=964f41e75f853df5227797adc927139bc7f466e3

commit 964f41e75f853df5227797adc927139bc7f466e3
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2022-09-11 15:48:25 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2022-09-11 15:49:42 +0000

    dev-util/glslang: Fix cmake file install dir
    
    Closes: https://bugs.gentoo.org/869245
    
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 ...lslang-1.3.224-Fix-cmake-file-install-dir.patch | 258 +++++++++++++++++++++
 dev-util/glslang/glslang-1.3.224-r1.ebuild         |  30 +++
 2 files changed, 288 insertions(+)