Subject: "postinstall fix obsolete" results in libc.so failure
To: NetBSD current-users <current-users@NetBSD.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
Date: 05/27/2007 12:24:41
I build a new system today. All went fine until I ran
"postinstall fix obsolete" after etcupdate. This is 3.1_STABLE:
bones$ cat /usr/src/CVS/Tag 
Tnetbsd-3
bones$

bones# /usr/sbin/postinstall -s /usr/src -d / fix obsolete
Source directory: /usr/src
Target directory: /
obsolete fix:
        Removed obsolete file /usr/share/zoneinfo/SystemV/YST9YDT
        Removed obsolete file /usr/share/zoneinfo/SystemV/YST9
        Removed obsolete file /usr/share/zoneinfo/SystemV/PST8PDT
        Removed obsolete file /usr/share/zoneinfo/SystemV/PST8
        Removed obsolete file /usr/share/zoneinfo/SystemV/MST7MDT
        Removed obsolete file /usr/share/zoneinfo/SystemV/MST7
        Removed obsolete file /usr/share/zoneinfo/SystemV/HST10
        Removed obsolete file /usr/share/zoneinfo/SystemV/EST5EDT
        Removed obsolete file /usr/share/zoneinfo/SystemV/EST5
        Removed obsolete file /usr/share/zoneinfo/SystemV/CST6CDT
        Removed obsolete file /usr/share/zoneinfo/SystemV/CST6
        Removed obsolete file /usr/share/zoneinfo/SystemV/AST4ADT
        Removed obsolete file /usr/share/zoneinfo/SystemV/AST4
        Removed obsolete directory /usr/share/zoneinfo/SystemV
Shared object "libc.so.12" not found    Removed obsolete file /lib/libc.so.12.128.2
Shared object "libc.so.12" not found

Shared object "libc.so.12" not found
Shared object "libc.so.12" not foundShared object "libc.so.12" not found        Can't remove obsolete file /lib/libcrypto.so.2.1


Shared object "libc.so.12" not found
        Can't remove obsolete file /lib/libtermcap.so.0.5
Shared object "libc.so.12" not found
        Can't remove obsolete link /lib/libtermlib.so.0.5
Shared object "libc.so.12" not foundShared object "libc.so.12" not found

postinstall fixes passed:
postinstall fixes failed: obsolete
Shared object "libc.so.12" not found
bones#

bones# /rescue/ls -l /lib/libc.so.* 
lrwxr-xr-x  1 root  wheel      16 May 26 23:58 /lib/libc.so.12 -> libc.so.12.128.2
-r--r--r--  1 root  wheel  898098 Jun 11  2005 /lib/libc.so.12.129
bones#

I have repaired a few symlinks manually. But is there a script available
to repair all symlinks in /lib and /usr/lib?

How can I avoid this in the future?

Is /lib/libc.so.12.129 really of Jun 11th 2005? Looks strange.

	rvdp