Subject: Re: 3.1_STABLE issues
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: netbsd-users
Date: 11/12/2006 14:35:58
Manuel Bouyer wrote:
> OK, so you didn't upgrade, you've *downgraded* from current to netbsd-3.
> postinstall doesn't support downgrade.
>
No. I think you misunderstood...
I `downgraded' last year. So there is some extraneous stuff in the
filesystem. I understand postinstall can't clean up items it does not
know about.
But I've been on netbsd-3 since October 2005. And performed several
upgrades and postinstalls with no issue.
This problem also happened on another system where I was doing a binary
upgrade.
Just look at /etc/mtree/set.base and the list of obsoletes. And I *did*
run etcupdate too, so the mtree files are up-to-date...
Is this not reproducible?
# postinstall -s /usr/src -d / check obsolete
Source directory: /usr/src
Target directory: /
obsolete check:
Remove obsolete file /lib/libcrypto.so.2.1
Remove obsolete file /lib/libm.so.0.2
Remove obsolete file /lib/libm387.so.0.0
Remove obsolete file /lib/libtermcap.so.0.5
Remove obsolete link /lib/libtermlib.so.0.5
Remove obsolete file /lib/libutil.so.7.6
Remove obsolete link /usr/lib/libc.so.12.128.2
Remove obsolete link /usr/lib/libcrypto.so.2.1
Remove obsolete link /usr/lib/libm.so.0.2
Remove obsolete link /usr/lib/libm387.so.0.0
Remove obsolete file /usr/lib/libpcap.so.1.4
Remove obsolete file /usr/lib/libssh.so.1.0.1
Remove obsolete link /usr/lib/libtermcap.so.0.5
Remove obsolete link /usr/lib/libtermlib.so.0.5
Remove obsolete link /usr/lib/libutil.so.7.6
postinstall checks passed:
postinstall checks failed: obsolete
To fix, run:
/usr/sbin/postinstall -s /usr/src -d / fix obsolete
# egrep
"(/lib/libcrypto.so.2.1|/lib/libm.so.0.2|/lib/libm387.so.0.0|/lib/libtermcap.so.0.5|/lib/libtermlib.so.0.5|/lib/libutil.so.7.6|/usr/lib/libc.so.12.128.2|/usr/lib/libcrypto.so.2.1|/usr/lib/libm.so.0.2|/usr/lib/libm387.so.0.0|/usr/lib/libpcap.so.1.4|/usr/lib/libssh.so.1.0.1|/usr/lib/libtermcap.so.0.5|/usr/lib/libtermlib.so.0.5|/usr/lib/libutil.so.7.6)"
/etc/mtree/set.base
./lib/libcrypto.so.2.1
./lib/libm.so.0.2
./lib/libm387.so.0.0
./lib/libtermcap.so.0.5
./lib/libtermlib.so.0.5
./lib/libutil.so.7.6
./usr/lib/libc.so.12.128.2
./usr/lib/libcrypto.so.2.1
./usr/lib/libm.so.0.2
./usr/lib/libm387.so.0.0
./usr/lib/libpcap.so.1.4
./usr/lib/libssh.so.1.0.1
./usr/lib/libtermcap.so.0.5
./usr/lib/libtermlib.so.0.5
./usr/lib/libutil.so.7.6
Louis