pkg_install-20050210がコンパイルできない

pkgsrcをcvsからとってきてコンパイルしようとしたら、
pkg_installが古いと言われた。

仕方ないので再コンパイルしようとしたら、

$ cd /usr/pkgsrc/pkgtools/pkg_install
$ make
===> Checking for vulnerabilities in pkg_install-20050210
===> Extracting for pkg_install-20050210
===> Patching for pkg_install-20050210
===> Overriding tools for pkg_install-20050210
===> Creating toolchain wrappers for pkg_install-20050210
===> Configuring for pkg_install-20050210
checking build system type... i386-unknown-netbsdelf1.6.2
checking host system type... i386-unknown-netbsdelf1.6.2
...
checking for strtoll... (cached) yes
checking whether optind is declared... yes
checking whether optreset is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
make: Graph cycles through nbcompat/nbtypes.h
/usr/bin/awk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I.  -O2 -DHAVE_CONFIG_H -c glob.c
In file included from __glob13.c:35,
                 from glob.c:12:
/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:37: nbcompat/nbtypes.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
===> 
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===>      * config.log
===>      * /usr/pkgsrc/pkgtools/pkg_install/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install

だと。

調べてみると、どうもmakeが悪いみたいだ。
gmakeだと上手くいくぽい。
(makeは、NetBSD 1.6.2附属のもの。gmakeは、gmake-3.80nb2。)

$ cd work/libnbcompat
$ make
make: Graph cycles through nbcompat/nbtypes.h
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I.  -O2 -DHAVE_CONFIG_H -c glob.c
In file included from __glob13.c:35,
                 from glob.c:12:
/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:37: nbcompat/nbtypes.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat
$ make bits
make: Graph cycles through bits
`bits' not remade because of errors.
$ gmake bits
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat  -I. -I.  -O2 -DHAVE_CONFIG_H -c bits.c
cc -I. -I.  -O2 -L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o bits bits.o
$ gmake nbcompat/nbtypes.h
./bits nbcompat/nbtypes.h
$ make
make: Graph cycles through nbcompat/nbtypes.h
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I.  -O2 -DHAVE_CONFIG_H -c glob.c
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I.  -O2 -DHAVE_CONFIG_H -c statvfs.c
ar cr libnbcompat.a glob.o statvfs.o
ranlib libnbcompat.a
`all' not remade because of errors.
$ cd ../..
$ make
===> Checking for vulnerabilities in pkg_install-20050210
===> Configuring for pkg_install-20050210
checking build system type... i386-unknown-netbsdelf1.6.2
checking host system type... i386-unknown-netbsdelf1.6.2
checking whether make sets $(MAKE)... yes
checking for gcc... cc
...
cc -DHAVE_CONFIG_H -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat  -I. -I. -I../lib -O2 -c show.c
cc -L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L../lib -o pkg_info main.o perform.o show.o -linstall -ltermcap -lnbcompat
=> Unwrapping files-to-be-installed.

さて、send-pr(1)ってどうやるんだろう。