Page MenuHomeFreeBSD

Make libglvnd a LIB_DEPEND in various usages
ClosedPublic

Authored by kbowling on Aug 8 2021, 8:20 PM.
Tags
None
Referenced Files
F106197585: D31465.diff
Fri, Dec 27, 12:23 AM
F106180990: D31465.diff
Thu, Dec 26, 5:43 PM
Unknown Object (File)
Wed, Dec 25, 5:27 PM
Unknown Object (File)
Tue, Dec 24, 7:16 PM
Unknown Object (File)
Sat, Dec 14, 4:42 PM
Unknown Object (File)
Fri, Dec 13, 10:17 AM
Unknown Object (File)
Sun, Dec 8, 10:17 AM
Unknown Object (File)
Wed, Dec 4, 7:50 PM
Subscribers
None

Details

Summary

There are still reports of people with old systems running into issues on pkg upgrade. I think libglvnd must be a LIB_DEPEND in the main branch now to help with dependency solving.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kbowling created this revision.

I forgot to add USES+=gl, but even with that the LIB_DEPENDS wasn't working as expected. Convert to explicit LIB_DEPENDS.

Looks OK (except inline nits):

  • www/qt5-webengine and all of its dependencies still build fine
  • x11/alacritty + emulators/yuzu-qt5 still install/run fine
graphics/mesa-devel/Makefile
29

Sort by port origin instead of the library name for consistency with current style here and my other ports. I don't agree with everything portlint -C, portfmt or portclippy suggest.

graphics/mesa-libs/Makefile
9–10

Why += instead of =? .include appears at the end of this Makefile which itself isn't sourced/included unlike mesa-dri/Makefile.common.

graphics/s2tc/Makefile
13–14

Neither an OpenGL provider nor requires libOpenGL at runtime. Disabling dlopen via CONFIGURE_ARGS=--disable-runtime-linking exposes libtxc_dxtn.so in poudriere testport output but not libOpenGL, suggesting only headers are used. Try the following smoke test:

$ pkg install s2tc
$ pkg delete -f libglvnd
$ pkg info -l s2tc | sed -n '/bin/p; /lib\//p' | xargs strings | grep GL.\*so
$ fetch https://people.math.sc.edu/Burkardt/data/tga/earth.tga
$ s2tc_compress -i earth.tga -o earth.dds -t DXT5
$ file earth.dds
earth.dds: Microsoft DirectDraw Surface (DDS): 512 x 512, compressed using DXT5
This revision is now accepted and ready to land.Aug 11 2021, 12:30 AM
This revision now requires review to proceed.Aug 11 2021, 2:22 AM

On landing maybe bump PORTREVISION in the modified ports to make upgrades more predictable (e.g., for portmaster users) and discover fallout early (if any but unlikely).

This revision is now accepted and ready to land.Aug 11 2021, 2:28 PM