[Buildroot] [PATCH 1/1] package/python: fix building _hashlib of host-python

Diankun Zhang kundy.zhang at gmail.com
Thu Jul 20 09:09:52 UTC 2017


Hello Thomas,

I'm cross-compiling host-python on my x86_64 box on which ubuntu 16.04
installed.
libssl is installed whereas openssl is not installed on my box. When
cross-compiling
host-python, I found _hashlib.so is not compiled whereas _md5.so,
_sha256.so, _sha512.so
and _md5.so are compiled. I think -disable-hashlib will not decrease the
build time and
the size of the host-python artifacts.

As for the hash lib use case, i am integrating a third-party python tool
pyang
(https://github.com/mbj4668/pyang) into our project. The pyang tool will
take advantage of python
_hashlib module.

On Thu, Jul 20, 2017 at 4:27 PM, Thomas Petazzoni <
thomas.petazzoni at free-electrons.com> wrote:

> Hello,
>
> On Thu, 20 Jul 2017 16:21:51 +0800, Diankun Zhang wrote:
>
> > According to HOST_PYTHON_CONF_OPTS defined in python.mk,
> --disable-hashlib
> > is not specified.
> > That means _hashlib should be enabled by default, right?
>
> Well, no, not necessarily. We simply forgot to add --disable-hashlib.
>
> Again: why do you need this? If you could answer this question it would
> make the discussion a lot more productive :-)
>
> It is very possible that there are legitimate use cases for having
> the hashlib module built in the host Python interpreter. If we
> understand those use cases, then we can come up with a solution. But if
> you keep being silent about the *why* you need this, we won't move very
> far.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>



-- 
-Diankun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170720/eef0bd84/attachment.html>


More information about the buildroot mailing list