Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5cf6ef84
Kaydet (Commit)
5cf6ef84
authored
Eyl 14, 2007
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; backported from trunk.
üst
3af42207
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
+24
-9
util.py
Lib/ctypes/util.py
+21
-9
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ctypes/util.py
Dosyayı görüntüle @
5cf6ef84
...
...
@@ -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
Dosyayı görüntüle @
5cf6ef84
...
...
@@ -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