GNU logs - #13083, boring messages


Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13083: libtool.m4 forgets LD_LIBRARY_PATH when computing sys_lib_dlsearch_path_spec
Resent-From: Ryan Lortie <desrt@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Tue, 04 Dec 2012 18:58:01 +0000
Resent-Message-ID: <handler.13083.B.13546474736228 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 13083
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 13083 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13546474736228
          (code B ref -1); Tue, 04 Dec 2012 18:58:01 +0000
Received: (at submit) by debbugs.gnu.org; 4 Dec 2012 18:57:53 +0000
Received: from localhost ([127.0.0.1]:53570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Tfxgm-0001cO-8u
	for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41048)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <desrt@HIDDEN>) id 1Tfxgk-0001cI-II
	for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <desrt@HIDDEN>) id 1Tfxgb-0005Vu-DX
	for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:47 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:37727)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <desrt@HIDDEN>) id 1Tfxgb-0005Vq-99
	for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52343)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <desrt@HIDDEN>) id 1TfxgU-0008CE-41
	for bug-libtool@HIDDEN; Tue, 04 Dec 2012 13:57:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <desrt@HIDDEN>) id 1TfxgR-0005TH-2S
	for bug-libtool@HIDDEN; Tue, 04 Dec 2012 13:57:34 -0500
Received: from manic.desrt.ca ([207.192.74.61]:42345 helo=mail.desrt.ca)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <desrt@HIDDEN>) id 1TfxgQ-0005T9-Vy
	for bug-libtool@HIDDEN; Tue, 04 Dec 2012 13:57:31 -0500
Received: from [172.16.1.217] (unknown [24.52.229.81])
	by manic.desrt.ca (Postfix) with ESMTPSA id 088C612CDAA
	for <bug-libtool@HIDDEN>; Tue,  4 Dec 2012 13:51:36 -0500 (EST)
Message-ID: <50BE4637.4050807@HIDDEN>
Date: Tue, 04 Dec 2012 13:51:35 -0500
From: Ryan Lortie <desrt@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121017 Thunderbird/16.0.1
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

According to the manpage for ld.so on Linux, libraries are searched for 
in three places:

  - LD_LIBRARY_PATH

  - /etc/ld.so.cache (built from ld.so.conf)

  - /lib and /usr/lib


libtool features a variable named sys_lib_dlsearch_path_spec which is 
meant to list the library search path with the purpose of excluding 
these paths from being hardcoded into libraries as -rpath.

The Linux case for determining the value of sys_lib_dlsearch_path_spec 
in libtool.m4 handles both the /etc/ld.so.cache case (by sourcing 
/etc/ld.so.conf) and hardcodes /lib and /usr/lib.  It fails to take 
LD_LIBRARY_PATH into account, however, resulting in unnecessary -rpath 
usage for the directories in this variable.

It would probably be relatively easy to split up LD_LIBRARY_PATH across 
the ':' it contains and add the paths to sys_lib_dlsearch_path_spec.

I'd do the patch myself but I am (blissfully) unaware of which set of 
tools (cut? sed?) are considered portable enough to be used from 
libtool.m4...

Thanks for your consideration.

Cheers




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ryan Lortie <desrt@HIDDEN>
Subject: bug#13083: Acknowledgement (libtool.m4 forgets LD_LIBRARY_PATH
 when computing sys_lib_dlsearch_path_spec)
Message-ID: <handler.13083.B.13546474736228.ack <at> debbugs.gnu.org>
References: <50BE4637.4050807@HIDDEN>
X-Gnu-PR-Message: ack 13083
X-Gnu-PR-Package: libtool
Reply-To: 13083 <at> debbugs.gnu.org
Date: Tue, 04 Dec 2012 18:58:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-libtool@HIDDEN

If you wish to submit further information on this problem, please
send it to 13083 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
13083: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13083
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.