Subject: gzip not linked in .tools directory.
To: None <tech-pkg@netbsd.org>
From: Pritesh Shah <pritesh.krish@gmail.com>
List: tech-pkg
Date: 07/07/2005 18:21:57
hi all,

i was trying to build and install some packages as root, and saw that
inside the work directory we have .tools/bin directory.

# ll work.i386/.tools/bin/g*
lrwxr-xr-x  1 root  wheel   13 Jul  7 18:01 work.i386/.tools/bin/grep
-> /usr/bin/grep
lrwxr-xr-x  1 root  wheel   14 Jul  7 18:01 work.i386/.tools/bin/gzcat
-> /usr/ bin/gzcat
-rwxr-xr-x  1 root  wheel  247 Jul  7 18:01 work.i386/.tools/bin/gzip

why is'nt gzip a link to /usr/bin/gzip or whichever is prefarable ?=20

Due to this a package that need gzip store its path as
/usr/tmp/pkgsrc/wip/package_name/work.i386/.tools/bin/gzip creating
the following error:

=3D=3D=3D> Checking for work-directory references in package_name
BuildEnv.pm:sub gzip {return
"/usr/tmp/pkgsrc/wip/package_name/work.i386/.tools/bin/gzip"};
***
*** The above files still have references to the build directory.
*** This is possibly an error that should be fixed by unwrapping
*** the files or adding missing tools to the package makefile!
***
*** Error code 1

Stop.
make: stopped in /home/psham/cvs/NetBSD/pkgsrc/wip/package_name
*** Error code 1

Stop.
make: stopped in /home/psham/cvs/NetBSD/pkgsrc/wip/package_name
*** Error code 1

Stop.
make: stopped in /home/psham/cvs/NetBSD/pkgsrc/wip/package_name
*** Error code 1

Stop.
make: stopped in /home/psham/cvs/NetBSD/pkgsrc/wip/package_name