Subject: Re: New tools framework
To: Johnny C. Lam <jlam@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/13/2005 17:04:37
On Fri, 13 May 2005, Johnny C. Lam wrote:

> > Variable TOOLS_PREFIX.grep is recursive.
>
> I've made a change to find-prefix.mk that might address this issue.
> Could you please update and test?

This time it did:

montecristo:/usr/pkgsrc/net/gethost$ bmake
===> Checking for vulnerabilities in gethost-0.03
=> Checksum SHA1 OK for gethost-0.03.tar.gz.
=> Checksum RMD160 OK for gethost-0.03.tar.gz.
work.montecristo -> /tmp/pkgsrc/net/gethost/work.montecristo
===> Extracting for gethost-0.03
===> Required installed package grep>=2.5.1: grep-2.5.1nb2 found
===> Required package gcc>=2.8.0: NOT found
===> Verifying reinstall for ../../lang/gcc
===> Checking for vulnerabilities in gcc-2.95.3nb5

I killed it there. I haven't needed gcc version 2 on this build machine
yet.

Somehow the tools framework assumed I need gcc>=2.8.0.

montecristo:/usr/pkgsrc/net/gethost$ /usr/sbin/pkg_info | grep ^gcc
gcc3-c-3.3.5        GNU Compiler Collection, v3 - C compiler
gcc3-c++-3.3.5      GNU Compiler Collection, v3 - C++ compiler

Just in case, I already have:

montecristo:/usr/pkgsrc/net/gethost$ ls -l /usr/bin/{cc,gcc,c++,g++,cpp}
lrwxr-xr-x  1 root root 17 Apr  5 01:05 /usr/bin/c++ -> /usr/gcc3/bin/c++
lrwxr-xr-x  1 root root 16 Apr  5 01:05 /usr/bin/cc -> /usr/gcc3/bin/cc
lrwxr-xr-x  1 root root 17 Apr  5 01:05 /usr/bin/cpp -> /usr/gcc3/bin/cpp
lrwxr-xr-x  1 root root 17 Apr  5 01:05 /usr/bin/g++ -> /usr/gcc3/bin/g++
lrwxr-xr-x  1 root root 17 Apr  5 01:05 /usr/bin/gcc -> /usr/gcc3/bin/gcc

Using _USE_NEW_TOOLS=no does:

montecristo:/usr/pkgsrc/net/gethost$ bmake _USE_NEW_TOOLS=no
===> Checking for vulnerabilities in gethost-0.03
=> Checksum SHA1 OK for gethost-0.03.tar.gz.
=> Checksum RMD160 OK for gethost-0.03.tar.gz.
===> Extracting for gethost-0.03
===> Required installed package patch>=2.2: patch-2.5.4nb2 found
===> Required installed package gcc3-c>=3.3.5: gcc3-c-3.3.5 found

Notice gcc3-c above.

===> Patching for gethost-0.03
..


>  As a workaround, you can always set
> _USE_NEW_TOOLS=no in your /etc/mk.conf of course, but I'd like to track
> down all of these types of bugs by the end of next week.

I will use _USE_NEW_TOOLS=no for my immediate needs. I sure am glad you
made this testing easy by having a switch like that.

 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/