Subject: pkg_delete refuses to execute +DEINSTALL
To: None <tech-pkg@netbsd.org, current-users@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 11/03/2001 11:50:41
--rS8CxjVDS/+yyDmU
Content-Type: multipart/mixed; boundary="1yeeQ81UyVL57Vl7"
Content-Disposition: inline
--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi,
sorry if this is known issue but i was not able to find anything in the
mailing-list' archives.
i have a problem with pkg_deleting packages which contain +DEINSTALL script.
when i try to deinstall such a package, pkg_delete refuses to execute this
script with 'permission denied' error (fe. mutt-devel package):
# pkg_delete mutt
./+DEINSTALL: permission denied
pkg_delete: deinstall script returned error status
ktruss output is attached. it looks like /bin/sh is unable to run this scri=
pt.
when i tried to run it by hand as: sh ./+DEINSTALL, it ran correctly.
i am running 1.5X/i386, pkg_delete version 20010724, pkgsrc tree up-to-date.
any help will be appreciated, thanks
p.s.: i am not subscribed to tech-pkg, please cc: replies to me, thanks.
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> ASCII Ribbon campaign against /"\=
--
-- <salo@silcnet.org> e-mail in gratuitous HTML and \ /=
--
-- Microsoft proprietary formats X =
--
-- PGPkey: http://Xtrmntr.org/salo.pgp / \=
--
--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Description: pkg_delete.out
Content-Disposition: attachment; filename=out
21280 ktruss execve("/sbin/pkg_delete", 0xbfbfdbe0, 0xbfbfdbec) Err#2 ENOENT
21280 ktruss emul(netbsd)
21280 ktruss "/usr/libexec/ld.elf_so" JUSTRETURN
21280 pkg_delete emul(netbsd)
21280 pkg_delete __sysctl(0xbfbfd9e8, 0x2, 0x4805b1a0, 0xbfbfd9e4, 0, 0) = 0
21280 pkg_delete mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 1208336384
21280 pkg_delete geteuid = 0
21280 pkg_delete getuid = 0
21280 pkg_delete getegid = 0
21280 pkg_delete getgid = 0
21280 pkg_delete open("/etc/ld.so.conf", 0, 0x4805ad60) = 3
21280 pkg_delete __fstat13(0x3, 0xbfbfdb1c) = 0
21280 pkg_delete mmap(0, 0x53, 0x3, 0x2, 0x3, 0, 0, 0) = 1208369152
21280 pkg_delete close(0x3) = 0
21280 pkg_delete munmap(0x48064000, 0x53) = 0
21280 pkg_delete __stat13("/usr/pkg/lib/libc.so.12", 0xbfbfda74) Err#2 ENOENT
21280 pkg_delete __stat13("/usr/local/lib/libc.so.12", 0xbfbfda74) Err#2 ENOENT
21280 pkg_delete __stat13("/usr/lib/libc.so.12", 0xbfbfda74) = 0
21280 pkg_delete open("/usr/lib/libc.so.12", 0, 0x4805ad60) = 3
21280 pkg_delete read(0x3, 0xbfbfda40, 0x34) = 52
"\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0 h\^A\0004\0\0\0000+\t"
21280 pkg_delete close(0x3) = 0
21280 pkg_delete open("/usr/lib/libc.so.12", 0, 0x4805ad60) = 3
21280 pkg_delete __fstat13(0x3, 0xbfbfdaac) = 0
21280 pkg_delete read(0x3, 0xbfbfca88, 0x1000) = 4096
21280 pkg_delete mmap(0, 0x95000, 0x5, 0x2, 0x3, 0, 0, 0) = 1208369152
21280 pkg_delete mmap(0x480e8000, 0x5000, 0x3, 0x12, 0x3, 0, 0x83000, 0) = 1208909824
21280 pkg_delete mmap(0x480ed000, 0xc000, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 1208930304
21280 pkg_delete close(0x3) = 0
21280 pkg_delete __sysctl(0xbfbfdad0, 0x2, 0xbfbfdac8, 0xbfbfdacc, 0, 0) = 0
21280 pkg_delete "/etc/malloc.conf" Err#2 ENOENT
21280 pkg_delete mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 1208979456
21280 pkg_delete break(0x8053600) = 0
21280 pkg_delete break(0x8054600) = 0
21280 pkg_delete break(0x8055000) = 0
21280 pkg_delete break(0x8056000) = 0
21280 pkg_delete getuid = 0
21280 pkg_delete open(".", 0, 0) = 3
21280 pkg_delete "/var/db/pkg/mutt" Err#2 ENOENT
21280 pkg_delete open("/var/db/pkg", 0x4, 0x480ebb28) = 4
21280 pkg_delete __fstat13(0x4, 0xbfbfcb98) = 0
21280 pkg_delete fcntl(0x4, 0x2, 0x1) = 0
21280 pkg_delete break(0x8057000) = 0
21280 pkg_delete __sysctl(0xbfbfca48, 0x2, 0x480f7620, 0xbfbfca44, 0, 0) = 0
21280 pkg_delete fstatfs(0x4, 0xbfbfca98) = 0
21280 pkg_delete break(0x8058000) = 0
21280 pkg_delete lseek(0x4, 0, 0, 0, 0x1) = 0
21280 pkg_delete getdents(0x4, 0x8057000, 0x1000) = 2048
21280 pkg_delete __stat13("/var/db/pkg/mutt-1.3.23.1", 0xbfbfc780) = 0
21280 pkg_delete lseek(0x4, 0, 0, 0, 0x1) = 2048
21280 pkg_delete getdents(0x4, 0x8057000, 0x1000) = 0
21280 pkg_delete lseek(0x4, 0, 0, 0, 0) = 0
21280 pkg_delete close(0x4) = 0
21280 pkg_delete fchdir(0x3) = 0
21280 pkg_delete "/var/db/pkg/mutt-1.3.23.1" = 0
21280 pkg_delete "/var/db/pkg/mutt-1.3.23.1" = 0
21280 pkg_delete __getcwd(0xbfbfd76c, 0x400) = 6
21280 pkg_delete chdir("/var/db/pkg/mutt-1.3.23.1") = 0
21280 pkg_delete __stat13("+REQUIRED_BY", 0xbfbfd2f4) Err#2 ENOENT
21280 pkg_delete "+CONTENTS" = 0
21280 pkg_delete open("+CONTENTS", 0, 0x1b6) = 4
21280 pkg_delete __fstat13(0x4, 0xbfbfce70) = 0
21280 pkg_delete read(0x4, 0x8056000, 0x2000) = 7194
21280 pkg_delete break(0x8059000) = 0
21280 pkg_delete break(0x805a000) = 0
21280 pkg_delete break(0x805b000) = 0
21280 pkg_delete break(0x805c000) = 0
21280 pkg_delete read(0x4, 0x8056000, 0x2000) = 0
21280 pkg_delete close(0x4) = 0
21280 pkg_delete "+REQUIRE" Err#2 ENOENT
21280 pkg_delete "+DEINSTALL" = 0
21280 pkg_delete __sysctl(0xbfbfd320, 0x2, 0xbfbfd318, 0xbfbfd31c, 0, 0) = 0
21280 pkg_delete break(0x809c000) = 0
21280 pkg_delete __sigprocmask14(0x1, 0xbfbfd328, 0xbfbfd318) = 0
21280 pkg_delete __vfork14 = 21281
21280 pkg_delete __sigaction14(SIGINT, 0xbfbfd2cc, 0xbfbfd2b4) = 0
21280 pkg_delete __sigaction14(SIGQUIT, 0xbfbfd2c4, 0xbfbfd2ac) = 0
21280 pkg_delete wait4(0x5321, 0xbfbfd304, 0, 0) = 21281
21280 pkg_delete __sigprocmask14(0x3, 0xbfbfd318, 0) = 0
21280 pkg_delete __sigaction14(SIGINT, 0xbfbfd2cc, 0xbfbfd2b4) = 0
21280 pkg_delete __sigaction14(SIGQUIT, 0xbfbfd2c4, 0xbfbfd2ac) = 0
21280 pkg_delete break(0x809c000) = 0
21280 pkg_delete break(0x806c000) = 0
21280 pkg_delete __sysctl(0xbfbfd314, 0x2, 0xbfbfd30c, 0xbfbfd310, 0, 0) = 0
21280 pkg_delete break(0x80ac000) = 0
21280 pkg_delete __sigprocmask14(0x1, 0xbfbfd31c, 0xbfbfd30c) = 0
21280 pkg_delete __vfork14 = 21283
21280 pkg_delete __sigaction14(SIGINT, 0xbfbfd2c0, 0xbfbfd2a8) = 0
21280 pkg_delete __sigaction14(SIGQUIT, 0xbfbfd2b8, 0xbfbfd2a0) = 0
21280 pkg_delete wait4(0x5323, 0xbfbfd2f8, 0, 0) = 21283
21280 pkg_delete __sigprocmask14(0x3, 0xbfbfd30c, 0) = 0
21280 pkg_delete __sigaction14(SIGINT, 0xbfbfd2c0, 0xbfbfd2a8) = 0
21280 pkg_delete __sigaction14(SIGQUIT, 0xbfbfd2b8, 0xbfbfd2a0) = 0
21280 pkg_delete break(0x80ac000) = 0
21280 pkg_delete break(0x806c000) = 0
21280 pkg_delete write(0x2, 0xbfbfcbdc, 0xc) = 12
"pkg_delete: "
21280 pkg_delete write(0x2, 0xbfbfcbf4, 0x26) = 38
"deinstall script returned error status"
21280 pkg_delete write(0x2, 0xbfbfcbe0, 0x1) = 1
"\n"
21280 pkg_delete fchdir(0x3) = 0
21280 pkg_delete close(0x3) = 0
21280 pkg_delete exit(0x1)
--1yeeQ81UyVL57Vl7--
--rS8CxjVDS/+yyDmU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE748wBWc63C347cOIRAg5TAKC28DkXPTbg28GZ6Ahs4tMMRGsxwACg4wU/
XVkd/GkfFvcZYmz/W6Hc8+g=
=pvFM
-----END PGP SIGNATURE-----
--rS8CxjVDS/+yyDmU--