mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: cogl: Fix build with Mesa 20.
* gnu/packages/gnome.scm (cogl)[arguments]: Add phase to adjust header includes.
This commit is contained in:
parent
aa13c5657d
commit
0c8a51c7d2
1 changed files with 11 additions and 0 deletions
|
@ -4486,6 +4486,17 @@ (define-public cogl
|
|||
"/lib/libGL.so"))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-build-with-mesa-20
|
||||
(lambda _
|
||||
;; Work around a problem with Mesa 20 where some macros used by
|
||||
;; Cogl went missing from eglext.h. This can likely be removed
|
||||
;; for newer versions of Cogl or Mesa.
|
||||
;; https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/19
|
||||
(substitute* '("configure"
|
||||
"cogl/winsys/cogl-winsys-egl-kms.c")
|
||||
(("#include <EGL/eglext.h>" all)
|
||||
(string-append all "\n#include <EGL/eglmesaext.h>\n")))
|
||||
#t))
|
||||
(add-before 'check 'start-xorg-server
|
||||
(lambda* (#:key tests? inputs #:allow-other-keys)
|
||||
(if tests?
|
||||
|
|
Loading…
Reference in a new issue