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

Diankun Zhang kundy.zhang at gmail.com
Thu Jul 20 08:21:51 UTC 2017


Hello Thomas,

According to HOST_PYTHON_CONF_OPTS defined in python.mk, --disable-hashlib
is not specified.
That means _hashlib should be enabled by default, right?

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

> Hello,
>
> On Thu, 20 Jul 2017 15:33:17 +0800, Diankun Zhang wrote:
>
> > The python buildin module _hashlib has dependency on library
> > libcrypto.so to provide the SHA-224, SHA-256, SHA-384, SHA-512
> > hash algorithms in addition to platform optimized versions
> > of MD5 and SHA1. Adding host package dependency on host-openssl
> > to support the building of _hashlib module for host-python.
> >
> > Signed-off-by: Diankun Zhang <kundy.zhang at gmail.com>
>
> Why do you need the _hashlib module in the host-python ?
>
> Indeed, we try to avoid adding too many dependencies, and adding a new
> dependency to host-python is going to increase the build time to a
> large number of people who don't necessarily need the _hashlib module
> in the host Python interpreter.
>
> So could you explain why this is needed ?
>
> 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/5934de83/attachment.html>


More information about the buildroot mailing list