From murray@dolemite.cdrom.com  Wed Mar 29 02:21:37 2000
Return-Path: <murray@dolemite.cdrom.com>
Received: from dolemite.cdrom.com (dolemite.cdrom.com [204.216.28.171])
	by hub.freebsd.org (Postfix) with ESMTP id 99B7237BE43
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 29 Mar 2000 02:21:37 -0800 (PST)
	(envelope-from murray@dolemite.cdrom.com)
Received: (from root@localhost)
	by dolemite.cdrom.com (8.9.3/8.9.3) id SAA95808;
	Wed, 29 Mar 2000 18:21:51 GMT
	(envelope-from murray)
Message-Id: <200003291821.SAA95808@dolemite.cdrom.com>
Date: Wed, 29 Mar 2000 18:21:51 GMT
From: Murray Stokely <murray@dolemite.cdrom.com>
Reply-To: murray@cdrom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysinstall fails to load a.out libraries
X-Send-Pr-Version: 3.2

>Number:         17659
>Category:       bin
>Synopsis:       sysinstall fails to load a.out libraries
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    murray
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 29 02:30:01 PST 2000
>Closed-Date:    Mon Jul 17 15:20:22 PDT 2000
>Last-Modified:  Mon Jul 17 15:21:33 PDT 2000
>Originator:     Murray Stokely
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
BSDI
>Environment:


>Description:

  If you install a distribution, sysinstall will run ldconfig to scan
for new ELF libraries, but it will not run ldconfig -aout to scan for
a.out libraries.  This is a real problem for the compat22 distribution
and is the reason that Netscape fails to install during a 4.0
installation.

>How-To-Repeat:

  On a machine without compat22 loaded, try to install the Netscape
package from within sysinstall.  It will fail and tell you to install
compat22, but if you go back and load compat22 then try again it will
still fail because the a.out libraries are installed but not read
until a reboot.

>Fix:

Index: package.c
===================================================================
RCS file: /host/ares/usr/home/ncvs/src/release/sysinstall/package.c,v
retrieving revision 1.91
diff -u -r1.91 package.c
--- package.c	2000/03/18 08:46:23	1.91
+++ package.c	2000/03/29 18:11:38
@@ -129,8 +129,10 @@
     }
 
     /* If necessary, initialize the ldconfig hints */
-    if (!file_readable("/var/run/ld.so.hints"))
+    if (!file_readable("/var/run/ld.so.hints")) {
 	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib /usr/X11R6/lib");
+	vsystem("ldconfig -aout /usr/lib/aout /usr/lib/compat/aout /usr/local/lib/aout /usr/X11R6/lib/aout");
+    }
 
     /* Be initially optimistic */
     ret = DITEM_SUCCESS;


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Mar 29 05:47:58 PST 2000 
Responsible-Changed-Why:  
Jordan, this one looks solid.  Let me know if you'd prefer me to 
do it. 
Responsible-Changed-From-To: jkh->sheldonh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Mar 29 23:37:03 PST 2000 
Responsible-Changed-Why:  
I'm not as busy as Jordan is. 
State-Changed-From-To: open->suspended 
State-Changed-By: billf 
State-Changed-When: Thu Mar 30 17:12:37 PST 2000 
State-Changed-Why:  
Patch committed to -current, I'll sit on it a few days and merge it down. 


Responsible-Changed-From-To: sheldonh->billf 
Responsible-Changed-By: billf 
Responsible-Changed-When: Thu Mar 30 17:12:37 PST 2000 
Responsible-Changed-Why:  
I committed this  /  reminder to merge. 

Thanks Murray. :-> 
Responsible-Changed-From-To: billf->murray 
Responsible-Changed-By: billf 
Responsible-Changed-When: Mon Apr 10 11:03:14 PDT 2000 
Responsible-Changed-Why:  
Murray can merge this. :-> 
State-Changed-From-To: suspended->closed 
State-Changed-By: murray 
State-Changed-When: Mon Jul 17 15:20:22 PDT 2000 
State-Changed-Why:  
Fix has been commited to RELENG_{345} 


http://www.freebsd.org/cgi/query-pr.cgi?pr=17659 
>Unformatted:
 Murray Stokely
