Subject: Re: pkg/24575: audio/xmms configure is not compatible with pkgsrc
To: None <dotz@irc.pl>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 03/20/2005 05:51:39
On Fri, Feb 27, 2004 at 02:06:49PM +0000, dotz@irc.pl wrote:
> audio/xmms won't build on Slackware 9.1.
> 
> "native" slackware gtk is installed in /usr/ prefix.
> 
> configure will take gtk-config from /usr/bin/, even if I set
> PREFER_PKGSRC in /etc/mk.conf
> >How-To-Repeat:
> Obvious.
> >Fix:
> Adding --with-gtk-exec-prefix=${PREFIX}/bin/ to Makefile.common doesn't 
> help much. Propably my fault. Dunno.
> 
> I have removed "native" gtk and compiled pkgsrc one, worked.
> 
> I have no idea if this is the right fix, propably this switch should
> be always included by gtk+/bl3, propably for some packages it will
> be named different... This whole "configure" idea seems so broken :/
> 
> Propably gtk/bl3 could be re-worked in such manner so it could use 
> "native" gtk, but as linux systems are way beyond being "standarized",
> this could really be more trouble, than help to pkgsrc/Linux users

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.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>