FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-25-2010, 04:02 PM
Martin Gracik
 
Default Fix searching for ld_linux executable on 64 bit machines

On some machines we can have more ld_linux executables specified
in /usr/bin/ldd file. This patch fixes how we search for the file.
---
src/pylorax/sysutils.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/pylorax/sysutils.py b/src/pylorax/sysutils.py
index 6e207de..fd8377e 100644
--- a/src/pylorax/sysutils.py
+++ b/src/pylorax/sysutils.py
@@ -356,11 +356,14 @@ class Linker(object):
ld_linux = m.group("ld_linux")
break

- if ld_linux is None:
+ if ld_linux:
+ ld_linux = filter(os.path.isfile, ld_linux.split())
+
+ if not ld_linux:
raise LinkerError("cannot find the ld_linux executable")

self.lddcmd = "LD_LIBRARY_PATH={0} {1} --list"
- self.lddcmd = self.lddcmd.format(libdirs, ld_linux)
+ self.lddcmd = self.lddcmd.format(libdirs, ld_linux[0])

self.pattern = re.compile(r"^[-._/a-zA-Z0-9]+s=>s"
r"(?P<lib>[-._/a-zA-Z0-9]+)"
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org