Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892860 - x11-apps/mesa-progs-9999[gles2] - es2gears.c: undefined reference to `mat4_rotate' (2023/02/01)
Summary: x11-apps/mesa-progs-9999[gles2] - es2gears.c: undefined reference to `mat4_ro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-01 21:07 UTC by Bigos
Modified: 2023-02-05 14:51 UTC (History)
1 user (show)

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 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.