#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to