Projects
Eulaceura:Factory
python2
_service:obs_scm:00010-2.7.13-binutils-no-dep.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:00010-2.7.13-binutils-no-dep.patch of Package python2
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index ab10ec5..923d1b7 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -140,11 +140,15 @@ elif os.name == "posix": # assuming GNU binutils / ELF if not f: return None - cmd = 'if ! type objdump >/dev/null 2>&1; then exit; fi;' \ + cmd = 'if ! type objdump >/dev/null 2>&1; then exit 10; fi;' \ 'objdump -p -j .dynamic 2>/dev/null "$1"' proc = subprocess.Popen((cmd, '_get_soname', f), shell=True, stdout=subprocess.PIPE) [dump, _] = proc.communicate() + if proc.returncode == 10: + return os.path.basename(f) # This is good for GLibc, I think, + # and a dep on binutils is big (for + # live CDs). res = re.search(br'\sSONAME\s+([^\s]+)', dump) if not res: return None
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2