[FFmpeg-trac] #8258(undetermined:new): configure script ignores pkgconfigdir
FFmpeg
trac at avcodec.org
Sat Oct 12 21:35:08 EEST 2019
#8258: configure script ignores pkgconfigdir
-------------------------------------+-------------------------------------
Reporter: Vortico | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Using --pkgconfigdir when running ./configure appears to have no effect on
the actual PKG_CONFIG_PATH.
To reproduce, install a library, like libopus, which places an opus.pc
file in a default location like /usr/lib/pkgconfig/. Then move opus.pc to
a nonstandard directory such as /home/vortico/local/lib/pkgconfig/,
forcing us to use pkgconfigdir. Run the following in ffmpeg's directory.
./configure --pkgconfigdir=/home/vortico/local/lib/pkgconfig/ --enable-
libopus
The script fails with
ERROR: opus not found using pkg-config
However, running
PKG_CONFIG_PATH=/home/vortico/local/lib/pkgconfig/ ./configure --enable-
libopus
is successful. In the test_pkg_config() function in configure, the line
test_cmd $pkg_config --exists --print-errors $pkg_version || return
or other invocations of pkg_config, appears to not make use of the
pkgconfigdir at all.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8258>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list