Bug 6827 - openssl-native: not relocatable via sstate
Summary: openssl-native: not relocatable via sstate
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-10-13 10:33 UTC by André Draszik
Modified: 2015-01-20 17:10 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
preliminary patch (1.32 KB, patch)
2014-10-13 11:12 UTC, André Draszik
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description André Draszik 2014-10-13 10:33:04 UTC
The openssl binaries libcrypto.so and libssl.so contain contain absolute paths for OPENSSLDIR (which contains the config and certificates, etc.)

Hence they are not relocatable via sstate.

While a wrapper script could be created (using utils.bbclass create_wrapper) for usr/bin/openssl, this wrapper would not solve the problem if an application is linked against libcrypto.so or libssl.so directly.
Comment 1 André Draszik 2014-10-13 11:12:53 UTC
Created attachment 2180 [details]
preliminary patch
Comment 2 Saul Wold 2015-01-20 17:10:53 UTC
Thanks to Andre, the report for this patch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5e2bf794c712eff012e39dab54fe3861ebc1185d