mesa-demos: disable wayland in order to satisfy wrap-mode nodownload #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As reported by ppetrov^, if wayland is detected during setup, meson tries to download the libdecor subproject. But with "--wrap-mode nodownload", this operation fails.
According to the ChangeLog https://lists.freedesktop.org/archives/mesa-announce/2023-March/000711.html , the subproject wrapper was added in the 9.0.0 release because they decided to "use libdecor for top-level decoration" (Hoe Hao Cheng). If it's desired that our port of mesa-demos continues supporting wayland, there are three workarounds that come to mind:
add a test for libdecor.so immediately after 'prt-get isinst wayland', and exit early with an informative error message if not found.
add a README in the port directory telling the user to install libdecor if they have wayland.
add a libdecor tarball in the source array, but only build it if wayland is found.
Option 3 requires the least amount of intervention by the user, but it violates the guideline against bundling distinct software packages within a single port, and it wastes bandwidth for users who don't have wayland. Option 1 will have the most unfamiliar behaviour, but anyone who's tried to build contrib/libreoffice without harfbuzz linked against icu (or xmlsec linked against nss) will recognize the message.
If it's not deemed essential for our mesa-demos port to continue supporting wayland, there's the simple solution recommended in the title: just pass '-D wayland=disabled' to meson setup.
Feel free to tell me if
77532889
fixes the problem