Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949118 - media-libs/mesa-24.3.3 not requiring runtime dep dev-util/spirv-tools-1.3.296.0 with --getbinpkg
Summary: media-libs/mesa-24.3.3 not requiring runtime dep dev-util/spirv-tools-1.3.296...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-31 15:05 UTC by pbuckston
Modified: 2025-02-03 17:13 UTC (History)
1 user (show)

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


Attachments
emerge --info (emergeinfo.txt,6.43 KB, text/plain)
2025-01-31 15:05 UTC, pbuckston
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pbuckston 2025-01-31 15:05:45 UTC
Created attachment 917990 [details]
emerge --info

Every time I merge packages I get a notification at the end regarding an existing preserved lib:
!!! existing preserved libs:
>>> package: dev-util/spirv-tools-1.3.296.0
 *  - /usr/lib64/libSPIRV-Tools.so
 *      used by /usr/lib64/libgallium-24.3.3.so (media-libs/mesa-24.3.3)
 *      used by /usr/lib64/libvulkan_intel.so (media-libs/mesa-24.3.3)
 *      used by /usr/lib64/libvulkan_intel_hasvk.so (media-libs/mesa-24.3.3)
 *      used by /usr/lib64/libvulkan_radeon.so (media-libs/mesa-24.3.3)

If I remove this preserved lib, my Plasma session no longer starts on boot until I reinstall dev-util/spirv-tools. emerge @preserved-rebuild does not actually rebuild packages using this library because I'm using EMERGE_DEFAULT_OPTS="--getbinpkg"

This suggests dev-util/spirv-tools might actually be a runtime dependency of media-libs/mesa and the ebuild for mesa needs to be adjusted so it's included when installing mesa as a binary.
Comment 1 Matt Turner gentoo-dev 2025-02-03 16:41:30 UTC
I fixed this in -9999 with

commit 14d44e457568ac1cfd46e324a9223202b1eba81f
Author: Matt Turner <mattst88@gentoo.org>
Date:   Mon Jan 13 14:18:07 2025 -0500

    media-libs/mesa: Make dependency on spirv-tools unconditional
    
    This dependency became automatic in upstream commit c60a421f0c2 ("vtn:
    Add a debug flag to dump SPIR-V assembly").
    
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

but didn't realize that the commit was also in 24.3.0.
Comment 2 Larry the Git Cow gentoo-dev 2025-02-03 17:13:02 UTC
The bug has been closed via the following commit(s):

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

commit bb817f378ce3ca84c2682570a1e821f1239f0f68
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2025-02-03 17:08:59 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2025-02-03 17:12:58 +0000

    media-libs/mesa: Backport fixes from -9999
    
    Closes: https://bugs.gentoo.org/948591
    Closes: https://bugs.gentoo.org/949118
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/{mesa-24.3.4.ebuild => mesa-24.3.4-r1.ebuild} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)