Subject: pkg/5550: GTEXINFO and USE_PERL5 macro use DEPENDS
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Root <root@polaris.garbled.net>
List: netbsd-bugs
Date: 06/06/1998 11:39:10
>Number:         5550
>Category:       pkg
>Synopsis:       GTEXINFO and USE_PERL5 macro use DEPENDS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun  6 11:35:01 1998
>Last-Modified:
>Originator:     Charlie Root
>Organization:
Tim Rightnour    -  root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release:        05-28-1998 and today<NetBSD-current source date>
>Environment:
	
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386


>Description:
The USE_GTEXINFO macro checks for the pkg with the following line:
DEPENDS+=               gtexinfo-3.12:${PKGSRCDIR}/devel/gtexinfo

Which works fine (with my other PR, without that it explodes) except if 
you have a locally maintained installation of gtexinfo.  In which case it 
will go and build you a new one and you will have them both. (local and pkg)

This same problem exists with perl, and can be solved in the same fashion.

	
>How-To-Repeat:
install gtexinfo into /usr/local manually.  Try to build the gtexinfo pkg 
and watch the lossage begin!

	
>Fix:
There are a few bins that gtexinfo relys on, such as texi2dvi, 
texindex,install-info,info.  We need to pick one and use it as a 
BUILD_DEPEND.

BUILD_DEPEND +=	texi2dvi:${PKGSRCDIR}/devel/gtexinfo
and
BUILD_DEPEND += perl:${PKGSRCDIR}/lang/perl5

this way it checks the path and doesn't build a useless pkg, which will 
either take up space, or screw yours up, depending on the order of your path.

	
>Audit-Trail:
>Unformatted: