On Sat, Jan 21, 2006 at 02:32:27PM +0100, Adam PAPAI wrote:
Hi
I've got a problem with pkg_add. I usually install 1-2 OpenBSD system a
week. Some of them has got problem with pkg_add.
For example pkg_add -vv screen-4.0.2.tgz takes 10 minutes.
And it's abnormal. What can I do to speed up this slowliness? I guess
probably must be wrong with the perl.
i am pretty sure you are right -- it's probably perl, everybody knows that
stuff is bad. and don't forget all that low-quality coding that goes into
openbsd. yes, now i think about it, its probably some poor french developer
so low on caffeine he can't even think through those last cvs commits properly.
or _perhaps_ its something else, more probable, like your PKG_PATH is
pointing where you expect it, and the delay is due to needing to snarf the
pkg down from the 'net somewhere, as it can't find the bits locally.
where does pkg_add go to get your bits? i.e. what's in your PKG_PATH? a
local repository? scp? ftp? http? are they being pulled off a remote
filesystem, nfs ....
are the all the dependencies you need for screenXYZ in /usr/ports/packages/*
? or any other repositories in PKG_PATH ?
try starting your pkg_add XYZ and then run a netstat. anything doing ftp
while you're not looking?
have the dependencies for XYZ changed since you last downloaded them? do you
get the same doggy speed when 'the bits' and all its dependencies are in
/tmp/ ?e.g. PKG_PATH=/tmp; pkg_add -v /tmp/screen-4.0.2.tgz - slow/fast/borks?
are you running 3.8, stable, .... ?
if you're convinced its the perl, try adding some debug statements in
/usr/libdata/perl5/OpenBSD/* and then you'll be able to find the bug &
submit a patch.
cheers, scorch
--
out of the frying pan and into the fire