Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925912 - gui-wm/hyprland-0.36.0[legacy-renderer] - ../.../OpenGL.cpp: error: GL_CONTEXT_LOST was not declared in this scope
Summary: gui-wm/hyprland-0.36.0[legacy-renderer] - ../.../OpenGL.cpp: error: GL_CONTEX...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julien
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-03-01 12:30 UTC by Toralf Förster
Modified: 2024-03-03 00:55 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,24.45 KB, text/plain)
2024-03-01 12:30 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,84.34 KB, application/x-xz)
2024-03-01 12:30 UTC, Toralf Förster
Details
environment (environment,105.48 KB, text/plain)
2024-03-01 12:30 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,964 bytes, application/x-xz)
2024-03-01 12:30 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.89 KB, application/x-xz)
2024-03-01 12:30 UTC, Toralf Förster
Details
gui-wm:hyprland-0.36.0:20240301-050530.log.xz (gui-wm:hyprland-0.36.0:20240301-050530.log.xz,14.80 KB, application/x-xz)
2024-03-01 12:30 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,89.21 KB, application/x-xz)
2024-03-01 12:30 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,38.03 KB, application/x-xz)
2024-03-01 12:30 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-03-01 12:30:14 UTC
too long lines were shrinked:

[434/455] x86_64-pc-linux-gnu-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots/include -I../hyprland-source/subprojects/wlroots/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake
[435/455] x86_64-pc-linux-gnu-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots/include -I../hyprland-source/subprojects/wlroots/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake
[436/455] x86_64-pc-linux-gnu-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots/include -I../hyprland-source/subprojects/wlroots/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake
FAILED: src/Hyprland.p/render_OpenGL.cpp.o 
x86_64-pc-linux-gnu-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots/include -I../hyprland-source/subprojects/wlroots/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake_build -I.
../hyprland-source/src/render/OpenGL.cpp: In member function void CHyprOpenGLImpl::end():
../hyprland-source/src/render/OpenGL.cpp:356:16: error: GL_CONTEXT_LOST was not declared in this scope; did you mean EGL_CONTEXT_LOST?
  356 |     if (ERR == GL_CONTEXT_LOST) /* We don't have infra to recover from this */
      |                ^~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-20240223-164502

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.75.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.0 linux/amd64

  HEAD of ::gentoo
commit b0ce49fe7c6f022d8a9b5a7e25119aba13250e51
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Mar 1 04:04:11 2024 +0000

    2024-03-01 04:04:10 UTC

emerge -qpvO gui-wm/hyprland
[ebuild  N    ] gui-wm/hyprland-0.36.0  USE="X legacy-renderer systemd"
Comment 1 Toralf Förster gentoo-dev 2024-03-01 12:30:15 UTC
Created attachment 886426 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-03-01 12:30:17 UTC
Created attachment 886427 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-03-01 12:30:18 UTC
Created attachment 886428 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-03-01 12:30:19 UTC
Created attachment 886429 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-03-01 12:30:20 UTC
Created attachment 886430 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-03-01 12:30:21 UTC
Created attachment 886431 [details]
gui-wm:hyprland-0.36.0:20240301-050530.log.xz
Comment 7 Toralf Förster gentoo-dev 2024-03-01 12:30:22 UTC
Created attachment 886432 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-03-01 12:30:23 UTC
Created attachment 886433 [details]
temp.tar.xz
Comment 9 Alfred Wingate 2024-03-01 22:58:35 UTC
GL_CONTEXT_LOST is only defined for GLES3, legacy-renderer sets it to use GLES2.
Comment 10 Larry the Git Cow gentoo-dev 2024-03-03 00:55:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fef823107b59e072d6d6f03b8ff261bc7830aff

commit 1fef823107b59e072d6d6f03b8ff261bc7830aff
Author:     Julien Roy <julien@jroy.ca>
AuthorDate: 2024-03-02 20:16:10 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2024-03-03 00:54:46 +0000

    gui-wm/hyprland: Add patch to fix compilation using gui-wm/hyprland[legacy-renderer]
    
    Closes: https://bugs.gentoo.org/925912
    Closes: https://github.com/gentoo/gentoo/pull/35604
    Signed-off-by: Julien Roy <julien@jroy.ca>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 gui-wm/hyprland/files/legacy-renderer-fix.patch    | 33 ++++++++++++++++++++++
 ...-0.35.0-r1.ebuild => hyprland-0.35.0-r2.ebuild} |  4 +++
 ...and-0.36.0.ebuild => hyprland-0.36.0-r1.ebuild} |  4 +++
 3 files changed, 41 insertions(+)