Inside a PkgBase based chroot I did:

# pkg delete -a 2>&1 | tee ~/pkg-del-a.txt

After that pkg (dynamic) no longer works:

# pkg info pkg
ld-elf.so.1: Shared object "libarchive.so.7" not found, required by "pkg"

By contrast, "pkg-static info pkg" still works. But
any scripting that uses pkg instead of pkg-static
would be broken for the pkg usage.

Also, when I tried to summarize some error
messages, I found uniq was not present:

# grep "cannot open" ~/pkg-del-a.txt | sort | uniq -c
/bin/sh: uniq: not found

Nor was wc :

# grep "cannot open" ~/pkg-del-a.txt | sort | wc -l
/bin/sh: wc: not found

(I can not tell what is expected vs. what is not.
So some of the above may well be considered normal
and might end up documented to some degree or in
some way.)


During the delete (POST-DEINSTALL notice summary):

Note: I'd only had a few hundred packages installed,
so the variety tested is rather limited.

Of note: the port packages were not deleted before the
PkgBase system packages were. This ordering seems
problematical to me.

# grep -B1 "POST-DEINSTALL" ~/pkg-del-a.txt | sort -u
--
.: cannot open /etc/rc.subr: No such file or directory
pkg: POST-DEINSTALL script failed


Done from outside the chroot to get an idea of the
counts:

# grep -B1 "POST-DEINSTALL" 
/usr/obj/DESTDIRs/main-armv7-chroot-ports-main-dup/root/pkg-del-a.txt | sort | 
uniq -c
  87 --
  88 .: cannot open /etc/rc.subr: No such file or directory
  88 pkg: POST-DEINSTALL script failed


===
Mark Millard
marklmi at yahoo.com


Reply via email to