Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923122 - gui-wm/gamescope-3.14.0: fails to compile with media-libs/glm-1.0.0
Summary: gui-wm/gamescope-3.14.0: fails to compile with media-libs/glm-1.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-28 14:51 UTC by Kris Scott
Modified: 2024-03-09 21:38 UTC (History)
1 user (show)

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


Attachments
emerge --info (info.log,17.09 KB, text/x-log)
2024-01-28 14:52 UTC, Kris Scott
Details
build log for gamescope-3.14.0 (build.log,61.86 KB, text/x-log)
2024-01-28 14:52 UTC, Kris Scott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Scott 2024-01-28 14:51:38 UTC
Building gamescope with glm-0.9.9.8-r1 works fine, however the following error comes up using 1.0.0:

FAILED: src/gamescope_color_tests.p/color_tests.cpp.o 
--cut--
   24 | #       error "GLM: GLM_GTX_dual_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."

Similar errors for other extensions also follow. I'm assuming either something chagned in glx-1.0 to make these experimental, or that gamescope uses these when glm-1.0 is detected, but does not set the proper flags.

Either way, the simplest solution is probably to make gamescope depend on >glm-1.0.0.0

Reproducible: Always

Steps to Reproduce:
1. have glm-1.0.0 installed.
2. attempt to emerge gamescope

Actual Results:  
build fails

Expected Results:  
build completes
Comment 1 Kris Scott 2024-01-28 14:52:02 UTC
Created attachment 883437 [details]
emerge --info
Comment 2 Kris Scott 2024-01-28 14:52:25 UTC
Created attachment 883438 [details]
build log for gamescope-3.14.0
Comment 3 Larry the Git Cow gentoo-dev 2024-01-30 23:26:30 UTC
The bug has been closed via the following commit(s):

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

commit 62572ab390fe1f5f0adb10e47831ef24b903c510
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2024-01-30 23:26:08 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2024-01-30 23:26:08 +0000

    gui-wm/gamescope: Pin back media-libs/glm dependency to <1.0.0
    
    Closes: https://bugs.gentoo.org/923122
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 gui-wm/gamescope/gamescope-3.14.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Andreas Sturmlechner gentoo-dev 2024-03-09 20:33:03 UTC
We should consider keeping such bugs open when, instead of a fix, rather a workaround in the form of an upper version limit is being introduced.

Sounds like this error even comes with a suggested fix?
> "... Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."

Is this being tracked upstream somewhere?
Comment 5 Larry the Git Cow gentoo-dev 2024-03-09 21:38:27 UTC
The bug has been closed via the following commit(s):

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

commit 61c2598d73a50dfa599882db7d5135117fad7cc4
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2024-03-09 21:37:58 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2024-03-09 21:37:58 +0000

    gui-wm/gamescope: Loosen media-libs/glm requirement
    
    gamescope defines GLM_ENABLE_EXPERIMENTAL now.
    
    Closes: https://bugs.gentoo.org/923122
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 gui-wm/gamescope/gamescope-3.14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)