Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9078d1ee
Commit
9078d1ee
authored
Sep 14, 2007
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; backported from trunk.
parent
4f2b926a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
+24
-9
Lib/ctypes/util.py
Lib/ctypes/util.py
+21
-9
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ctypes/util.py
View file @
9078d1ee
...
...
@@ -66,15 +66,27 @@ elif os.name == "posix":
return
None
return
res
.
group
(
0
)
def
_get_soname
(
f
):
# assuming GNU binutils / ELF
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())
if not res:
return None
return res.group(1)
if
sys
.
platform
==
"sunos5"
:
# use /usr/ccs/bin/dump on solaris
def
_get_soname
(
f
):
if
not
f
:
return
None
cmd
=
"/usr/ccs/bin/dump -Lpv 2>/dev/null "
+
f
res
=
re
.
search
(
r'\
[.*
\]\
sSONAME
\s+([^\
s]+)
', os.popen(cmd).read())
if not res:
return None
return res.group(1)
else:
def _get_soname(f):
# assuming GNU binutils / ELF
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())
if not res:
return None
return res.group(1)
if (sys.platform.startswith("freebsd")
or sys.platform.startswith("openbsd")
...
...
Misc/NEWS
View file @
9078d1ee
...
...
@@ -32,6 +32,9 @@ Core and builtins
Library
-------
- Bug #1777530: ctypes.util.find_library uses dump(1) instead of
objdump(1) on Solaris.
- Bug #1153: repr.repr() now doesn'
t
require
set
and
dictionary
items
to
be
orderable
to
properly
represent
them
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment