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

Diankun Zhang kundy.zhang at gmail.com
Thu Jul 20 10:59:31 UTC 2017


Hello Thomas,

>From https://packages.ubuntu.com/xenial/amd64/openssl/filelist, we can see
the openssl package  on ubuntu 16.04 does not cotain the libssl or
licrypto.so,
instead they are in package libssl1.0.0,
https://packages.ubuntu.com/xenial/amd64/libssl1.0.0/filelist.

In most of systems nowadays, openssl (and libssl ) is installed since the
hash algorithms
are needed to meet kinds of requirements.

Yes, I'm using the pyang tool on my host to compile some YANG files. The
compiled YANG
files are platform independent ideally.

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

> Hello,
>
> On Thu, 20 Jul 2017 17:09:52 +0800, Diankun Zhang wrote:
>
> > I'm cross-compiling host-python on my x86_64 box on which ubuntu 16.04
>
> You are not cross-compiling host-python. host-python is a host package,
> so it is natively compiled.
>
> > installed.
> > libssl is installed whereas openssl is not installed on my box. When
>
> In Ubuntu 16.04, the package is named libssl, but it's actually
> OpenSSL, see https://packages.ubuntu.com/xenial/libssl1.0.0. Its source
> package is "openssl".
>
> > 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.
>
> --disable-hashlib will make sure that our host-python build is more
> reproducible. Instead of having _hashlib built when libssl-dev is
> installed on the host machine, and _hashlib not built otherwise, it
> will consistently not build _hashlib, which is what we want.
>
> > 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.
>
> It pyang meant to be run on the host or on the target ? From a quick
> look, it seems like something that runs on the host indeed. If that's
> the case, then we will really need to start adding hidden options for
> host packages, so that other host packages can request hashlib support
> from host-python, without forcing everyone to build this.
>
> Best regards,
>
> 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/7d436c9b/attachment.html>


More information about the buildroot mailing list