NetBSD Problem Report #34794
From louis@maat.zabrico.com Thu Oct 12 07:20:04 2006
Return-Path: <louis@maat.zabrico.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 64EFD63BC72
for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 Oct 2006 07:20:04 +0000 (UTC)
Message-Id: <200610120609.k9C692KO002363@maat.zabrico.com>
Date: Thu, 12 Oct 2006 02:09:02 -0400 (EDT)
From: lguillaume@berklee.edu
Reply-To: lguillaume@berklee.edu
To: gnats-bugs@NetBSD.org
Subject: Postinstall wrongly flags several libraries as obsolete
X-Send-Pr-Version: 3.95
>Number: 34794
>Category: install
>Synopsis: Postinstall wrongly flags several libraries as obsolete
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 12 07:25:00 +0000 2006
>Last-Modified: Tue Jul 17 04:49:53 +0000 2007
>Originator: Louis Guillaume
>Release: NetBSD 3.1_RC4
>Organization:
>Environment:
System: NetBSD maat.zabrico.com 3.1_RC4 NetBSD 3.1_RC4 (GENERIC) #0: Wed Oct 11 11:52:21 EDT 2006 louis@maat.zabrico.com:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Architecture: i386
>Machine: i386
>Description:
Postinstall flags these files as obsolete...
# postinstall -s . -d / check obsolete
Source directory: .
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 . -d / fix obsolete
...However (for example)...
# tar tzvf /usr/src/releasedir/i386/binary/sets/base.tgz ./lib/libtermcap* ./usr/lib/libm*
-r--r--r-- 1 root wheel 11859 Oct 11 09:29 ./lib/libtermcap.so.0.5
lrwxr-xr-x 1 root wheel 0 Oct 11 09:56 ./lib/libtermcap.so.0 -> libtermcap.so.0.5
lrwxr-xr-x 1 root wheel 0 Oct 11 09:56 ./lib/libtermcap.so -> libtermcap.so.0.5
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libm387.so.0.0 -> /lib/libm387.so.0.0
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libm387.so.0 -> /lib/libm387.so.0.0
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libm387.so -> /lib/libm387.so.0.0
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libm.so.0.2 -> /lib/libm.so.0.2
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libm.so.0 -> /lib/libm.so.0.2
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libm.so -> /lib/libm.so.0.2
-r--r--r-- 1 root wheel 49884 Oct 11 09:27 ./usr/lib/libmagic.so.0.1
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libmagic.so.0 -> libmagic.so.0.1
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libmagic.so -> libmagic.so.0.1
-r--r--r-- 1 root wheel 20836 Oct 11 09:27 ./usr/lib/libmenu.so.5.0
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libmenu.so.5 -> libmenu.so.5.0
lrwxr-xr-x 1 root wheel 0 Oct 11 09:55 ./usr/lib/libmenu.so -> libmenu.so.5.0
tar: ustar vol 1, 3758 files, 63393571 bytes read, 0 bytes written in 2 secs (31696785 bytes/sec)
Which means that if we run postinsall `fix', it renders the system unbootable.
>How-To-Repeat:
Check out the latest cvs src module in the netbsd-3 branch.
$ cd /usr/src
$ ./build.sh -u -U -T /usr/obj/TOOLDIR.i386 tools
$ ./build.sh -u -U -T /usr/obj/TOOLDIR.i386 release
become root.
# cd /
# pax -zrvpe -f /usr/src/releasedir/i386/binary/sets/kern-GENERIC.tgz
# shutdown -r now
# ./build.sh -u -U -T /usr/obj/TOOLDIR.i386 install=/
All is well.
BUT!!!! When after running etcupdate, if you go ahead with `postinstall fix obsolete' it breaks the system.
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.