<?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>11296</bug_id>
          
          <creation_ts>2017-04-04 23:39:06 +0000</creation_ts>
          <short_desc>openssl.cnf not in expected location for openssl-native</short_desc>
          <delta_ts>2017-04-19 12:51:18 +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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="California Sullivan">california.l.sullivan</reporter>
          <assigned_to name="Jussi Kukkonen">jku</assigned_to>
          <cc>california.l.sullivan</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>72093</commentid>
    <comment_count>0</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-04-04 23:39:06 +0000</bug_when>
    <thetext>I&apos;m working on a recipe that uses openssl&apos;s key generation, and get the following error:

| WARNING: can&apos;t open config file: &lt;snip&gt;/recipe-sysroot-native/usr/bin/../../usr/lib/ssl/openssl.cnf
| Unable to load config info from &lt;snip&gt;/recipe-sysroot-native/usr/bin/../../usr/lib/ssl/openssl.cnf

[clsulliv@clsulliv 1.00-r0]$ ls recipe-sysroot-native/usr/bin/../../usr/lib/ssl/
certs  engines  misc  private

The symlink to openssl.cnf doesn&apos;t exist anymore.

It seems to be caused by patch  991620f3 &quot;openssl: Fix symlink creation&quot;.

I was able to fix it locally by adding an openssl bbappend that does the following, but I doubt its the right solution:

do_install_append_class-native() {
        ln -sf ${sysconfdir}/ssl/openssl.cnf ${D}${libdir}/ssl/openssl.cnf
}

pkg_postinst_openssl-conf_class-native () {

}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72579</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-04-18 10:10:19 +0000</bug_when>
    <thetext>I&apos;ve sent a revert of 991620f3962a to list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72654</commentid>
    <comment_count>2</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-04-19 12:51:18 +0000</bug_when>
    <thetext>commit 7fe30a5df4ad25275492f241a69553693af1fd3f
Author: Jussi Kukkonen &lt;jussi.kukkonen@intel.com&gt;
Date:   Tue Apr 18 13:08:43 2017 +0300

    Revert &quot;openssl: Fix symlink creation&quot;
    
    This reverts commit 991620f3962a9917fa99abb5582f4b72ebd42a3d.
    
    The commit breaks openssl-native (you can no longer generate keys
    because it can&apos;t find the configuration file). Also the idea that we
    would install configuration files normally but then add the symlinks
    pointing to them in a postinstall feels wrong.
    
    Fixes [YOCTO #11296]. The bug contains an alternative fix but I&apos;m
    sending a revert as I cannot fully understand the motive of the
    original patch. See also discussion in
    http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135176.html
    
    (From OE-Core rev: b192daef5d1e7f3501c533b92dc75e2d996afc13)
    
    Signed-off-by: Jussi Kukkonen &lt;jussi.kukkonen@intel.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>