<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10976</bug_id>
          
          <creation_ts>2017-01-26 19:20:26 +0000</creation_ts>
          <short_desc>Broken openssl-native symlinks</short_desc>
          <delta_ts>2017-02-09 13:06:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="California Sullivan">california.l.sullivan</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>california.l.sullivan</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>patrick.ohly</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70199</commentid>
    <comment_count>0</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-01-26 19:20:26 +0000</bug_when>
    <thetext>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 -&gt; ./../../../../../../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 -&gt; ./../../../../../../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 -&gt; ./../../../../../../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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70222</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-01-27 08:26:53 +0000</bug_when>
    <thetext>Is there functionality that is missing or did you just notice the links being broken?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70231</commentid>
    <comment_count>2</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-01-27 17:59:30 +0000</bug_when>
    <thetext>Yes, I&apos;m working with a project that uses openssl and looks one of those files. I end up getting the following error:

| WARNING: can&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70533</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-02-08 09:20:57 +0000</bug_when>
    <thetext>Current status:

* I sent a patch that kept the current approach and just fixed the immediate issue (see &quot;Fix make_relative_symlink() for RSS&quot; 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 &quot;rpurdie/wip-rss&quot; branch, see http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip-rss&amp;id=66fd96de606622aab76e9490e5ef158d50f3c8a9

* I&apos;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&apos;t know if there&apos;s anything more I can do: Let me know if there is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70579</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-02-09 13:06:38 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=23d9886aae0296de363545ad7a229722ed83e708

(following patch makes sstate error for absolute symlinks too)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>