Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2000 04:26:50 +0900
From:      FUJISHIMA Satsuki <k5@cheerful.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/20270: libtool ldconfig and shlibs
Message-ID:  <86ya2mf43p.wl@cheerful.com>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ya2mf43p.wl>