On 10/16/11 23:26, STeve Andre' wrote:
> I got this message, but it isn't clear to me which package this happened
> on.
> This is an i386-current system
>   OpenBSD 5.0-current (GENERIC.MP) #0: Sun Oct 16 19:43:01 EDT 2011
> (and yes, I see the time is four hours ahead of where it should be)
> 
> Use of uninitialized value $sz in print at
> /usr/ports/infrastructure/lib/DPB/PortBuilder.pm line 134
> 
> --STeve Andre'
> 
> 
Hi,

I usually had these two together...

Use of uninitialized value $sz in print at 
/usr/ports/infrastructure/lib/DPB/PortBuilder.pm line 133.
print() on closed filehandle $fh at 
/usr/ports/infrastructure/lib/DPB/PortBuilder.pm line 139.

Allowing for slight code change the line number has changed. 
I have a little script clear_logs.sh that does this

sudo rm -rf /usr/ports/pobj/*
cd /usr/ports/logs/`machine`
( find paths -type l | xargs wc -c >/dev/null ) 2>&1 | cut -d: -f2 | xargs rm
( find packages -type l | xargs wc -c >/dev/null ) 2>&1 | cut -d: -f2 | xargs rm

rm locks/*

So I haven't seen the errors for some time, since running my script before dpb.

The reason is dpb creates a log file, then symbolic links to the log file, then 
deletes the
log file on the next run leaving the link, but if dpb tries to get information 
from the log file such as size from the link, if the file doesn't exist the 
variable 
sz doesn't get set.

try

cd /usr/ports/logs/`machine`
find paths -type l | xargs wc -c >/dev/null
find packages -type l | xargs wc -c >/dev/null

See how how many "file not found" errors are reported, 
and this should tell you which packages / paths. Adjust 
the above if not using the normal default directories.

Nigel

Reply via email to