Bug 10976 - Broken openssl-native symlinks
Summary: Broken openssl-native symlinks
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High normal
Target Milestone: 2.3 M3
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-01-26 19:20 UTC by California Sullivan
Modified: 2017-02-09 13:06 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description California Sullivan 2017-01-26 19:20:26 UTC
These three symlinks are broken:

[clsulliv@clsulliv build]$ ls -lah tmp/work/x86_64-linux/openssl-native/1.0.2j-r0/sysroot-destdir/home/clsulliv/yocto/poky/build/tmp/work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/usr/lib/ssl/
total 28K
drwxrwxr-x. 4 clsulliv clsulliv 4.0K Jan 26 10:43 .
drwxr-xr-x. 5 clsulliv clsulliv 4.0K Jan 26 10:43 ..
lrwxrwxrwx. 2 clsulliv clsulliv   98 Jan 26 10:43 certs -> ./../../../../../../work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/etc/ssl/certs
drwxrwxr-x. 2 clsulliv clsulliv 4.0K Jan 26 10:43 engines
drwxrwxr-x. 2 clsulliv clsulliv 4.0K Jan 26 10:43 misc
lrwxrwxrwx. 2 clsulliv clsulliv  104 Jan 26 10:43 openssl.cnf -> ./../../../../../../work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/etc/ssl/openssl.cnf
lrwxrwxrwx. 2 clsulliv clsulliv  100 Jan 26 10:43 private -> ./../../../../../../work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/etc/ssl/private

It looks like they need to point two directories higher. The following works, for example:

./../../../../../../../../work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/etc/ssl/openssl.cnf
Comment 1 Jussi Kukkonen 2017-01-27 08:26:53 UTC
Is there functionality that is missing or did you just notice the links being broken?
Comment 2 California Sullivan 2017-01-27 17:59:30 UTC
Yes, I'm working with a project that uses openssl and looks one of those files. I end up getting the following error:

| WARNING: can't open config file: /home/clsulliv/yocto/poky/build/tmp/work/corei7-64-poky-linux/shim/0.8-r0/recipe-sysroot-native/usr/lib/ssl/openssl.cnf
| Unable to load config info from /home/clsulliv/yocto/poky/build/tmp/work/corei7-64-poky-linux/shim/0.8-r0/recipe-sysroot-native/usr/lib/ssl/openssl.cnf
Comment 3 Jussi Kukkonen 2017-02-08 09:20:57 UTC
Current status:

* I sent a patch that kept the current approach and just fixed the immediate issue (see "Fix make_relative_symlink() for RSS" on mailing list)

* Richard wrote a WIP patch of his own which expects recipes (that need relative symlinks in sysroots) to inherit relative_symlinks.bbclass, this is in poky-contrib "rpurdie/wip-rss" branch, see http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip-rss&id=66fd96de606622aab76e9490e5ef158d50f3c8a9

* I've run a world build with the above branch and the sysroot symlinks all seem correct to me now. I did not find any other recipes needing the class than openssl, bzip2 and fontconfig that are already handled in the branch. I do not understand the gcc-cross related parts though.


Reassigning to RP as I don't know if there's anything more I can do: Let me know if there is.
Comment 4 Richard Purdie 2017-02-09 13:06:38 UTC
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=23d9886aae0296de363545ad7a229722ed83e708

(following patch makes sstate error for absolute symlinks too)