[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak

Pavel Machyniak added the comment:

This is the proposed patch (compared 2 trees src & upd where src is latest 
release 3.4.1, upd is my working). Changes are in: configure, setup.py. Please 
review it and hopefully integrate to future releases.

--
keywords: +patch
versions: +Python 3.4 -Python 3.5
Added file: http://bugs.python.org/file35304/issue21541-patch.diff

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



[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak

New submission from Pavel Machyniak:

There is no easy way to build python with custom openssl build. This can lead 
to miscellaneous problems (like segmentation faults) in various 
situations/configurations (see eg. 
http://stackoverflow.com/questions/22409092/coredump-when-compiling-python-with-a-custom-openssl-version).
 The problems usually arise when different version of openssl headers and libs 
are used, or when different versions of openssl is required within one process 
(eg. using python within apache httpd process (mod_wsgi or mod_python) + some 
other module that uses explicitly updated/newer/incompatible version of 
openssl).

The best way to workaround this problem would be to have the clear way how to 
build python with specific openssl version. The best way would by to use 
configure options --with-ssl=PATH optionally with --with-ssl-includes=PATH and 
--with-ssl-libs=PATH. In this case, setup.py shall not search for openssl but 
shall use the explicitly specified one.

I will shortly provide the patch for the current version of configure and 
setup.py.

See related issues:
 - http://bugs.python.org/issue5575
 - http://bugs.python.org/issue16660

--
components: Build
messages: 218844
nosy: machyniak
priority: normal
severity: normal
status: open
title: Provide configure option --with-ssl for compilation with custom openssl
type: enhancement
versions: Python 3.5

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



[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2014-05-20 Thread Pavel Machyniak

Pavel Machyniak added the comment:

Unfortunately this patch will not work if there is other (system) openssl 
installed in the default locations (`/usr/include`, `/usr/lib`) because this 
patch only add another path at the end of the search list.

Instead of this  I will make a ticket for providing configuration option for 
controlling the `openssl` (`--with-ssl=PATH`) and I will propose the solution 
(patch for current `configure` and `setup.py`). This way the user can 
explicitly provide the path for `openssl` and there is no need to search for 
one.

I think it is important to fix this because there is a lot of people having 
problem compiling `python` with custom `openssl`, eg.: 
[http://stackoverflow.com/questions/22409092/coredump-when-compiling-python-with-a-custom-openssl-version]

--
nosy: +machyniak

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