Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677096 - media-libs/mesa-19.0.0_rc1 fails configure phase on stable gentoo
Summary: media-libs/mesa-19.0.0_rc1 fails configure phase on stable gentoo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-02 12:21 UTC by Michele Santullo
Modified: 2019-02-04 19:18 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 Michele Santullo 2019-02-02 12:21:11 UTC
I'm updating my system, I have mixed stable and unstable packages (mostly kernel and drivers). Emerge offered to update mesa:

[ebuild     U ~] media-libs/mesa-19.0.0_rc1::gentoo [18.3.2::gentoo] USE="classic dri3 egl gallium gbm llvm lm_sensors vulkan wayland -d3d9 -debug -gles1 -gles2 -opencl -osmesa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="radeonsi (-freedreno) -i915 -i965 (-imx) -intel -nouveau -r100 -r200 -r300 -r600 -radeon (-vc4) -virgl (-vivante) -vmware" 0 KiB

but it failed the configure phase first because libdrm_amdgpu was not at the right version then because llvm was not at the right version. This is trivial to fix by adding this to my package.accept_keywords:

=x11-libs/libdrm-2.4.97
=sys-devel/llvm-7.0.1

but I think emerge should know and automatically suggest to unmask them before the build even starts.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-02-02 13:25:24 UTC
(In reply to King_DuckZ from comment #0)
> I'm updating my system, I have mixed stable and unstable packages (mostly
> kernel and drivers).

We can't fix your local configuration issue globally.
Comment 2 Michele Santullo 2019-02-02 14:23:04 UTC
I think mesa 19 should have dependencies set to the correct versions, but then up to you I guess. I have a local workaround so I can happily move on with life.
Comment 3 mercuriete 2019-02-04 18:09:40 UTC
Hi
I am facing the same problem

Message: libdrm 2.4.97 needed because amdgpu has the highest requirement
Dependency libdrm_amdgpu found: NO found '2.4.96' but need: '>=2.4.97'
Cross dependency libdrm_amdgpu found: NO 

meson.build:1155:4: ERROR:  Invalid version of dependency, need 'libdrm_amdgpu' ['>=2.4.97'] found '2.4.96'.




ebuild should force a dependency with drm >= 2.4.96


$ equery depgraph mesa|grep drm
 [  1]  x11-libs/libdrm-2.4.96   
 [  1]  x11-libs/libdrm-2.4.96   
 [  1]  x11-libs/libdrm-2.4.96   
 [  1]  x11-libs/libdrm-2.4.96   
 [  1]  x11-libs/libdrm-2.4.96
Comment 4 mercuriete 2019-02-04 18:12:55 UTC
(In reply to mercuriete from comment #3)
> Hi
> I am facing the same problem
> 
> Message: libdrm 2.4.97 needed because amdgpu has the highest requirement
> Dependency libdrm_amdgpu found: NO found '2.4.96' but need: '>=2.4.97'
> Cross dependency libdrm_amdgpu found: NO 
> 
> meson.build:1155:4: ERROR:  Invalid version of dependency, need
> 'libdrm_amdgpu' ['>=2.4.97'] found '2.4.96'.
> 
> 
> 
> 
> ebuild should force a dependency with drm >= 2.4.96
> 
> 
> $ equery depgraph mesa|grep drm
>  [  1]  x11-libs/libdrm-2.4.96   
>  [  1]  x11-libs/libdrm-2.4.96   
>  [  1]  x11-libs/libdrm-2.4.96   
>  [  1]  x11-libs/libdrm-2.4.96   
>  [  1]  x11-libs/libdrm-2.4.96

I meant to 2.4.97
Comment 5 Larry the Git Cow gentoo-dev 2019-02-04 19:18:44 UTC
The bug has been closed via the following commit(s):

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

commit 5256ebb8e047b1afbfb6e7e5646f6bd753d1ff1e
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-02-04 19:17:10 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-02-04 19:18:28 +0000

    media-libs/mesa: Drop support for llvm < 7
    
    radv and radeonsi require llvm-7 and are the main consumers. Allowing
    older versions would complicate the DEPEND for very little gain.
    
    Closes: https://bugs.gentoo.org/677096
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-19.0.0_rc1.ebuild | 4 ----
 media-libs/mesa/mesa-9999.ebuild       | 4 ----
 2 files changed, 8 deletions(-)

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

commit 5c3fb8bccd952d62125d9bc000386337cbd914a2
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-02-04 19:04:20 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-02-04 19:18:28 +0000

    media-libs/mesa: Require libdrm-2.4.97
    
    Closes: https://bugs.gentoo.org/677096
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-19.0.0_rc1.ebuild | 2 +-
 media-libs/mesa/mesa-9999.ebuild       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)