[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2017-01-28 Thread Martin Panter

Martin Panter added the comment:

There is an Open Indiana buildbot 
, that was passing 
test_ctypes (until the buildbot went offline a few weeks ago). Would it be 
possible to include a regression test case?

Also, in , John said that 
/usr/ccs/bin is a symbolic link to /usr/bin/, so I wonder if this really is a 
problem. Perhaps the symlink does not exist on some OS versions?

Regarding an environment variable for library searching, perhaps that is 
related to Issue 9998 (searched LD_LIBRARY_PATH env. var. on Linux). See also 
Issue 19317, discussing RPATH fom sys.executable.

--
nosy: +martin.panter
stage:  -> patch review
versions: +Python 3.6, Python 3.7 -Python 3.1, Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-05-26 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20664
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-05-25 Thread Jeff Quast

Changes by Jeff Quast cont...@jeffquast.com:


Added file: http://bugs.python.org/file35363/opensolaris-ctypes-python-3.x.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20664
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-05-25 Thread Jeff Quast

Jeff Quast added the comment:

Submitting fix to fallback to alternate '/usr/bin/dump' path, confirmed using 
SmartOS.

As for the issues writing to /lib and /usr/lib from a zone, and the request for 
An environment variable .. to override this functionality. I have to 
disagree: crle(1) already provides facilities to add additional paths.

For example, to add `/usr/local/lib' to your dynamic library path, You would 
simply run, `crle -l /usr/local/lib -u'.

I don't *that* belongs in python.

--
keywords: +patch
nosy: +jquast
Added file: http://bugs.python.org/file35362/opensolaris-ctypes-python-2.7.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20664
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-02-17 Thread Ryan Gordon

New submission from Ryan Gordon:

On SunOS 5.11, both the _findLib_crle and _get_soname are broken.

With _findLib_crle, the function returns the following:

# env LC_ALL=C /usr/bin/crle -64

Default configuration file (/var/ld/64/ld.config) not found
  Platform: 64-bit LSB AMD64
  Default Library Path (ELF):   /lib/64:/usr/lib/64  (system default)
  Trusted Directories (ELF):/lib/secure/64:/usr/lib/secure/64  (system 
default)

# env LC_ALL=C /usr/bin/crle

Configuration file [version 4]: /var/ld/ld.config  
  Platform: 32-bit LSB 80386
  Default Library Path (ELF):   /lib:/usr/lib
  Trusted Directories (ELF):/lib/secure:/usr/lib/secure  (system default)

Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/lib

The Default Library Path (ELF):   /lib:/usr/lib is extracted to 
/lib:/usr/lib and only those two paths are checked for the library in 
question. Unfortunately this means that there is absolutely no way to configure 
any environment variable to check on other paths and both /lib and /usr/lib are 
read-only directories mounted from the global zone:

[ /usr/lib] # touch test.txt
touch: cannot touch `test': Read-only file system
[ /lib] # touch test.txt
touch: cannot touch `test': Read-only file system

An environment variable should be read in that can be configured to override 
this functionality.

The second issue with _get_soname is that is calls /usr/ccs/bin/dump which 
doesn't exist at all: (/usr/ccs/bin/ is an old deprecated directory which has 
since been removed)

# ll /usr/ccs/bin/dump
ls: cannot access /usr/ccs/bin/dump: No such file or directory

--
components: ctypes
messages: 211438
nosy: rygorde4
priority: normal
severity: normal
status: open
title: _findLib_crle and _get_soname broken on latest SunOS 5.11
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20664
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com