Bug 6827

Summary: openssl-native: not relocatable via sstate
Product: [Build System, Metadata & Runtime] OE-Core Reporter: André Draszik <byo>
Component: connectivityAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.8   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
preliminary patch none

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