Summary: | gui-wm/hyprland-0.41.2[-X] - [perl-5.40] [icu-75.1] [gcc-15] ../.../XWayland.hpp: error: HYPRATOM was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Julien Roy <julien> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bivsk, gibgibon, Gordi.Oleg, johnmh, jprentice, julien, parona, proxy-maint, sozuba |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/hyprwm/Hyprland/pull/7538 https://github.com/gentoo/gentoo/pull/39404 https://bugs.gentoo.org/show_bug.cgi?id=945974 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 945974 | ||
Bug Blocks: | |||
Attachments: |
emerge-info.txt
emerge-history.txt.xz environment etc.clang.tar.xz etc.portage.tar.xz gui-wm:hyprland-0.41.2:20240702-010707.log.xz qlist-info.txt.xz temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 896757 [details]
emerge-info.txt
Created attachment 896758 [details]
emerge-history.txt.xz
Created attachment 896759 [details]
environment
Created attachment 896760 [details]
etc.clang.tar.xz
Created attachment 896761 [details]
etc.portage.tar.xz
Created attachment 896762 [details]
gui-wm:hyprland-0.41.2:20240702-010707.log.xz
Created attachment 896763 [details]
qlist-info.txt.xz
Created attachment 896764 [details]
temp.tar.xz
https://github.com/hyprwm/Hyprland/commit/fa022901cf2c9acdae9e9a24a68b9148d44f8627 https://github.com/hyprwm/Hyprland/pull/6620#issuecomment-2183336876 Previously this was declared in the file now its supposed come from src/xwayland/XWM.hpp -> src/macros.hpp, which is guarded by NO_XWAYLAND leading to build failure when its built with -X. The fact that xwayland bits are compiled with -X is not unexpected behavior. https://github.com/hyprwm/Hyprland/issues/178#issuecomment-1152140205 This doesn't happen with gui-wm/hyprland-0.43.0 Is there any `0.42.0-r2` coming? 0.43 can't be compiled with gcc-13.3 for some reason. ``` * ERROR: gui-wm/hyprland-0.43.0::gentoo failed (setup phase): * GCC version is too old to compile Hyprland! ``` (In reply to Gordienko Oleg from comment #11) > Is there any `0.42.0-r2` coming? 0.43 can't be compiled with gcc-13.3 for > some reason. IIRC the maintainer is away on holiday. > ``` > * ERROR: gui-wm/hyprland-0.43.0::gentoo failed (setup phase): > * GCC version is too old to compile Hyprland! > ``` I don't think a new version is likely to fix that. hyprland AFAIK moved to even more experimental C++ requirements recently. (In reply to Gordio from comment #11) > Is there any `0.42.0-r2` coming? 0.43 can't be compiled with gcc-13.3 for > some reason. > ``` > * ERROR: gui-wm/hyprland-0.43.0::gentoo failed (setup phase): > * GCC version is too old to compile Hyprland! > ``` Hyprland uses new C++ features, it needs newish compilers. GCC 14 is stable so this shouldnt be an issue. Also please dont reuse bugs for unrelated issues. https://github.com/hyprwm/Hyprland/pull/7538/files Sam James, thank you. (In reply to Alfred Wingate from comment #13) > Hyprland uses new C++ features, it needs newish compilers. GCC 14 is stable > so this shouldnt be an issue. It's ~amd64 masked (same as hyprland 0.43) > Also please dont reuse bugs for unrelated issues. It's the same issue with missing `HYPRATOM` definition. I'm asking about -r2 coz latest working version for me is 0.41.1 that's already removed from portage. P.S. I will try, at least locally, to add patch by myself with this fix: https://github.com/hyprwm/Hyprland/pull/7538/files I don't know how to do PR, so if someone want to fix it locally: mkdir -p /usr/local/portage/gui-wm/hyprland/files cd /usr/local/portage/gui-wm/hyprland cp /var/db/repos/gentoo/gui-wm/hyprland/hyprland-0.42.0-r1.ebuild ./hyprland-0.42.0-r2.ebuild cat <<\EOF >> hyprland-0.42.0-r2.ebuild if [[ "${PV}" = 0.42.0 ]]; then PATCHES=( "${FILESDIR}"/${PN}-0.42.0-xwayland-missing-macros.patch ) fi EOF cat <<\EOF >> files/hyprland-0.42.0-xwayland-missing-macros.patch --- a/src/xwayland/XWayland.hpp +++ b/src/xwayland/XWayland.hpp @@ -3,6 +3,7 @@ #include <memory> #include "../helpers/signal/Signal.hpp" #include "../helpers/memory/Memory.hpp" +#include "../macros.hpp" #include "XSurface.hpp" EOF ebuild hyprland-0.42.0-r2.ebuild digest (In reply to Oleh Hordiienko from comment #15) Beauty. That sorted it for me as well! The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a9b33d693e839c6e568c67bf6279d611bc25175 commit 4a9b33d693e839c6e568c67bf6279d611bc25175 Author: Julien Roy <julien@jroy.ca> AuthorDate: 2024-11-21 20:29:28 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2024-11-21 23:17:12 +0000 gui-wm/hyprland: backport patch to build without X on gcc13 Bug: https://bugs.gentoo.org/935322 Closes: https://github.com/gentoo/gentoo/pull/39404 Signed-off-by: Julien Roy <julien@jroy.ca> Signed-off-by: Yixun Lan <dlan@gentoo.org> .../files/hyprland-0.42.0-no_xwayland.patch | 21 +++++ gui-wm/hyprland/hyprland-0.42.0-r2.ebuild | 104 +++++++++++++++++++++ 2 files changed, 125 insertions(+) I'd recommend filing a stablereq for that. |