Ever since src:glew switched to the CMake build system (in 0cba00b9), it's been causing FTBFS for multiple packages that depend on it. Here are some examples: mygui: tulip: avogadrolibs: slop: The upstream explicitly states in their README: The crux of the problem is that when built with CMake, GLEW installs CMake targets with hard-coded libraries in them: dimitry@ki6OY5lO2Z:~$ grep set_target_properties -A3 /usr/lib/x86_64-linux-gnu/cmake/glew/glew-targets.cmake set_target_properties(GLEW::glew PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "/usr/include/x86_64-linux-gnu" INTERFACE_LINK_LIBRARIES "/usr/lib/x86_64-linux-gnu/libOpenGL.so;/usr/lib/x86_64-linux-gnu/libGLX.so;/usr/lib/x86_64-linux-gnu/libSM.so;/usr/lib/x86_64-linux-gnu/libICE.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so" ) Prior to this change, packages using GLEW relied on the CMake-provided FindGLEW.cmake module. GLEW itself does not seem to be using any of libSM, libICE, libX11 or libXext: dimitry@ki6OY5lO2Z:~$ objdump -p /usr/lib/x86_64-linux-gnu/libGLEW.so | grep NEEDED NEEDED libGLX.so.0 NEEDED libc.so.6 But, they are somehow pulled into their CMake targets, which looks like a bug that they won't be eager to fix (based on the above). Please either switch back to the Make-based system, or at the very minimum do not install upstream's broken CMake targets. Thank you, Dimitry
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 1136422@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: Wed, 13 May 2026 20:17:52 +0100 Source: glew Architecture: source Version: 2.3.1+dfsg2-3 Distribution: unstable Urgency: medium Maintainer: Alastair McKinstry <mckinstry@debian.org> Changed-By: Alastair McKinstry <mckinstry@debian.org> Closes: 1136422 Changes: glew (2.3.1+dfsg2-3) unstable; urgency=medium . * Dont ship broken cmake files. Closes: #1136422 Checksums-Sha1: 6da99adf733a68b9475760061fdfa8610fa378fc 2480 glew_2.3.1+dfsg2-3.dsc eea20ccffda50d01f91f6e3eaa6cf3eb8bcd1392 35192 glew_2.3.1+dfsg2-3.debian.tar.xz Checksums-Sha256: 2cbbd0f10d6316f3c618f2a3912b2303e295362efac4470388debf457cb92894 2480 glew_2.3.1+dfsg2-3.dsc d817e791a03e84b33e9eeee0777117cf82bef19c9135964a486cbc19a84a65e8 35192 glew_2.3.1+dfsg2-3.debian.tar.xz Files: 374f6e3a4f3ea84771281ccb3ea6cd86 2480 libs optional glew_2.3.1+dfsg2-3.dsc 2fb74f338a35d038198b25e88475351a 35192 libs optional glew_2.3.1+dfsg2-3.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmoE0CQACgkQy+a7Tl2a 06XKvA//SVMYHQSPIjzIFyvc6yfbqpLMaDeaFibnktLFele4vItNByYIQHW8r+Tu RuRzh80wloIKEFbitlXRZ/ErRJ60avZVdLX1I4GsbBpVxkxPDfyEtyNzf/tAj1MO eLR5FeOo2ZqxqsuFWG+v7iWXNO5JxnhEb7QSsQDt9V/4BD5bEIr/p5j5YA8xawRW 1hXNeu0E4mpbn5bz8rPBVu0+0pzzYsjONgY+iThOMpCRMh6oEWxBGJ+e7+c9Hkkh 4BE95iIosZcJ4GuP7Y75gs0Eu+Ot9rlzVUqh5aQJw65JNtdtbXGmldM34jHsc0Jx HgOt0bxlKjgL45pbpj4QJvHwnyM20UkaXzukWnsD7krvIvS2eHO69oFEmMO8cOFs pkcgmKwUqcIS9YKEl6e6ht4UMV7KrcjZCp5mU253p4tOQN/r+HpEHYupv/GP/R4S gQKba78kjaP9qlLybKELBEHroVaxX2xAlqg5gBZToaa+TuqotwTvc4Zsa2bXRe7y X3K8BTafqATdft4aagNls+OuxH4oADjQGYhruWTCzq7+SeevJnkDBOwCMfbaY7SQ BjE8MG0MiKhaHQLDOjIWhKGQuXJlZCbuGja6dMzhVjVCLj/iFCNUFD8bL6ndIfmm PHT0Wv+n3BcR8QlKxGFtcEEJjcJ10/a27BIq6Bx9ZjQgcKSyFrk= =JKHv -----END PGP SIGNATURE-----
I would like to keep this open, until this is properly fixed. Alastair, please push your changes to https://salsa.debian.org/debian/glew so that I can submit new MR. Or, would you rather me submit the patches here? I've sent to patches to the upstream to (a) fix the CMake targets issue, and (b) help remove some of the hacks you've done in d/rules. I can submit new MR to salsa. Dimitry
Attached are the patches that fix the CMake build system and also clean up Debian packaging files. Patches #1 and #2 have been submitted upstream: https://github.com/nigels-com/glew/pull/477 https://github.com/nigels-com/glew/pull/478 They mainly deal with fixing their build system that's been causing build failures in Debian. Patch #3 removes quite a bit of hackery from d/rules and some old cruft left over from the old Make build system. The only hackery left is to rename EGL-based GLEW version into EGLEW and make it co-installable with the GLX-based GLEW. Patch #4 makes libeglew-dev usable as a standalone package. I can submit these as an MR to https://salsa.debian.org/debian/glew once it's updated with Alastrair's latest changes. Regards, Dimitry
I've pushed my patches. Thanks for your work on this. Alastair
Alastair, I've submitted MR #4 in salsa: https://salsa.debian.org/debian/glew/-/merge_requests/4 Added one more patch to move README.md into libglew-common-dev. Thank you, Dimitry
I've merged these and pushed the changes to unstable, thanks. Note that creating libglew-common-dev will mean a delay in the NEW queue, but it should only be a few hours/day or so. Thanks Alastair
Thanks, Alastair. FYI, patches #1 and #2 have both been accepted upstream. I haven't seen the new version yet, but I think we can close this bug now. Dimo
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 1136422@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: Sat, 16 May 2026 06:30:17 +0100
Source: glew
Architecture: source
Version: 2.3.1+dfsg2-5
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 1136422 1136741
Changes:
glew (2.3.1+dfsg2-5) unstable; urgency=medium
.
[ Dmitri Ishenko ]
* d/control: add Replaces/Breaks for upgrade path
Closes: #1136422, #1136741
Checksums-Sha1:
a9d3931884e5c13e2f1c5d7720f4c6bca0903824 2559 glew_2.3.1+dfsg2-5.dsc
d69f8986822ad388bf13792cb3f95c085fe7871c 36544 glew_2.3.1+dfsg2-5.debian.tar.xz
Checksums-Sha256:
aac729c57400a3b0ceb0e72b7de789dfebca4a3b43c5ff0d322e13ca914a2880 2559 glew_2.3.1+dfsg2-5.dsc
a22f98c7e231304b6f803274f0b57132c2c5cf3428aed8ff31834813fd6a0e86 36544 glew_2.3.1+dfsg2-5.debian.tar.xz
Files:
3ce29a2713e795c37e34f2d61bcb1c6c 2559 libs optional glew_2.3.1+dfsg2-5.dsc
f38d7662951634a173d1552c8b307414 36544 libs optional glew_2.3.1+dfsg2-5.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmoIA9cACgkQy+a7Tl2a
06WEpw/9HnfuY9LGOPiTDMuQ9O4fvLlka6xZRWeLz4pexpFIR0FJ/jaXFIQ3zUfC
loajsIWyVnBQwfTijWNehKVdVLXBapUaGlDsfMTD9NrEevMsjhXBJwDv2wpsowM7
WdsC2EHlsljh8+cKDsVNzeBBUacrjtg2jThzHa7xcOgKrw7yHlK0QqxKpGPwnfRP
GYbVoLg11LXjQjAeW49/ZQLr7KopflwU55SA7bNHmcZB3P4aExTnQasP2CJiDKol
AerTZFnCSdXfft9gW7clRv2DPy3bkJEKYKAYFeQ0Wg5hbGb6TrJ/Dq7sha84poJT
eTaIrQsO4Upcl/VlDUzGd6nWN/jA1yoE1jvqeoeGK4yuIqA2wthHuhJvR4SYh7R0
+647LEwEHxIExNtLkwi+D+YHGPdHNzBuXfw4l0fholP7RGjNH0ZYFIMD9OmpSP86
HzY2NBN4ixU6eU6faVZE4JIKa4QdW3Cq5pLzpal2ZtfS0i05OL9QiamciMux20K7
jsVtuF0+T8RN9Ez7KpTudXrWpIYUcA85TV0kI8IIxmuBrYgGo4W2f8/9GRA+EwrO
N2vedOGsJZE+yHO7uK8kxuY+vdtOt8DSXyqFTs6n0NCpvKmMA42eNPYJFaRf/SZD
SlCKlPSf/NRDaOsGHpGWqmjXS5jk/i+E+RnQbD//9cHUVfg0Kfs=
=a+RC
-----END PGP SIGNATURE-----