Fix generic changelog entry.
[fedora-mingw.git] / python / python-2.5.1-binutils-no-dep.patch
1 diff -rup Python-2.5.1-orig/Lib/ctypes/util.py Python-2.5.1/Lib/ctypes/util.py
2 --- Python-2.5.1-orig/Lib/ctypes/util.py        2007-01-17 14:53:24.000000000 -0500
3 +++ Python-2.5.1/Lib/ctypes/util.py     2007-10-24 11:06:12.000000000 -0400
4 @@ -71,9 +71,13 @@ elif os.name == "posix":
5          if not f:
6              return None
7          cmd = "objdump -p -j .dynamic 2>/dev/null " + f
8 -        res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read())
9 +        try:
10 +            res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read())
11 +        except:
12 +            res = None
13          if not res:
14 -            return None
15 +            return os.path.basename(f) # This is good for GLibc, I think, and a
16 +                                       # dep on binutils is big (for live CDs).
17          return res.group(1)
18  
19      if (sys.platform.startswith("freebsd")
20 Only in Python-2.5.1/Lib/ctypes: util.py~
21 Only in Python-2.5.1/Lib/ctypes: util.py.binutils-no-dep