Package: libglew-dev
Version: 2.3.1-5
Followup-For: Bug #1132634
Control: tags -1 patch

Dear Maintainer,

I've laid out the problem with this package above, but in a nutshell
when switching from the Make-based build system to the CMake-based one,
you've picked up extra dependencies on X11 libraries, since the new
build system defaults to GLEW_X11=ON.

This resulted in errors such as:

make[3]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libSM.so'

which prompted this bug report.

Since then, you've added a dependency on libsm-dev as a reaction to the
symptom. However, this is not the correct solution as it:

(a) Pulls in several X11 libraries, which Wayland people don't care
about; and

(b) Makes libglew-dev pull in even more dependencies and now results in
this error for me:

make[3]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libXext.so'

The correct solution is not to pull in more dependencies, but to restore
the behavior which existed prior to the switch to CMake. This is
accomplished by simply turning off the GLEW_X11 option and making
libglew Display Server agnostic again.

I am attached the patches, which accomplish that. Please kindly apply
them at your soonest convenience.

Thank you.
Dimo


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.19.11+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages libglew-dev depends on:
ii  libegl-dev                     1.7.0-3
ii  libegl1-mesa-dev               26.0.4-1
ii  libglew2.3                     2.3.1-5
ii  libglu1-mesa-dev [libglu-dev]  9.0.2-1.1+b4
ii  libsm-dev                      2:1.2.6-1+b1

libglew-dev recommends no packages.

libglew-dev suggests no packages.

-- no debconf information

Attachment: 0001-Partially-revert-Add-libsm-dev-libegl-dev-to-depends.patch
Description: application/mbox

Attachment: 0002-d-rules-build-EGL-backend-only.patch
Description: application/mbox

Attachment: 0003-Update-changelog-for-2.3.1-5.1-release.patch
Description: application/mbox

Reply via email to