From owner-freebsd-ports Fri Jul 28 12:30: 9 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 963CC37BC74 for ; Fri, 28 Jul 2000 12:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA37105; Fri, 28 Jul 2000 12:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from m08.alpha-net.ne.jp (m08.alpha-net.ne.jp [210.229.64.38]) by hub.freebsd.org (Postfix) with ESMTP id A8ADE37BAAC for ; Fri, 28 Jul 2000 12:27:15 -0700 (PDT) (envelope-from k5@cheerful.com) Received: from kyoto-tc012-p11.alpha-net.ne.jp (kyoto-tc012-p11.alpha-net.ne.jp [210.237.119.139]) by m08.alpha-net.ne.jp (8.9.3/3.7W) with ESMTP id EAA20920 for ; Sat, 29 Jul 2000 04:26:31 +0900 (JST) Received: from souffle.bogus-local.net (souffle.bogus-local.net [192.168.1.1]) by kyoto-tc012-p11.alpha-net.ne.jp (Postfix) with ESMTP id E84183D5E for ; Sat, 29 Jul 2000 04:26:50 +0900 (JST) Message-Id: <86ya2mf43p.wl@cheerful.com> Date: Sat, 29 Jul 2000 04:26:50 +0900 From: FUJISHIMA Satsuki To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/20270: libtool ldconfig and shlibs Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20270 >Category: ports >Synopsis: libtool needlessly runs ldconfig after install shlibs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 28 12:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: FUJISHIMA Satsuki >Release: FreeBSD 5.0-CURRENT i386 >Organization: N/A >Environment: >Description: libtool installed with ports/devel/libtool runs ldconfig when shared library installed. This is FreeBSD specific, and now bsd.port.mk handles this properly. So libtool doesn't need to run ldconfig. I found this behavior of libtool when I work with audio/xmms port (ports/20261). This port installs some sharelibs as plugin module into ${X11BASE}/lib/xmms/* and libtool runs ldconfig -m there. The problem happens when you deinstall this port; pkg_delete removes all plugins and directories and then try to ldconfig -R. Of course there are no such directories and complains: ===> Deinstalling for xmms-1.2.2 ldconfig: /usr/X11R6/lib/xmms/Output: No such file or directory ldconfig: /usr/X11R6/lib/xmms/Effect: No such file or directory ldconfig: /usr/X11R6/lib/xmms/General: No such file or directory ldconfig: /usr/X11R6/lib/xmms/Visualization: No such file or directory So I think that ldconfig run by libtool is overkill. >How-To-Repeat: o make audio/xmms WITH patch ports/20261 applied. /usr/ports/audio/xmms# make install << successfully installed >> /usr/ports/audio/xmms# ldconfig -r|head -2 /var/run/ld-elf.so.hints: search directories: /usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib:/usr/X11R6/lib/xmms/Input:/usr/X11R6/lib/xmms/Output:/usr/X11R6/lib/xmms/Effect:/usr/X11R6/lib/xmms/General:/usr/X11R6/lib/xmms/Visualization o then remove this package. /usr/ports/audio/xmms# make deinstall ldconfig: /usr/X11R6/lib/xmms/Output: No such file or directory ldconfig: /usr/X11R6/lib/xmms/Effect: No such file or directory ldconfig: /usr/X11R6/lib/xmms/General: No such file or directory ldconfig: /usr/X11R6/lib/xmms/Visualization: No such file or directory >Fix: Index: patches/patch-ac =================================================================== RCS file: /home/ncvs/ports/devel/libtool/patches/patch-ac,v retrieving revision 1.9 diff -u -w -B -b -r1.9 patch-ac --- patches/patch-ac 2000/04/02 08:26:22 1.9 +++ patches/patch-ac 2000/07/28 19:24:02 @@ -1,5 +1,5 @@ ---- ltconfig.orig Tue Dec 7 13:50:48 1999 -+++ ltconfig Mon Jan 17 16:31:24 2000 +--- ltconfig.orig Wed Dec 8 06:50:48 1999 ++++ ltconfig Sat Jul 29 04:23:46 2000 @@ -169,7 +169,7 @@ # Constants: PROGRAM=ltconfig @@ -90,7 +90,7 @@ file_magic_cmd= file_magic_test_file= deplibs_check_method='unknown' -@@ -1874,18 +1877,21 @@ +@@ -1874,18 +1877,20 @@ case "$version_type" in freebsd-elf*) deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' @@ -116,11 +116,10 @@ + fi + need_version=no + need_lib_prefix=no -+ finish_cmds='/usr/bin/env OBJFORMAT="'"$objformat"'" /sbin/ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH case "$host_os" in freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*) -@@ -2776,6 +2782,15 @@ +@@ -2776,6 +2781,15 @@ # Shell to use when invoking shell scripts. SHELL=$LTSHELL >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message