[MacPorts] #60455: rtmpdump: librtmp.pc makes others link with libz, libgnutls, libgmp, libnettle, libhogweed
MacPorts
noreply at macports.org
Fri May 8 06:33:34 UTC 2020
#60455: rtmpdump: librtmp.pc makes others link with libz, libgnutls, libgmp,
libnettle, libhogweed
------------------------+----------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Keywords: | Port: rtmpdump
------------------------+----------------------
Anything that asks pkg-config how to link to librtmp will be told that it
also needs to link with libz, libgnutls, libgmp, libnettle, and nettle's
libhogweed:
{{{
$ pkg-config librtmp --libs
-L/opt/local/lib -lrtmp -lz -lgmp -lgnutls -lhogweed -lnettle
}}}
From the MacPorts perspective, it means that for every port where we
declare a library dependency on rtmpdump, we also need to declare a
dependency on zlib, gmp, gnutls, and nettle. And we need to revbump the
port anytime one of those ports' libraries change. For example, nettle's
library versions recently changed, so my ffmpeg broke, because I had it
installed with its +librtmp variant, but that variant does not mention a
dependency on nettle.
Is this all really necessary? librtmp is itself linked with libz,
libgnutls, libgmp, libnettle, and libhogweed, but don't the ports that
want to link with librtmp only need to link with librtmp? Isn't forcing
other ports to link with those other libraries overlinking?
{{{
$ cat /opt/local/lib/pkgconfig/librtmp.pc
prefix=/opt/local
exec_prefix=${prefix}
libdir=/opt/local/lib
incdir=${prefix}/include
Name: librtmp
Description: RTMP implementation
Version: 2.4
Requires: gnutls,hogweed,nettle
URL: http://rtmpdump.mplayerhq.hu
Libs: -L${libdir} -lrtmp -lz -lgmp
Libs.private:
Cflags: -I${incdir}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60455>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list