Subject: pkg/33881: dovecot configure stage fails
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jason@lucid.net.au>
List: pkgsrc-bugs
Date: 07/01/2006 00:55:00
>Number: 33881
>Category: pkg
>Synopsis: dovecot configure stage fails
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 01 00:55:00 +0000 2006
>Originator: Jason Lingohr
>Release: N/A
>Organization:
>Environment:
Linux fully 2.4.31 #7 Wed Jul 20 16:40:54 EST 2005 i686 i686 i386 GNU/Linux
>Description:
When trying to build from current pkgsrc tree, dovecot (and possibly others) fails to finish the configure phase with the following error:
checking for SSL... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables SSL_CFLAGS
and SSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details.
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/mail/dovecot
>How-To-Repeat:
bmake clean clean-depends && bmake
>Fix:
If I add:
USE_TOOLS+=pkg-config
to the pkg's Makefile, it builds and installs perfectly.
I'm not sure if this is the right fix, but it seems to me that if a pkg uses pkg-config, the Makefile should be told about it. I'm happy to be corrected if I'm wrong.