tags 636941 confirmed thanks Hello Martin,
On Sun, 07 Aug 2011 12:30:40 +0200, Martin Ziegler wrote: > /usr/share/wicd/cli/misc.py defines a function RenameProcess() > which searches libc.so.6 only in the directories /lib64 and /lib. > > On my system libc.so.6 is in /lib/x86_64-linux-gnu and /lib32. The > directory /lib64 does not exist. Would you mind trying the attached patch? Even if that works, I'll only be able to make a wicd upload in September, when I'll be back from vacation (and will have lots of wifi networks to test wicd before uploading) Thanks, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
From: David Paleino <[email protected]> Subject: generalize libc linking using ctypes Bug-Debian: http://bugs.debian.org/636941 Forwarded: no --- wicd/misc.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- wicd.orig/wicd/misc.py +++ wicd/wicd/misc.py @@ -406,12 +406,8 @@ def RenameProcess(new_name): return False try: import ctypes - is_64 = os.path.exists('/lib64/libc.so.6') - if is_64: - libc = ctypes.CDLL('/lib64/libc.so.6') - else: - libc = ctypes.CDLL('/lib/libc.so.6') - libc.prctl(15, new_name, 0, 0, 0) + from ctypes.util import find_library + libc = ctypes.CDLL(find_library('c')) return True except: print "rename failed"
signature.asc
Description: PGP signature

