Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/python: fix building _hashlib of host-python
Date: Thu, 20 Jul 2017 11:19:13 +0200	[thread overview]
Message-ID: <20170720111913.0d9c9c77@windsurf> (raw)
In-Reply-To: <CAO6UsjAcBxW=sxOtPyGAY823uNk8QuZFSTjxGMqEMaVMbvg1uQ@mail.gmail.com>

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

  reply	other threads:[~2017-07-20  9:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  7:33 [Buildroot] [PATCH 1/1] package/python: fix building _hashlib of host-python Diankun Zhang
2017-07-20  7:56 ` Thomas Petazzoni
2017-07-20  8:21   ` Diankun Zhang
2017-07-20  8:27     ` Thomas Petazzoni
2017-07-20  9:09       ` Diankun Zhang
2017-07-20  9:19         ` Thomas Petazzoni [this message]
2017-07-20 10:59           ` Diankun Zhang
2017-07-20 11:09             ` Thomas Petazzoni
2017-07-20 11:20               ` Diankun Zhang
2017-07-20 11:24                 ` Thomas Petazzoni
2017-07-20 11:39                   ` Diankun Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170720111913.0d9c9c77@windsurf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox