<?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>13065</bug_id>
          
          <creation_ts>2018-12-06 15:51:12 +0000</creation_ts>
          <short_desc>PREFERRED_VERSION_openssl in local.conf is ignored</short_desc>
          <delta_ts>2018-12-20 16:11:54 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.4.5</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.5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jean-christophe.gillet</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>akuster</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>82422</commentid>
    <comment_count>0</comment_count>
    <who name="">jean-christophe.gillet</who>
    <bug_when>2018-12-06 15:51:12 +0000</bug_when>
    <thetext>Hi

I use poky version tagged &quot;rocko-18.0.3&quot;
In this version 2 openssl recipes exist. 
poky/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb and
poky/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb

and the default preferred version is 1.0.%

However when I want to change version to a more recent version 1.1.0h instead of 1.0.2o in local.conf file using variable PREFERRED_VERSION_openssl, 
PREFERRED_VERSION_openssl = &quot;1.1.%&quot;
PREFERRED_VERSION_openssl-native = &quot;1.1.%&quot;
PREFERRED_VERSION_nativesdk-openssl = &quot;1.1.%&quot;

I can&apos;t and I have the error message
ERROR: Multiple versions of openssl are due to be built (xxxx/poky/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb xxxx/poky/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb). Only one version of a given PN should be built in any given build. You likely need to set PREFERRED_VERSION_openssl to select the correct version or don&apos;t depend on multiple versions.

It is because in poky/meta/conf/distro/include/default-versions.inc, variables relative to openssl are not set as default value

currently in rocko, sumo and thud branches (resp xxx-next branches), you have
PREFERRED_VERSION_openssl = &quot;1.0.%&quot;
PREFERRED_VERSION_openssl-native = &quot;1.0.%&quot;
PREFERRED_VERSION_nativesdk-openssl = &quot;1.0.%&quot;

To fix this issue, I replaced &quot;=&quot; by &quot;?=&quot; in poky/meta/conf/distro/include/default-versions.inc as below
PREFERRED_VERSION_openssl ?= &quot;1.0.%&quot;
PREFERRED_VERSION_openssl-native ?= &quot;1.0.%&quot;
PREFERRED_VERSION_nativesdk-openssl ?= &quot;1.0.%&quot;

Best regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82426</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-12-06 16:22:12 +0000</bug_when>
    <thetext>with backports</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82428</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-12-06 16:56:41 +0000</bug_when>
    <thetext>Doesn&apos;t apply to Thud/master as they don&apos;t set PREFERRED_VERSION_openssl.  Queued in sumo-next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82553</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-12-20 16:11:54 +0000</bug_when>
    <thetext>Merged in sumo c9786adf81434e2d58247f55cf80fdd3131121e7.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>