Subject: Re: Conflicts when building two packages at the same time
To: None <pkgsrc-users@netbsd.org>
From: Loic Hoguin <essen@dev-extend.eu>
List: pkgsrc-users
Date: 03/23/2007 22:11:28
On Fri, 23 Mar 2007 19:07:43 +0100, Loic Hoguin <essen@dev-extend.eu>  
wrote:

>> Last time I tried pkgsrc locking, it was broken, packages fail to build  
>> even
>> when PKGSRC_LOCKTYPE is set in mk.conf.
>
> I activated it and will check if it works for other packages I need to  
> install.
>
> Regards,

     OK, it doesn't seem to work. It failed two times differently:

     The first one failed while the main make was downloading the package  
source.
     Here's the log for the second make which should have been locked:

[essen@ibook] % sudo make
=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
checksum: Checksum SHA1 mismatch for gdk-pixbuf-0.22.0.tar.bz2
ERROR: Make sure the Makefile and checksum file  
(/usr/pkgsrc/graphics/gdk-pixbuf
/../gdk-pixbuf/distinfo)
ERROR: are up to date.  If you want to override this check, type
ERROR: "/usr/bin/make NO_CHECKSUM=yes [other args]".
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/gdk-pixbuf

     The second one failed after the main make finished compiling the  
package.
     It correctly waited while compilation though. I used the sleep option  
for locking.

[essen@ibook] % sudo make
=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
=> Lock acquire-wrapper-lock is held by pid 375
=> Lock acquire-wrapper-lock is held by pid 375
=> Lock acquire-wrapper-lock is held by pid 375
(lots of these...)
=> Lock acquire-wrapper-lock is held by pid 375
===> Creating toolchain wrappers for gdk-pixbuf-0.22.0nb8
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/gdk-pixbuf
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/gdk-pixbuf

     I don't really know why it failed here. Of course the package was not  
cleaned.
     The main make was compiling firefox using a simple "sudo make install  
clean clean-depends"
     command, and was compiling its gdk-pixbuf dependency during the tests.

     Everything with netbsd 4.99.16 and pkgsrc current from two days ago.

     Regards,

-- 
Loïc Hoguin
Dev:Extend