[New-bugs-announce] [issue23287] ctypes.util.find_library needlessly call crle on Solaris

John Beck report at bugs.python.org
Wed Jan 21 01:33:02 CET 2015

New submission from John Beck:

On Solaris, in Lib/ctypes/util.py, we have code that looks for
/usr/bin/crle and calls it to parse its output to try to determine
the Default Library Path.  This code broke recently (Solaris 12 build
65), as it expects to find a line starting with
    "Default Library Path (ELF):"
but the " (ELF)" part of that line was removed because it was no longer
needed.  So we need a change here regardless.  But it turns out that
calling crle is not needed at all because the default library path is
a constant on Solaris: "/lib/64:/usr/lib/64" in 64-bit mode and
"/lib:/usr/lib" in 32-bit mode.  Thus I offer the attached patch
for both 2.7 and 3.4.

components: ctypes
files: crle-fix.patch
keywords: patch
messages: 234417
nosy: jbeck
priority: normal
severity: normal
status: open
title: ctypes.util.find_library needlessly call crle on Solaris
type: resource usage
versions: Python 2.7, Python 3.4
Added file: http://bugs.python.org/file37800/crle-fix.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list