[MacPorts] #71904: gdal @3.10.1: mention +kea variant creating a circular dependency in the variant description

MacPorts noreply at macports.org
Tue Jan 21 18:14:36 UTC 2025


#71904: gdal @3.10.1: mention +kea variant creating a circular dependency in the
variant description
--------------------------+--------------------
  Reporter:  cooljeanius  |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.10.5
Resolution:               |   Keywords:
      Port:  gdal         |
--------------------------+--------------------
Description changed by cooljeanius:

Old description:

> gdal's `+kea` variant description currently reads:
> {{{
> kea: Enable KEA support
> }}}
> However, one thing to note about this variant is that it creates a
> circular dependency, as kealib depends on gdal, yet the variant
> description says nothing about this. Compare this to dbus's `+tests`
> variant:
> {{{
> # XXX Building with tests enabled causes dbus to link with dbus-glib,
> # which it shouldn't do because that port depends on this one: see #30088
> variant test description {enable tests (Only Works if dbus is Already
> Installed)} {
>     ui_warn "This variant requires circular dependencies and only works
> if ${name} is already installed"
>
>     configure.args-replace  --disable-tests \
>                             --enable-tests
>     configure.args-append   --without-dbus-glib
>     depends_build-append    path:lib/pkgconfig/glib-2.0.pc:glib2
>     depends_build-append    port:python27 port:dbus-python27
> port:py27-gobject3 port:dbus-python
>     configure.python        ${prefix}/bin/python2.7
> }
> }}}
> It would be nice if gdal's `+kea` variant could be updated to provide a
> similar note about circular dependencies.

New description:

 gdal's `+kea` variant description currently reads:
 {{{
 kea: Enable KEA support
 }}}
 However, one thing to note about this variant is that it creates a
 circular dependency, as kealib depends on gdal, yet the variant
 description says nothing about this. Compare this to, for example, dbus's
 `+tests` variant, which also involves a circular dependency:
 {{{
 # XXX Building with tests enabled causes dbus to link with dbus-glib,
 # which it shouldn't do because that port depends on this one: see #30088
 variant test description {enable tests (Only Works if dbus is Already
 Installed)} {
     ui_warn "This variant requires circular dependencies and only works if
 ${name} is already installed"

     configure.args-replace  --disable-tests \
                             --enable-tests
     configure.args-append   --without-dbus-glib
     depends_build-append    path:lib/pkgconfig/glib-2.0.pc:glib2
     depends_build-append    port:python27 port:dbus-python27
 port:py27-gobject3 port:dbus-python
     configure.python        ${prefix}/bin/python2.7
 }
 }}}
 It would be nice if gdal's `+kea` variant could be updated to provide a
 similar note about circular dependencies.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/71904#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list