[MacPorts] #55438: curl port opportunistically links against brotli

MacPorts noreply at macports.org
Thu Nov 30 14:40:13 UTC 2017


#55438: curl port opportunistically links against brotli
-----------------------------+------------------------
  Reporter:  francoisbecker  |      Owner:  ryandesign
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  curl            |
-----------------------------+------------------------
Changes (by neverpanic):

 * owner:   => ryandesign
 * status:  new => assigned


Old description:

> The curl port opportunistically links against brotli whereas brotli isn't
> declared as a dependency of the curl port. This is an issue for example
> with curl+universal whereas brotli-nonuniversal is installed (port fails
> to install)
>
> Suggestion: curl should either never use brotli (e.g. by passing
> --disable-brotli), or declare a dependency on it.

New description:

 The curl port opportunistically links against brotli whereas brotli isn't
 declared as a dependency of the curl port. This is an issue for example
 with curl+universal whereas brotli-universal is installed (port fails to
 install)

 Suggestion: curl should either never use brotli (e.g. by passing
 --disable-brotli), or declare a dependency on it.

--

Comment:

 This results in the following failure on installation:
 {{{#!patch
 diff -u
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/destroot-{i386,x86_64}/opt/local/bin
 /curl-config
 ---
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/destroot-i386/opt/local/bin
 /curl-config  2017-11-30 15:10:00.000000000 +0100
 +++
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work
 /destroot-x86_64/opt/local/bin/curl-config        2017-11-30
 15:09:59.000000000 +0100
  -148,7 +148,7 @@
             CURLLIBDIR=""
          fi
          if test "Xyes" = "Xyes"; then
 -          echo ${CURLLIBDIR}-lcurl -lidn2 -lpsl -lssl -lcrypto -lssl
 -lcrypto -lz
 +          echo ${CURLLIBDIR}-lcurl -lidn2 -lpsl -lssl -lcrypto -lssl
 -lcrypto -lbrotlidec -lz
          else
            echo ${CURLLIBDIR}-lcurl
          fi
  -156,7 +156,7 @@

      --static-libs)
          if test "Xyes" != "Xno" ; then
 -          echo ${exec_prefix}/lib/libcurl.a -L/opt/local/lib
 -Wl,-headerpad_max_install_names  -L/opt/local/lib -L/opt/local/lib
 -L/opt/local/lib -lidn2 -lpsl -lssl -lcrypto -lssl -lcrypto -lz
 +          echo ${exec_prefix}/lib/libcurl.a -L/opt/local/lib
 -Wl,-headerpad_max_install_names  -L/opt/local/lib -L/opt/local/lib
 -L/opt/local/lib -lidn2 -lpsl -lssl -lcrypto -lssl -lcrypto -lbrotlidec
 -lz
          else
            echo "curl was built with static libraries disabled" >&2
            exit 1


 }}}

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


More information about the macports-tickets mailing list