Date: Thu, 16 Aug 2007 20:44:40 GMT From: Tim Newsham <newsham@lava.net> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/115588: rc.d/ldconfig doesnt handle ldconfig_local_dirs properly Message-ID: <200708162044.l7GKieW2090133@www.freebsd.org> Resent-Message-ID: <200708162050.l7GKo1Ki067579@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115588 >Category: misc >Synopsis: rc.d/ldconfig doesnt handle ldconfig_local_dirs properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 16 20:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tim Newsham >Release: FreeBSD6.2-STABLE (early august) >Organization: >Environment: FreeBSD hpsux.x0d99.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Aug 3 18:39:42 HST 2007 root@hpsux.x0d99.com:/usr/src/sys/amd64/compile/THENEWSH amd64 >Description: The /etc/rc.d/ldconfig script does not properly handle ldconfig_local_dirs or ld_config_local32_dirs paths. If you try to run the script with either of these set in /etc/rc.conf (ie. ldconfig_local32_dirs=/usr/local/lib32) the screen will be filled with garbage. I believe this is due to: if [ -n "${_files}" ]; then ldconfig_paths="${ldconfig_paths} `cat ${_files} | sort -u`" fi which sets the ldconfig_paths variable to the contents of all of the library files. This variable is later echoed to the screen. Perhaps the "cat" was meant to be an "echo"? Tim >How-To-Repeat: edit /etc/rc.conf. Add a line ldconfig_local_dirs=/usr/local/lib save the file and run sh /etc/rc.d/ldconfig restart repeat with ldconfig_local32_dirs on an em64_t/amd64 machine. >Fix: Change cat to echo? I'm not sure I understand what the script was trying to do. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708162044.l7GKieW2090133>