#8152: Python needs to search /usr/sfw/lib on Solaris for OpenSSL libraries.
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.2
Component: solaris | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Sage currently depends on OpenSSL to build the haslib module in Python.
OpenSSL is not distributed with Sage due to license issues. However, the
GPL allows us to link to the libraries if they are part of the core
operating system, such as the kernel or compilers. (Someone could argue
OpenSSL is not part of the core operating system, so even if it comes with
the operating system, we can't use it. However, that is another issue.)
The OpenSSL libraries are installed on Solaris 10 in /usr/sfw/lib. The
problem is, python does not currently look there for the libraries. I've
submitted an enhancement request to the Python bug database.
http://bugs.python.org/issue7836
that they add that directory to the list of directories searched.
Until this gets fixed, I believe we should add the directory /usr/sfw/lib
to the top-level setup.py. Then Sage should build on Solaris 10 (but not
OpenSolaris) without installation of any OpenSSL libraries.
There is no point making this patch operating system specific, as the code
in python is only a search path:
{{{
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
['/usr/local/ssl/lib',
'/usr/contrib/ssl/lib/'
] )
}}}
I'm not sure if we need to know the location of the include directories,
but they are in /usr/src/include/openssl. There is again similar code in
setup.py to search for the include files:
{{{
# Detect SSL support for the socket module (via _ssl)
search_for_ssl_incs_in = [
'/usr/local/ssl/include',
'/usr/contrib/ssl/include/'
]
}}}
Any comments, before I go to the trouble of making a patch, which just
appends the search path for the OpenSSL directories? Does this seem a
reasonable thing to do?
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8152>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.