Okay, I've finally been able to reproduce this particular issue. I believe that the reason I haven't been able to advise you earlier is because your bug-report is incomplete:
On Mon, Jun 25, 2007 at 03:01:59PM +0300, Paul Irofti wrote: > a pkg_add -iuv I get fatal errors with random package updates. > > I usually have to remove by hand (pkg_delete fails) and reinstall the > given package. > > The errors I get are along the lines of: > > qt3-mt-3.7p5 (deleting): complete > Undefined subroutine > &OpenBSD::PackingElement::FileBase::rename_file_to_temp calledRead > [...] > /usr/sbin/pkg_add: Deinstallation of qt3-mt-3.7p5 failed, partial > installation recorded as partial-qt3-mt-3.7p5.1 > Specifically, the error I got has nothing random, and there are some important lines above the lines you are quoting... Specifically: vim-7.1.2-no_x11 (extracting): complete Problem: md5 doesn't match for /usr/local/share/vim/vim71/filetype.vim NOT deleting: /usr/local/share/vim/vim71/filetype.vim vim-7.1.2-no_x11 (deleting): complete Undefined subroutine &OpenBSD::PackingElement::FileBase::rename_file_to_temp called Note that it tells me there was a problem during the installation, before it tries to create a partial package... Look again at your logs, I'm sure you'll see something similar, and in this case, it is more important than whatever dmesg tells you. Anyways, I'm testing a fix, which will be committed shortly.