A simple request (MkHexGrid) turned into ...

Mojca Miklavec mojca at macports.org
Sat May 14 20:21:14 UTC 2022


On Sat, 14 May 2022 at 19:55, Michael wrote:
> On 2022-05-14, at 9:27 AM, Mojca Miklavec wrote:
> > On Sat, 14 May 2022 at 16:20, Michael wrote:
> >>
> >> So I thought I'd install a simple little hex map generator. Mkhexgrid.
> >>
> >> Hasn't been updated in years, should be simple, right?
> > ...
> > You can check why you are getting weird dependency by running the
> > following command:
> >    port rdeps mkhexgrid
>
> Hmm. Just some highlights. It took a compiler??

In such cases it's crucial to also provide information about the macOS
version that you are using.

Your list is suggesting that the compiler installation was required by
the port dav1d which uses meson for building.

See:
    https://github.com/macports/macports-ports/blob/master/multimedia/dav1d/Portfile#L47-L50
suggesting that this looks like a workaround for a bug in the meson
build system that has been ignored for more than a year:
    https://github.com/mesonbuild/meson/issues/8307
and it looks as if this was only relevant for macOS <= 10.9.

If you install the port from the binary archive, you shouldn't be
getting the compiler though. The command "port rdeps" lists all
dependencies, including build dependencies.

Other than fixing the bug upstream in the meson build system, I don't
have any better idea about what could be done about this (unless it
has already been fixed in the meantime and nobody noticed it).

> Cairo was another port installed, and not on that list. (Checked -- it's +quartz -X11)

If you want to know which port requires x11, you can run "port depend
<name>", like this, but using the relevant name:

% port depend xz
libarchive depends on xz
libxml2 depends on xz
python310 depends on xz
tiff depends on xz
zstd depends on xz

Mojca


More information about the macports-users mailing list