Subject: Re: pkg/24575: audio/xmms configure is not compatible with pkgsrc
To: None <jlam@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 03/20/2005 19:12:01
The following reply was made to PR pkg/24575; it has been noted by GNATS.

From: "Johnny C. Lam" <jlam@NetBSD.org>
To: "Julio M. Merino Vidal" <jmmv84@gmail.com>
Cc: dotz@irc.pl, pkgsrc-bugs@NetBSD.org, gnats-bugs@NetBSD.org
Subject: Re: pkg/24575: audio/xmms configure is not compatible with pkgsrc
Date: Sun, 20 Mar 2005 19:11:36 +0000

 On Sun, Mar 20, 2005 at 11:14:09AM +0100, Julio M. Merino Vidal wrote:
 > On Sun, 2005-03-20 at 05:51 +0000, Johnny C. Lam wrote:
 > > 
 > > I think the packages that supply a *-config script/binary file should
 > > be taught to symlink that file into ${BUILDLINK_DIR}/bin in their
 > > buildlink3.mk files.  That will probably solve these types of problems
 > > since ${BUILDLINK_DIR}/bin is prepended to the PATH as part of the
 > > configure and build phases.
 > 
 > FWIW, I commited a fix not so long ago and changed the path in pkgsrc to
 > have ${LOCALBASE}/bin before anything else (but after the buildlink and
 > wrapper directories), so that this kind of failure couldn't happen.
 > AFAICT, it worked fine, and multiple packages were solved according to
 > minskim@'s Linux bulk builds (e.g., ispell-spanish, the package I was
 > trying to fix).
 
 I think this won't help in the case of something like heimdal, where
 krb5-config is installed by both the base system and by pkgsrc.  In
 that case, you would need more control over which krb5-config is
 detected based on the PREFER_* settings.  I think the only way to be
 sure is to symlink the *-config scripts into ${BUILDLINK_DIR}/bin.
 
 	Cheers,
 
 	-- Johnny Lam <jlam@NetBSD.org>