Bug 23907 - Cannot install x11/XFree86-aoutlibs from sysinstall (pkg-req/ldconfig problem)
Summary: Cannot install x11/XFree86-aoutlibs from sysinstall (pkg-req/ldconfig problem)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-28 14:00 UTC by Jimmy Olgeni
Modified: 2001-04-03 21:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy Olgeni 2000-12-28 14:00:00 UTC
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.

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.
Comment 1 Jimmy Olgeni freebsd_committer freebsd_triage 2001-01-31 15:32:34 UTC
Responsible Changed
From-To: freebsd-ports->olgeni

I'm looking for a solution to this PR. 
I'll follow up with a fix after some more testing.
Comment 2 olgeni 2001-02-01 11:48:15 UTC
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
Comment 3 olgeni 2001-02-01 12:20:02 UTC
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
Comment 4 Jimmy Olgeni freebsd_committer freebsd_triage 2001-02-22 20:35:36 UTC
State Changed
From-To: open->feedback

Fixes committed, but this has to be tested on the 4.3 beta ISO.
Comment 5 Jimmy Olgeni freebsd_committer freebsd_triage 2001-04-03 21:52:24 UTC
State Changed
From-To: feedback->closed

Everything looks fine on the 4.3-RC1 ISO.