Subject: gcc package forced when LOCALBASE is /usr and a gcc is installed
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/04/2004 12:25:39
gcc package forced when LOCALBASE is /usr and a gcc is installed but
not from package. For example:

bigfour:/usr/pkgsrc/www/curl$ make
===> Checking for vulnerabilities in curl-7.11.0
===> Cleaning for digest-20021220
===> Checking for vulnerabilities in digest-20021220
work.bigfour -> /tmp/pkgsrc/pkgtools/digest/work.bigfour
===> Extracting for digest-20021220
===> Required package gcc>=2.95.3: NOT found
===> Verifying reinstall for ../../lang/gcc
===> Checking for vulnerabilities in gcc-2.95.3nb5

bigfour:/usr/pkgsrc/www/curl$ make show-var VARNAME=_CC
/usr/bin//usr//bin/gcc


bigfour:/usr/pkgsrc/www/curl$ make show-var VARNAME=CC
/usr//bin/gcc
bigfour:/usr/pkgsrc/www/curl$ ls -l /usr/bin/gcc
-r-xr-xr-x  2 root  wheel  67760 Nov 28 03:43 /usr/bin/gcc


I guess I should just ignore this. It is not a real problem.

This is NetBSD 1.6.2_RC3 and my LOCALBASE is /usr.
It have gcc installed from the NetBSD sets.

My workaround is the following in /etc/mk.conf:

_IS_BUILTIN_GCC=YES
_USE_PKGSRC_GCC=NO

   Jeremy C. Reed
   http://bsd.reedmedia.net/