pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/43512: pkg_delete/pkg_add problem with binary cvs package under [Open]Solaris
>Number: 43512
>Category: pkg
>Synopsis: pkg_delete/pkg_add problem with binary cvs package under
>[Open]Solaris
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 25 14:35:00 +0000 2010
>Originator: Andrey N. Oktyabrski
>Release: Solaris 10u8, OpenSolaris b134
>Organization:
>Environment:
SunOS bug 5.11 snv_134 i86pc i386 i86pc Solaris
>Description:
pkg_delete can't remove the cvs-1.11.23 package when it installed by this
command:
$ sudo pkg_add
ftp://ftp.netbsd.org/pub/pkgsrc/packages/SunOS/i386/5.10_2010Q1/All/cvs-1.11.23.tgz
Error message is:
$ sudo pkg_delete cvs
pkg_delete: deinstall script returned error status
$ cd /usr/pkgsrc/devel/scmcvs
$ sudo bmake deinstall
pkg_delete: deinstall script returned error status
(pkgsrc-2010Q1)
pkg_delete -f cvs - removes this package successfully
When a package installed from sources by "bmake install", it can be deleted
with no problems.
>How-To-Repeat:
# pkg_add -u
ftp://ftp.netbsd.org/pub/pkgsrc/packages/SunOS/i386/5.10_2010Q1/devel/avl-1.4.0.tgz
pkg_add: Warning: package `avl-1.4.0' was built for a platform:
pkg_add: SunOS/i386 5.10 (pkg) vs. SunOS/i386 5.11 (this host)
pkg_add: exec of install script failed: No such file or directory
pkg_add: Couldn't remove /var/db/pkg/avl-1.4.0: File exists
pkg_add: 1 package addition failed
# pkg_info -L avl
Information for avl-1.4.0:
Files:
/opt/pkg/include/avl.h
/opt/pkg/include/avlt.h
/opt/pkg/include/avltr.h
/opt/pkg/include/rb.h
/opt/pkg/info/avl.info
/opt/pkg/lib/libavl.a
# ls -l /opt/pkg/lib/libavl.a
/opt/pkg/lib/libavl.a: No such file or directory
# pkg_delete avl
pkg_delete: deinstall script returned error status
# pkg_info | grep avl
avl-1.4.0 Library for manipulation of balanced binary trees
# pkg_delete -f avl
pkg_delete: deinstall script returned error status
pkg_delete: Couldn't remove /opt/pkg/include/avl.h
pkg_delete: Couldn't remove /opt/pkg/include/avlt.h
pkg_delete: Couldn't remove /opt/pkg/include/avltr.h
pkg_delete: Couldn't remove /opt/pkg/include/rb.h
pkg_delete: Couldn't remove /opt/pkg/info/avl.info
pkg_delete: Couldn't remove /opt/pkg/lib/libavl.a
pkg_delete: post-deinstall script returned error status
Additionally, truss output:
# truss pkg_admin delete cvs-1.11.23
execve("/usr/pkg/sbin/pkg_admin", 0x0804744C, 0x0804745C) argc = 3
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) =
0xCF3B0000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) =
0xCF3A0000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON,
-1, 0) = 0xCF390000
memcntl(0xCF3BD000, 29892, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
memcntl(0x08050000, 57856, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
resolvepath("/usr/pkg/sbin/pkg_admin", "/usr/pkg/sbin/pkg_admin", 1023) = 23
sysconfig(_CONFIG_PAGESIZE) = 4096
stat64("/usr/pkg/sbin/pkg_admin", 0x080470D0) = 0
open("/var/ld/ld.config", O_RDONLY) = 3
fstat64(3, 0x08046C60) = 0
mmap(0x00000000, 124, PROT_READ, MAP_SHARED, 3, 0) = 0xCF380000
close(3) = 0
stat64("/opt/pg84/32/lib/libbz2.so.1", 0x080468D0) Err#2 ENOENT
stat64("/usr/ccs/lib/libbz2.so.1", 0x080468D0) Err#2 ENOENT
stat64("/lib/libbz2.so.1", 0x080468D0) Err#2 ENOENT
stat64("/usr/lib/libbz2.so.1", 0x080468D0) = 0
resolvepath("/usr/lib/libbz2.so.1", "/usr/lib/libbz2.so.1", 1023) = 20
open("/usr/lib/libbz2.so.1", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xCF390A50, 0x0804693C, 0x00000000) = 0
close(3) = 0
memcntl(0xCF350000, 5840, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat64("/opt/pg84/32/lib/libz.so.1", 0x080468D0) Err#2 ENOENT
stat64("/usr/ccs/lib/libz.so.1", 0x080468D0) Err#2 ENOENT
stat64("/lib/libz.so.1", 0x080468D0) = 0
resolvepath("/lib/libz.so.1", "/lib/libz.so.1", 1023) = 14
open("/lib/libz.so.1", O_RDONLY) = 3
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON,
-1, 0) = 0xCF340000
mmapobj(3, MMOBJ_INTERPRET, 0xCF340018, 0x0804693C, 0x00000000) = 0
close(3) = 0
memcntl(0xCEBB0000, 6984, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat64("/opt/pg84/32/lib/libcrypto.so.0.9.8", 0x080468D0) Err#2 ENOENT
stat64("/usr/ccs/lib/libcrypto.so.0.9.8", 0x080468D0) Err#2 ENOENT
stat64("/lib/libcrypto.so.0.9.8", 0x080468D0) = 0
resolvepath("/lib/libcrypto.so.0.9.8", "/lib/libcrypto.so.0.9.8", 1023) = 23
open("/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xCF340518, 0x0804693C, 0x00000000) = 0
close(3) = 0
memcntl(0xCF1E0000, 328144, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat64("/opt/pg84/32/lib/libsocket.so.1", 0x080468D0) Err#2 ENOENT
stat64("/usr/ccs/lib/libsocket.so.1", 0x080468D0) Err#2 ENOENT
stat64("/lib/libsocket.so.1", 0x080468D0) = 0
resolvepath("/lib/libsocket.so.1", "/lib/libsocket.so.1", 1023) = 19
open("/lib/libsocket.so.1", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xCF340A50, 0x0804693C, 0x00000000) = 0
close(3) = 0
memcntl(0xCF1C0000, 16212, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat64("/opt/pg84/32/lib/libnsl.so.1", 0x080468D0) Err#2 ENOENT
stat64("/usr/ccs/lib/libnsl.so.1", 0x080468D0) Err#2 ENOENT
stat64("/lib/libnsl.so.1", 0x080468D0) = 0
resolvepath("/lib/libnsl.so.1", "/lib/libnsl.so.1", 1023) = 16
open("/lib/libnsl.so.1", O_RDONLY) = 3
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON,
-1, 0) = 0xCF1B0000
mmapobj(3, MMOBJ_INTERPRET, 0xCF1B0018, 0x0804693C, 0x00000000) = 0
close(3) = 0
memcntl(0xCEED0000, 80080, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat64("/opt/pg84/32/lib/libc.so.1", 0x080468D0) Err#2 ENOENT
stat64("/usr/ccs/lib/libc.so.1", 0x080468D0) Err#2 ENOENT
stat64("/lib/libc.so.1", 0x080468D0) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xCF1B0568, 0x0804693C, 0x00000000) = 0
close(3) = 0
memcntl(0xCF050000, 189708, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON,
-1, 0) = 0xCF040000
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xCF030000
getcontext(0x08046F20)
getrlimit(RLIMIT_STACK, 0x08046F18) = 0
getpid() = 26450 [26449]
lwp_private(0, 1, 0xCF032A00) = 0x000001C3
setustack(0xCF032A60)
sigfillset(0xCF1AA6A0) = 0
sysi86(SI86FPSTART, 0xCF1AAFCC, 0x0000133F, 0x00001F80) = 0x00000001
open64("/usr/pkg/etc/pkg_install.conf", O_RDONLY) Err#2 ENOENT
brk(0x080B1A18) = 0
brk(0x080B3A18) = 0
open64("/var/db/pkg/pkgdb.byfile.db", O_RDWR|O_CREAT, 0644) = 3
fcntl(3, F_SETFD, 0x00000001) = 0
fcntl(3, F_SETFD, 0x00000001) = 0
fstat64(3, 0x08046A70) = 0
read(3, " b 105\003\0\0\0\010\0\0".., 24) = 24
fstat64(3, 0x08046950) = 0
brk(0x080B3A18) = 0
brk(0x080B5A18) = 0
pread64(3, " b 105\003\0\0\0\010\0\0".., 4096, 0) = 4096
brk(0x080B5A18) = 0
brk(0x080B7A18) = 0
pread64(3, "01\0\0\0\0\0\0\0\0\0\0\0".., 4096, 4096) = 4096
pread64(3, "02\0\0\0\0\0\0\006\0\0\0".., 4096, 8192) = 4096
brk(0x080B7A18) = 0
brk(0x080B9A18) = 0
pread64(3, "06\0\0\002\0\0\004\0\0\0".., 4096, 24576) = 4096
pread64(3, "04\0\0\006\0\0\007\0\0\0".., 4096, 16384) = 4096
brk(0x080B9A18) = 0
brk(0x080BBA18) = 0
pread64(3, "07\0\0\004\0\0\0\b\0\0\0".., 4096, 28672) = 4096
pread64(3, "\b\0\0\007\0\0\0\t\0\0\0".., 4096, 32768) = 4096
brk(0x080BBA18) = 0
brk(0x080BDA18) = 0
pread64(3, "\t\0\0\0\b\0\0\0\n\0\0\0".., 4096, 36864) = 4096
pread64(3, "\n\0\0\0\t\0\0\0\v\0\0\0".., 4096, 40960) = 4096
brk(0x080BDA18) = 0
brk(0x080BFA18) = 0
pread64(3, "\v\0\0\0\n\0\0\0\f\0\0\0".., 4096, 45056) = 4096
pread64(3, "\f\0\0\0\v\0\0\0\r\0\0\0".., 4096, 49152) = 4096
brk(0x080BFA18) = 0
brk(0x080C1A18) = 0
pread64(3, "\r\0\0\0\f\0\0\00E\0\0\0".., 4096, 53248) = 4096
pread64(3, "0E\0\0\0\r\0\0\00F\0\0\0".., 4096, 57344) = 4096
brk(0x080C1A18) = 0
brk(0x080C3A18) = 0
pread64(3, "0F\0\0\00E\0\0\003\0\0\0".., 4096, 61440) = 4096
pread64(3, "03\0\0\00F\0\0\005\0\0\0".., 4096, 12288) = 4096
brk(0x080C3A18) = 0
brk(0x080C5A18) = 0
pread64(3, "05\0\0\003\0\0\010\0\0\0".., 4096, 20480) = 4096
pread64(3, "10\0\0\005\0\0\0\0\0\0\0".., 4096, 65536) = 4096
close(3) = 0
_exit(0)
>Fix:
Home |
Main Index |
Thread Index |
Old Index