[MacPorts] #48015: tmux-devel @20150604-83a7017_0: missing build dependency on pkgconfig

MacPorts noreply at macports.org
Wed Jun 10 20:20:41 PDT 2015

#48015: tmux-devel @20150604-83a7017_0: missing build dependency on pkgconfig
 Reporter:  larryv@…  |      Owner:  tessarek@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.3.3
 Keywords:  haspatch  |       Port:  tmux-devel
 The configure phase fails if `pkgconfig` is not installed or visible. This
 affects our Buildbot buildslaves, and you can observe it for yourself with
 trace mode:
 % sudo port -dt configure tmux-devel
 DEBUG: Executing command line:  cd "/opt/local/var/macports/build
 devel/work/tmux-83a70172a4a12ee9fa069b381172ddbf75c92ad1" && ./autogen.sh
 configure.ac:17: installing 'etc/compile'
 configure.ac:9: installing 'etc/config.guess'
 configure.ac:9: installing 'etc/config.sub'
 configure.ac:7: installing 'etc/install-sh'
 configure.ac:7: installing 'etc/missing'
 Makefile.am: installing 'etc/depcomp'
 configure.ac:112: error: possibly undefined macro: AC_SEARCH_LIBS
       If this token and others are legitimate, please use
       See the Autoconf documentation.
 autoreconf: /opt/local/bin/autoconf failed with exit status: 1
 autoreconf failed
 Command failed:  cd "/opt/local/var/macports/build
 devel/work/tmux-83a70172a4a12ee9fa069b381172ddbf75c92ad1" && ./autogen.sh
 Exit code: 1

 The error message is misleading; the problem is actually at line 115,
 where configure.ac tries to use PKG_CHECK_MODULES], which is defined in
 `pkgconfig`’s pkg.m4 file.

 I’ve attached two patches. One makes the build use autogen.sh, as upstream
 recommends. It also patches autogen.sh to invoke Autotools verbosely, to
 aid debugging. The other actually adds the dependency on `pkgconfig`.

Ticket URL: <https://trac.macports.org/ticket/48015>
MacPorts <https://www.macports.org/>
Ports system for OS X

More information about the macports-tickets mailing list