Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 892860

Summary: x11-apps/mesa-progs-9999[gles2] - es2gears.c: undefined reference to `mat4_rotate' (2023/02/01)
Product: Gentoo Linux Reporter: Bigos <wielkiegie>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: orbea
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/29396
Whiteboard:
Package list:
Runtime testing required: ---

Description Bigos 2023-02-01 21:07:27 UTC
mesa-progs-9999 does not compile as of 2023/02/01. Last time I checked it did compile at 2023/01/26.

Recently, the 9999-Disable-things-we-don-t-want.patch patch was updated:

https://github.com/gentoo/gentoo/commit/8db7539aaf8fd57a238d15db9b7f92f7e2e47dc2

It seems the new version drops `matrix.c` file from the build sources. It looks like the removed util library is now needed after all?

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-apps/mesa-progs-9999
Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: es2gears.c:(.text+0x313): undefined reference to `mat4_rotate'
...

Expected Results:  
Successful compilation
Comment 1 Larry the Git Cow gentoo-dev 2023-02-02 17:11:05 UTC
The bug has been closed via the following commit(s):

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

commit 9ebcb19270a73ada62218837526a42e93cb0730f
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-02-02 16:54:54 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-02-02 17:10:59 +0000

    x11-apps/mesa-progs: Update live patch
    
    The build fails with USE=gles2 because libutil was disabled in the live
    patch, but upstream now changed es2gears_x11 to depend on it. To fix
    this most of libutil was enabled again excluding the parts that depend
    on glu which do not seem to be required.
    
    Closes: https://bugs.gentoo.org/892860
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/29396
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../files/9999-Disable-things-we-don-t-want.patch  | 50 +++++++++-------------
 1 file changed, 21 insertions(+), 29 deletions(-)
Comment 2 orbea 2023-02-02 17:14:24 UTC
Note that if all of libutil is enabled again es2gears_x11 will be skipped in teh build with zero indication of why. Turns out since the gentoo patch disables the glu dependency in the meson build which is required by parts of libutil which is in turn required by es2gears_x11 all of this will be silently disabled by meson...

However the parts of libutil which are required by es2gears_x11 do not require glu themselves.