Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Asselstine <mark.asselstine@windriver.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] openssl: add a vardeps for configure on libdir
Date: Wed, 25 Mar 2015 20:37:51 -0400	[thread overview]
Message-ID: <2276651.XvdEfp8ivO@tal> (raw)
In-Reply-To: <CAJTo0LbqKtrxavRkmi=hxQAPGvGPzrwK-AJGnqDybSHup_puZw@mail.gmail.com>

On March 25, 2015 20:44:57 Burton, Ross wrote:
> On 25 March 2015 at 16:28, Mark Asselstine <mark.asselstine@windriver.com>
> 
> wrote:
> > For target builds libdir is not something that changes and for -native
> > builds unless you move your builds around you will see no issue with
> > the current implementation. If you do update libdir or if you move
> > your build or reuse sstate by copying it to a new build you will start
> > to see errors. These will be seen when you use the 'openssl' tool and
> > look like the following:
> > 
> > WARNING: can't open config file: /home/build/bitbake_build/tmp/
> > 
> >                         sysroots/x86_64-linux/usr/lib/ssl/openssl.cnf
> 
> We don't generally require that native sstate is rebuilt when the build
> directory changes, as otherwise you wouldn't be able to share native sstate
> between builds and users.  Instead, paths are munged where possible when
> using sstate and wrapper scripts used to "fix" binaries.  Indeed
> openssl.inc does this:
> 
> do_install_append_virtclass-native() {
>         create_wrapper ${D}${bindir}/openssl \
>             OPENSSL_CONF=${libdir}/ssl/openssl.cnf \
>             SSL_CERT_DIR=${libdir}/ssl/certs \
>             SSL_CERT_FILE=${libdir}/ssl/cert.pem \
>             OPENSSL_ENGINES=${libdir}/ssl/engines
> }
> 
> Is it possible that the binary isn't respecting the OPENSSL_CONF
> environment variable since that wrapper was written? (or the wrapper wasn't
> tested well enough)

Interesting. Thanks for the heads up Ross I can definitely look at the wrapper 
for possible issues.

Mark

> 
> Ross



  reply	other threads:[~2015-03-26  0:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-25 16:28 [PATCH] openssl: add a vardeps for configure on libdir Mark Asselstine
2015-03-25 17:34 ` Christopher Larson
2015-03-25 19:28   ` Mark Asselstine
2015-03-25 20:35     ` Christopher Larson
2015-03-26  0:33       ` Mark Asselstine
2015-03-25 20:44 ` Burton, Ross
2015-03-26  0:37   ` Mark Asselstine [this message]
2015-03-26  2:07     ` Mark Asselstine

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=2276651.XvdEfp8ivO@tal \
    --to=mark.asselstine@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /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