Subject: bin-install broken?
To: None <tech-pkg@netbsd.org>
From: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
List: tech-pkg
Date: 10/03/2006 11:28:04
When I try to build a package from source using the bin-install target,
bin-install locks against itself.

panic# make bin-install BINPKG_SITES=
===> Binary install for digest-20060826
=> Installing digest-20060826 from /usr/pkgsrc/packages/All
pkg_add: no pkg found for 'digest-20060826.tgz', sorry.
pkg_add: 1 package addition failed
=> No binary package found for digest-20060826 -- installing from source
...
=> Unwrapping files-to-be-installed.
===> Installing for digest-20060826
=> Lock is held by pid 339
=> Lock is held by pid 339

This is what pstree has to say about the processes involved:

-make,5830) bin-install BINPKG_SITES
   `-sh,17217) -c ...
      `-make,339) _MAKE /usr/bin/make OPSYS NetBSD OS_VERSION 4.0_BETA ...
          `-sh,25704) -c ...
              `-make,22821) BINPKG_SITES  HOST_OSTYPE NetBSD-4.0_BETA-i386 ...
                  `-sh,5880) -c ...
                      `-make,5561) BINPKG_SITES  HOST_OSTYPE ...
                          `-sh,14520) -c ...
                              `-make,22564) BINPKG_SITES DEPENDS_TARGET ...
                                  `-sh,17168) -c ...
                                      `-sleep,22077) 5


-- 
%SYSTEM-F-ANARCHISM, The operating system has been overthrown