X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fpython-2.5.1-binutils-no-dep.patch;fp=python%2Fpython-2.5.1-binutils-no-dep.patch;h=7880eb6e546b9f7a6a316691d579b8ec73b17645;hb=63a2fa13b135c765210e7331113a9bcd99949b3b;hp=0000000000000000000000000000000000000000;hpb=bce5b966788b7d38e7235291e155272f1dc42d6a;p=fedora-mingw.git diff --git a/python/python-2.5.1-binutils-no-dep.patch b/python/python-2.5.1-binutils-no-dep.patch new file mode 100644 index 0000000..7880eb6 --- /dev/null +++ b/python/python-2.5.1-binutils-no-dep.patch @@ -0,0 +1,21 @@ +diff -rup Python-2.5.1-orig/Lib/ctypes/util.py Python-2.5.1/Lib/ctypes/util.py +--- Python-2.5.1-orig/Lib/ctypes/util.py 2007-01-17 14:53:24.000000000 -0500 ++++ Python-2.5.1/Lib/ctypes/util.py 2007-10-24 11:06:12.000000000 -0400 +@@ -71,9 +71,13 @@ elif os.name == "posix": + if not f: + return None + cmd = "objdump -p -j .dynamic 2>/dev/null " + f +- res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read()) ++ try: ++ res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read()) ++ except: ++ res = None + if not res: +- return None ++ return os.path.basename(f) # This is good for GLibc, I think, and a ++ # dep on binutils is big (for live CDs). + return res.group(1) + + if (sys.platform.startswith("freebsd") +Only in Python-2.5.1/Lib/ctypes: util.py~ +Only in Python-2.5.1/Lib/ctypes: util.py.binutils-no-dep