Mesa dependency in gtk3
Clemens Lang
cal at macports.org
Fri Oct 18 18:37:50 UTC 2024
Hi Vincent,
On Fri, Oct 18, 2024 at 09:34:42AM +0200, Vincent Habchi wrote:
> There is a mesa dependency in gtk3 +quartz -x11 that defeats the
> purpose of the variants. Somehow it is said in the Portfile that
> getting rid of that dependency causes a configure error.
I don't think it defeats the purpose of the variants, since the mesa
dependency is build-time only. Only gtk3 +x11 needs mesa at runtime.
> I've just installed libepoxy +quartz -x11. Gtk3 then configures and
> compiles slickly without that mesa dependency, so I’m not sure it
> needs be kept, really.
This seems to only work on your system, or at least not in general. For
example, on my system libepoxy is installed with +quartz -x11, but still
has
Requires.private: gl
in its pkg-config file:
$ port -q installed libepoxy
libepoxy @1.5.10_1+quartz (active)
$ grep gl /opt/local/lib/pkgconfig/epoxy.pc
epoxy_has_glx=0
epoxy_has_egl=0
epoxy_has_wgl=0
Requires.private: gl
With that line and mesa uninstalled, pkg-config fails:
$ pkg-config --cflags epoxy
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'epoxy', not found
This causes the gtk3 configure step to fail for me.
If you can change libepoxy such that it no longer contains the
'Requires.private: gl' line, you can remove the dependency in gtk3.
Until then, removing it will re-introduce [1], which was also reported
as [2] and is also happening on my system. See also the commit message
[3], where I explained this.
[1]: https://trac.macports.org/ticket/70184
[2]: https://lists.macports.org/pipermail/macports-users/2024-August/052836.html
[3]: https://github.com/macports/macports-ports/commit/ef0d17dd086334a9496ce2da67c728067cc50a48
--
Clemens
More information about the macports-dev
mailing list