Re: LD_LIBRARY_PATH - disappear of libdir after patch

2012-03-16 Thread Peter O'Gorman

Hi Paul,

On 03/16/2012 12:35 PM, Paul Seidler wrote:


I think I've got it:
libtool.m4 @@ -2195,16 +2195,16 @@



+  lt_fooi  = ;
should be
+  lt_foo = ;
?


I think we you a beer.

Thank you very much.

I pushed this.

Peter
From fbe09b44b5052273fe79ea24365c554a5d54d8ce Mon Sep 17 00:00:00 2001
From: Peter O'Gorman pe...@pogma.com
Date: Fri, 16 Mar 2012 13:23:13 -0500
Subject: [PATCH] Fix typo that caused sys_lib_search_path_spec to be wrong.

* m4/libtool.m4: s/lt_fooi/lt_foo/.
Reported by Paul Seidler se...@lavabit.com
---
 m4/libtool.m4 |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index e07ae4a..75bfdb4 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2201,7 +2201,7 @@ if test yes = $GCC; then
   done
   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 BEGIN {RS =  ; FS = /|\n;} {
-  lt_fooi  = ;
+  lt_foo = ;
   lt_count = 0;
   for (lt_i = NF; lt_i  0; lt_i--) {
 if ($lt_i !=   $lt_i != .) {
-- 
1.7.4.4



Re: LD_LIBRARY_PATH - disappear of libdir after patch

2012-03-16 Thread Paul Seidler
Am Dienstag, den 13.03.2012, 21:46 +0100 schrieb Paul Seidler:
 Am Montag, den 12.03.2012, 22:18 -0500 schrieb Peter O'Gorman:
  Hi Paul,
  
  On 03/12/2012 10:47 AM, Paul Seidler wrote:
   Hello,
  
   running the test suite of eina-1.1 with 1.0 installed and
   libtool-2.4{.2,} the tests will fail (symbol lookup errors) because of
   the LD_LIBRARY_PATH (same with glib, gst-plugins-base, ...). The libdir
   is in front of the test-path:
   LD_LIBRARY_PATH=/usr/lib64:/home/sepek/dev/eina-1.1.0/src/lib/.libs:
   $LD_LIBRARY_PATH
  
   I don't get this with newer libtool versions (from git), /usr/lib64:
   is no more in LD_LIBRARY_PATH. I traced it down to
   06c6555d4a77a5e91f43da3451586534da93e0ae. With a cherry-picked version
   everything works fine (with 2.4.2) but if I understand the complete
   message correct it shouldn't affect the functionality of libtool?! At
   least the tests of libtool throw no error.
  
   So my Question: Is this behavior intentional?
  
  That particular patch wasn't supposed to have changed anything, all it's 
  meant to have done is remove quoting where it's not needed.
  
  /usr/lib64 appearing in LD_LIBRARY_PATH is because libtool is brain dead 
  in its detection of system library locations. Most vendors have 
  patched their libtools to work around this, e.g.:
  
  http://pkgs.fedoraproject.org/gitweb/?p=libtool.git;a=blob;f=libtool-2.2.10-rpath.patch;h=d0d6d82178642658e6aca5a28d36813158980ca3;hb=HEAD
  
  Perhaps somehow libtool.m4 bits of your vendor patched libtool are 
  getting used?
 
 No, I have a pure 2.4.2 installed and replaced it with the
 cherry-picked/scm version completly.
 Since you have confirmed my suspicions, I will take a closer look in the
 next time.

I think I've got it:
libtool.m4 @@ -2195,16 +2195,16 @@
[...]
-BEGIN {RS= ; FS=/|\n;} {
-  lt_foo=;
-  lt_count=0;
+BEGIN {RS =  ; FS = /|\n;} {
+  lt_fooi  = ;
+  lt_count = 0;
[...]

+  lt_fooi  = ;
should be
+  lt_foo = ;
?



___
https://lists.gnu.org/mailman/listinfo/libtool


Re: LD_LIBRARY_PATH - disappear of libdir after patch

2012-03-12 Thread Peter O'Gorman

Hi Paul,

On 03/12/2012 10:47 AM, Paul Seidler wrote:

Hello,

running the test suite of eina-1.1 with 1.0 installed and
libtool-2.4{.2,} the tests will fail (symbol lookup errors) because of
the LD_LIBRARY_PATH (same with glib, gst-plugins-base, ...). The libdir
is in front of the test-path:
LD_LIBRARY_PATH=/usr/lib64:/home/sepek/dev/eina-1.1.0/src/lib/.libs:
$LD_LIBRARY_PATH

I don't get this with newer libtool versions (from git), /usr/lib64:
is no more in LD_LIBRARY_PATH. I traced it down to
06c6555d4a77a5e91f43da3451586534da93e0ae. With a cherry-picked version
everything works fine (with 2.4.2) but if I understand the complete
message correct it shouldn't affect the functionality of libtool?! At
least the tests of libtool throw no error.

So my Question: Is this behavior intentional?


That particular patch wasn't supposed to have changed anything, all it's 
meant to have done is remove quoting where it's not needed.


/usr/lib64 appearing in LD_LIBRARY_PATH is because libtool is brain dead 
in its detection of system library locations. Most vendors have 
patched their libtools to work around this, e.g.:


http://pkgs.fedoraproject.org/gitweb/?p=libtool.git;a=blob;f=libtool-2.2.10-rpath.patch;h=d0d6d82178642658e6aca5a28d36813158980ca3;hb=HEAD

Perhaps somehow libtool.m4 bits of your vendor patched libtool are 
getting used?


Peter

___
https://lists.gnu.org/mailman/listinfo/libtool