Subject: pkg/35358: "pkgsrc/www/curl/buitlin.mk" is broken
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-bugs
Date: 01/04/2007 14:25:00
>Number:         35358
>Category:       pkg
>Synopsis:       "pkgsrc/www/curl/buitlin.mk" is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 04 14:25:00 +0000 2007
>Originator:     Matthias Scheler
>Release:        Darwin 8.8.0
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: Darwin excalibur.zhadum.org.uk 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc
Architecture: powerpc
Machine: Power Macintosh
>Description:
Building the "rtorrent" package fails under Mac OS X:

=> Required installed package libtool-base>=1.5.18nb5: libtool-base-1.5.22nb4 found
=> Required installed package pkg-config>=0.19: pkg-config-0.21 found
=> Required installed package libtorrent>=0.10.0: libtorrent-0.10.4 found
===> Overriding tools for rtorrent-0.6.4nb1
===> Extracting for rtorrent-0.6.4nb1
===> Patching for rtorrent-0.6.4nb1
=> Applying pkgsrc patches for rtorrent-0.6.4nb1
===> Creating toolchain wrappers for rtorrent-0.6.4nb1
ERROR: libidn is not installed; can't buildlink files.
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/rtorrent
*** Error code 1

The reason is that "pkgsrc/www/curl/builtin.mk" decides to use the
"libcurl" provided by Mac OS X. "pkgsrc/www/curl/buildlink3.mk" will
later include "devel/libidn/buildlink3.mk" unconditionally. "libidn"
is however not available under Mac OS X.

>How-To-Repeat:
cd pkgsrc/net/rtorrent
bmake

>Fix:
Removing "pkgsrc/www/curl/buitlin.mk" fixes the build problem.