#1057479 libglew2.2: please enable EGL support

Package:
libglew2.2
Source:
libglew2.2
Description:
OpenGL Extension Wrangler - runtime environment
Submitter:
Sebastian Reichel
Date:
2026-04-16 11:57:03 UTC
Severity:
normal
#1057479#5
Date:
2023-12-04 16:00:57 UTC
From:
To:
Dear Maintainer,

Without EGL, KiCAD experience on Wayland can be quite bad even when
using XWayland. At least on AMD GPU based systems, there are ~10 second
lags when switching between PCB and Schematics windows on two different
Wayland workspaces.

I've seen commit 5a3af461df6fc6e4be868399277ea4134e703773 ("Revert
"d/rules: Turn option KICAD_USE_EGL on" ), but I think it would be
better to enable EGL support in libglew, libwxwidgets and KiCAD
instead of disabling it everywhere.

At the moment GLX is used on XWayland and that is missing some
workarounds for SwapBuffers(). For EGL wxwidgets already has the
necessary code to disable vsync. See also upstream bugs:

https://gitlab.freedesktop.org/mesa/mesa/-/issues/10235
https://github.com/wxWidgets/wxWidgets/issues/23512

I asked for the workaround to also be implemented for the GLX API,
but I believe it's a good idea to enable EGL in Debian even if that
happens.

P.S.: If anyone runs into the lag issue and finds this bug: You can
run KiCAD like this as a workaround: `vblank_mode=0 /usr/bin/kicad`.

Thanks,

#1057479#24
Date:
2026-02-04 17:18:25 UTC
From:
To:
Hi,

I wanted to ask if there are any blockers regarding this. Using KiCad
under sway defaults to xwayland now and this results in a quite blurry
interface which is not nice.

best,

werdahias

#1057479#29
Date:
2026-02-05 14:25:50 UTC
From:
To:
I'm currently packaging glew 2.3.1.
It should be EGL by default.

regards
Alastair

#1057479#34
Date:
2026-02-05 17:21:55 UTC
From:
To:
Thanks!

best,

werdahias

#1057479#39
Date:
2026-04-09 14:43:49 UTC
From:
To:
Unfortunately, building glew with EGL makes openscad no longer able to
compile.

I filed a separate issue for the openscad build failure, #1133065, in case
we can (hopefully) find a way to resolve both issues.

 - Kristian.

#1057479#46
Date:
2026-04-12 14:14:44 UTC
From:
To:

Ok, so I've uploaded a 2.3.1-6 release of glew, which now ships an X11
build of libGLEW as libGLEW-X11.a

I have done a test build of openscad with this; the build works with the
following patch:
--- a/features/glew.prf +++ b/features/glew.prf @@ -7,7 +7,7 @@    QMAKE_LIBDIR += $$GLEW_DIR/lib64  }
#1057479#51
Date:
2026-04-12 15:18:13 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
glew, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1057479@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated glew package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 12 Apr 2026 14:15:59 +0100
Source: glew
Architecture: source
Version: 2.3.1-6
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 1057479 1132634 1132862 1133065
Changes:
 glew (2.3.1-6) unstable; urgency=medium
 .
   [ Dimitry Ishenko ]
   * revert "Add libsm-dev, libegl-dev" to depends for libglew-dev.
   * Build GLEW_X11=Off to minimize deps for wayland. Closes: #1132634
 .
   [ Alastair McKinstry ]
   * Install libGLEW.a in -dev pkg. Closes: #1057479
   * Supply libGLEW-X11.a with GLEW_X11=On GLEW_EGL=Off. Closes: #1133065
   * Fix pkgconfig files. Closes: #1132862
Checksums-Sha1:
 41d7c08078e369ae6161fe9e16453951891126a8 2247 glew_2.3.1-6.dsc
 498b469fdbf75d19cb70e19bb24f3e34799cd3e9 33820 glew_2.3.1-6.debian.tar.xz
Checksums-Sha256:
 d30f863003938ff3b268fe6d7396bea9a8357dff2bef17c54e3d7cce85f53df0 2247 glew_2.3.1-6.dsc
 38a554e68c59cb5b266297b3f8197e7a87e22d40d69711170e53af1801e3ef9e 33820 glew_2.3.1-6.debian.tar.xz
Files:
 b1ba3dc162f24360ed2d5255d0d643b5 2247 libs optional glew_2.3.1-6.dsc
 369972bf7d4a8710bbfbcaf93d2ce3fa 33820 libs optional glew_2.3.1-6.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmnbpc0ACgkQy+a7Tl2a
06XvYxAAoI4H3JAV3Ge2i3YF4yO4ZTN+o/xXdcxbeKf1Vw5ncjXDbUZBySVtgNJ+
qfiL/kqvh18HbDye9MUg/FJac5qAHYiHIqKYl06h1f13VEwEMGdQFPX7FwzYpaKU
3T9OrH+qIj7c+R0effFf3I32quVG4zarl6A7FfCcVfOmc7HpOacgJG9SMUDu4epk
TE+1gwtIXeVVMxaVYwAlw5YbIWPXXvf92p9SEyz/8g7QsqpkouPDPijlLhuxn/qm
15EEOqjFZOa0QP3Blpt/XghbDEhTaMwhrlzUVpL4hcM/QOL8me/Ec9EM7HGX4hv+
cN7ltD+ri7bBvkE4wfoNpjyyMSmFG7Es5n5NCIkhP0a8grhGD/G9WwmlviqBFtQm
+8PBDoc8GkidTJPlyu6UY0MqRX+0aHTRjncu/8ijozSvmukDodW9ErtswnORFEY3
B7kVtLJ/m1h1rVdx2gFLS/wZxfohWQiAMA1Z3nSuI35pPpWs2HDybXOchUc/Cn1F
qs6pFZv1wd7Oru54/C2WkhlNvlnZqBb7w5F9j37dGMpk1QqFtzJ7jYhK9CW8Pzn4
suvxFaPSUCoVrX6p2dHbozLmoXab//Jnr4cKR3Siq7CpST0FbjJaCYUxHfVFkcvU
O48cntLj8nZRBotR1xcI636CeUtMPQMheb63jvLrm/V8q+CxlDs=
=Ta91
-----END PGP SIGNATURE-----

#1057479#56
Date:
2026-04-16 11:55:29 UTC
From:
To:
Alastair McKinstry <alastair.mckinstry@mckinstry.ie> writes:

Thanks. I have uploaded openscad_2021.01-12 that links with libGLEW-X11 and
this should make openscad build with newest libGLEW again (once the riscv64
builder gets to it).

I've also discussed briefly with openscad upstream, who agreed with the fix
and informed me that the next release of openscad will no longer need this
work-around.

 - Kristian.