From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 4D2C373C52 for ; Thu, 26 Mar 2015 00:37:52 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id t2Q0brwE004318 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 25 Mar 2015 17:37:53 -0700 (PDT) Received: from tal.localnet (128.224.21.80) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.224.2; Wed, 25 Mar 2015 17:37:53 -0700 From: Mark Asselstine To: "Burton, Ross" Date: Wed, 25 Mar 2015 20:37:51 -0400 Message-ID: <2276651.XvdEfp8ivO@tal> Organization: Wind River User-Agent: KMail/4.13.3 (Linux/3.13.0-45-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: References: <1427300914-11208-1-git-send-email-mark.asselstine@windriver.com> MIME-Version: 1.0 Cc: OE-core Subject: Re: [PATCH] openssl: add a vardeps for configure on libdir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2015 00:37:53 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On March 25, 2015 20:44:57 Burton, Ross wrote: > On 25 March 2015 at 16:28, Mark Asselstine > > 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