mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: jdwilson <jdwilson.rfc@gmail.com>
Subject: Re: [ptxdist] ptxdist-2012.03.00 python2.6, hashlib.py, 	flup.py install fails ImportError: No module named _sha256
Date: Fri, 14 Mar 2014 09:28:58 +0100	[thread overview]
Message-ID: <201403140928.58580.jbe@pengutronix.de> (raw)
In-Reply-To: <loom.20140313T224423-28@post.gmane.org>

Hi,

On Thursday 13 March 2014 23:45:30 jdwilson wrote:
> I have figured out what the issue is.  The default options to build openssl
> for the *build-host* need to be set so that at least no-ssl2 is defined,
> and possibly "shared".  I think the latter is needed because python may be
> looking for the dynamic lib.  The default openssl build only produces the
> static libs.
>
> Background: In a sandbox rootfs under Linux 12.04LTS I installed openssl
> and found that both _hashlib and _ssl were not included in the libcrypt.a
> or ssl.a modules.  After I ran through ./configure's options, I added
> "shared" and "no-ssl2" to the ./configure command line, (as well as
> specifying my sandbox env using --prefix).  Disabling ssl2 resolves the
> issue/bug with ssl2 (SSLv2_method), which can be addressed later.

If you need to add the "--shared" and the "--no-ssl2" config parameter, add it 
to the HOST_OPENSSL_CONF_OPT variable in "rules/host-openssl.make".

> Having hashlib and ssl available will keep the "from hashlib import md5"
> from failing when flup.py is installed (see original posting).
>
> Right now I'm trying to work through the ptxdist guru doc to understand how
> to properly modify the host-openssl.in,.make so that I can define the
> options to build the host-openssl correctly.
>
> More specifically, I can't find documentation as to how to enable
> "PTXCONF_HOST_OPENSSL" in menuconfig (other than manually editing the
> ptxconfig file)

Add it to the *.in package menu file which depends on HOST_OPENSSL

config MY_PACKAGE_WHICH_DEPENDS_ON_HOST_OPENSSL
	tristate
	prompt "my package which depends on host openssl"
	select HOST_OPENSSL <-----------
        help
	  friesel, frasel,....

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2014-03-14  8:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-11 22:39 jdwilson
2014-03-12  8:53 ` Juergen Beisert
2014-03-13 22:45   ` jdwilson
2014-03-14  8:28     ` Juergen Beisert [this message]

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=201403140928.58580.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=jdwilson.rfc@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /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