Subject: bin/4228: ldconfig should be configurable
To: None <gnats-bugs@gnats.netbsd.org>
From: None <oskar@netbsd.ping.de>
List: netbsd-bugs
Date: 10/06/1997 19:53:26
>Number:         4228
>Category:       bin
>Synopsis:       ldconfig is not configurable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct  6 11:05:00 1997
>Last-Modified:
>Originator:     Jan-Hinrich "Oskar" Fessel
>Organization:
	PING Private Internet Nutzer Gruppe
>Release:        19970923
>Environment:
	
System: NetBSD netbsd 1.2G NetBSD 1.2G (NETTIE) #1: Tue Sep 23 22:53:26 CEST 1997 root@netbsd:/usr/src/sys/arch/i386/compile/NETTIE i386


>Description:
	in rc ldconfig is calld with no arguments, thus making it
	neccessary to change /etc/rc in order to run X11R6 or local
	dynamic binaries
>How-To-Repeat:
	
>Fix:
	
--- rc.conf.old	Mon Oct  6 16:00:01 1997
+++ rc.conf	Mon Oct  6 19:41:02 1997
@@ -18,4 +18,5 @@
 
 # One-time actions and programs on boot-up.
+ldconfig=YES		ldconfig_flags=""	# run ldconfig
 lkm=YES						# run /etc/rc.lkm
 savecore=YES		savecore_flags=""
--- rc.old	Mon Oct  6 18:57:08 1997
+++ rc	Mon Oct  6 19:39:17 1997
@@ -255,7 +255,11 @@
 echo '.'
 
-if [ -f /sbin/ldconfig ]; then
-	echo 'creating runtime link editor directory cache.'
-	ldconfig
+if checkyesno ldconfig; then
+	if [ -f /sbin/ldconfig ]; then
+		echo 'creating runtime link editor directory cache.'
+		ldconfig $ldconfig_flags
+	else
+		logger -s "WARNING: /sbin/ldconfig not present"
+	fi
 fi 
 
>Audit-Trail:
>Unformatted: