From olgeni@colby.it  Thu Dec 28 05:53:28 2000
Return-Path: <olgeni@colby.it>
Received: from tsing.ita.tip.net (tsing.ita.tip.net [194.20.0.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0B94437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Dec 2000 05:53:28 -0800 (PST)
Received: from dev1.localdomain.net ([194.244.229.102])
	by tsing.ita.tip.net (AurorA/BorealE) with ESMTP id OAA27408
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Dec 2000 14:42:06 +0100 (MET)
Received: (from olgeni@localhost)
	by dev1.localdomain.net (8.11.1/8.11.1) id eBSDcqw14754;
	Thu, 28 Dec 2000 14:38:53 +0100 (CET)
	(envelope-from olgeni)
Message-Id: <200012281338.eBSDcqw14754@dev1.localdomain.net>
Date: Thu, 28 Dec 2000 14:38:53 +0100 (CET)
From: olgeni@uli.it
Sender: olgeni@colby.it
Reply-To: olgeni@uli.it
To: FreeBSD-gnats-submit@freebsd.org
Subject: Cannot install x11/XFree86-aoutlibs from sysinstall (pkg-req/ldconfig problem)
X-Send-Pr-Version: 3.2

>Number:         23907
>Category:       ports
>Synopsis:       Cannot install x11/XFree86-aoutlibs from sysinstall (pkg-req/ldconfig problem)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    olgeni
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 28 06:00:00 PST 2000
>Closed-Date:    Tue Apr 3 13:52:24 PDT 2001
>Last-Modified:  Tue Apr 03 13:54:07 PDT 2001
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Colby
>Environment:

FreeBSD 4.2-STABLE snapshot (Dec 19) (i386)

>Description:

If you choose to install XFree86-aoutlibs from sysinstall (standard cdrom
or ftp installation) the package will fail to install. Any running
"install.cfg" script will then be aborted.

The problem may be with the port's pkg-req: it suggests that:

"There do not appear to be any a.out libraries on this
machine.  Please install the compat22 distribution (via
/stand/sysinstall) or build it as part of your 'make world'
(see /etc/make.conf)."

... even if you actually installed compat22 from the distributions list.

pkg-req uses ldconfig to determine if compat22 is installed: maybe at
early install time ldconfig has not yet been configured and gives wrong
results to pkg-req. The same binary port installs fine from pkg_add after
installation.

>How-To-Repeat:
>Fix:

Either give a clue about single user mode sysinstall to pkg-req (?), or run
ldconfig before installing any binary ports from sysinstall (?). Other
ports will then call ldconfig as specified in their plists, keeping
ldconfig in sync.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->olgeni 
Responsible-Changed-By: olgeni 
Responsible-Changed-When: Wed Jan 31 07:32:34 PST 2001 
Responsible-Changed-Why:  
I'm looking for a solution to this PR. 
I'll follow up with a fix after some more testing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23907 

From: Jimmy Olgeni <olgeni@ctonet.it>
To: freebsd-gnats-submit@FreeBSD.org, olgeni@uli.it
Cc:  
Subject: Re: ports/23907: Cannot install x11/XFree86-aoutlibs from sysinstall 
 (pkg-req/ldconfig problem)
Date: Thu, 01 Feb 2001 12:48:15 +0100

 I can confirm that this fix works (tested on a recent 4-STABLE snapshot).
 
 Index: pkg-req
 ===================================================================
 RCS file: /home/ncvs/ports/x11/XFree86-aoutlibs/pkg-req,v
 retrieving revision 1.2
 diff -u -r1.2 pkg-req
 --- pkg-req	2000/03/11 17:52:08	1.2
 +++ pkg-req	2001/02/01 11:46:23
 @@ -1,4 +1,9 @@
  #!/bin/sh
 +
 +if [ -n "${BATCH}" -o -n "${PACKAGE_BUILDING}" ]; then
 +	exit 0
 +fi
 +
  env=/usr/bin/env
  fgrep=/usr/bin/fgrep
  ldconfig=/sbin/ldconfig
 

From: Jimmy Olgeni <olgeni@ctonet.it>
To: freebsd-gnats-submit@FreeBSD.org, olgeni@uli.it
Cc:  
Subject: Re: ports/23907: Cannot install x11/XFree86-aoutlibs from sysinstall 
 (pkg-req/ldconfig problem)
Date: Thu, 01 Feb 2001 13:20:02 +0100

 Looking at sysinstall's output, the following fix is also
 required by the master netscape port:
 
 Index: pkg-req.aout
 ===================================================================
 RCS file: /home/ncvs/ports/www/netscape4-communicator/pkg-req.aout,v
 retrieving revision 1.1
 diff -u -r1.1 pkg-req.aout
 --- pkg-req.aout	2000/03/11 17:22:02	1.1
 +++ pkg-req.aout	2001/02/01 12:17:32
 @@ -1,4 +1,9 @@
  #!/bin/sh
 +
 +if [ -n "${BATCH}" -o -n "${PACKAGE_BUILDING}" ]; then
 +	exit 0
 +fi
 +
  env=/usr/bin/env
  fgrep=/usr/bin/fgrep
  ldconfig=/sbin/ldconfig
 
State-Changed-From-To: open->feedback 
State-Changed-By: olgeni 
State-Changed-When: Thu Feb 22 12:35:36 PST 2001 
State-Changed-Why:  
Fixes committed, but this has to be tested on the 4.3 beta ISO. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23907 
State-Changed-From-To: feedback->closed 
State-Changed-By: olgeni 
State-Changed-When: Tue Apr 3 13:52:24 PDT 2001 
State-Changed-Why:  
Everything looks fine on the 4.3-RC1 ISO. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23907 
>Unformatted:
