pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/42132 (pkg_add can't install packages in 5.0)
The following reply was made to PR pkg/42132; it has been noted by GNATS.
From: Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost,
Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
Subject: Re: pkg/42132 (pkg_add can't install packages in 5.0)
Date: Fri, 17 Jan 2020 11:07:29 +0100
Installing perl fails with
pkg_add: Failed to write bin/perl5.30.0 for perl-5.30.0nb1: Could not
open bin/perl
pkg_add: Couldn't remove /opt/local/bin/perl5.30.0
pkg_add: Couldn't remove /opt/local/lib/perl5/5.30.0/AnyDBM_File.pm
pkg_add: Couldn't remove /opt/local/lib/perl5/5.30.0/App/Cpan.pm
[...]
pkg_add: Couldn't remove /opt/local/lib/perl5/man/man3/warnings::register.3
pkg_add: 1 package addition failed
i.e. unpacking the archive fails to hard-link perl5.30.0 tp perl, and
pkg_add proceeds to roll back the installation.
A "ktrace -di pkg_add /var/obj/pkgsrc/packages/All/perl-5.30.0nb1.tgz" gives
[...]
16590 pkg_add CALL umask(0)
16590 pkg_add RET umask 18/0x12
16590 pkg_add CALL umask(0x12)
16590 pkg_add RET umask 0
16590 pkg_add CALL unlink(0x37ec40)
16590 pkg_add NAMI "bin/perl5.30.0"
16590 pkg_add RET unlink -1 errno 2 No such file or directory
16590 pkg_add CALL open(0xffffff9c,0x7b8d0,0x100000)
16590 pkg_add RET open -1 errno 14 Bad address
16590 pkg_add CALL write(0x2,0xbfffe950,0x9)
16590 pkg_add GIO fd 2 wrote 9 bytes
"pkg_add: "
16590 pkg_add RET write 9
16590 pkg_add CALL write(0x2,0xbfffe9b0,0x4a)
16590 pkg_add GIO fd 2 wrote 74 bytes
"Failed to write bin/perl5.30.0 for perl-5.30.0nb1: Could not
open bin/perl"
16590 pkg_add RET write 74/0x4a
[...]
where EFAULT (14) seems to be one of the more obscure unix error codes...
Home |
Main Index |
Thread Index |
Old Index