<?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>14083</bug_id>
          
          <creation_ts>2020-10-10 22:47:54 +0000</creation_ts>
          <short_desc>[openssl-bin] missing runtime dependency to perl due to c_rehash</short_desc>
          <delta_ts>2020-11-25 04:56:49 +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>unspecified</version>
          <rep_platform>All</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>minor</bug_severity>
          <target_milestone>3.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Federico">fede</reporter>
          <assigned_to name="Federico">fede</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>88365</commentid>
    <comment_count>0</comment_count>
    <who name="Federico">fede</who>
    <bug_when>2020-10-10 22:47:54 +0000</bug_when>
    <thetext>openssl-bin does not depend at runtime with perl:

RDEPENDS_${PN}-bin += &quot;openssl-conf&quot;

(just the ptest do), but it contains a perl script inside, namely c_rehash:

https://github.com/openssl/openssl/blob/master/tools/c_rehash.in

I believe it should either RDEPEND on perl as well, or c_rehash not be shipped or if we don&apos;t want to introduce this heavy dependency we could be split c_rehash in a separate package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88366</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-11 10:06:51 +0000</bug_when>
    <thetext>Looks like rehash has had a chequered history, there was a shell version for a while:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=15f2cefac48f0e1d8f0e921b858df2355da5bbcd

We should perhaps move rehash back to ${PN}-misc and add the perl dependency there? Could you send a patch please to do that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88399</commentid>
    <comment_count>2</comment_count>
    <who name="Federico">fede</who>
    <bug_when>2020-10-15 20:35:53 +0000</bug_when>
    <thetext>Thanks for the pointers Richard! And sorry for the late response was waiting (still indeed ;-) ) for the git access after requesting as per docs.

In the meantime here below is the patch that should fix it (tested on my system successfully):




openssl: Add c_rehash to misc package and add perl runtime dependency
c_rehash implemented in perl is back (in history was moved to shell for
some time), so handle it inside the -misc package so just that one will
carry the heavy runtime dependency on perl

Signed-off-by: Federico Pellegrin &lt;fede@evolware.org&gt;

diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1g.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1g.bb
index 815955837b..66d8851426 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1g.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1g.bb
@@ -195,13 +195,14 @@ FILES_openssl-conf = &quot;${sysconfdir}/ssl/openssl.cnf \
                       ${libdir}/ssl-1.1/openssl.cnf* \
                       &quot;
 FILES_${PN}-engines = &quot;${libdir}/engines-1.1&quot;
-FILES_${PN}-misc = &quot;${libdir}/ssl-1.1/misc&quot;
+FILES_${PN}-misc = &quot;${libdir}/ssl-1.1/misc ${bindir}/c_rehash&quot;
 FILES_${PN} =+ &quot;${libdir}/ssl-1.1/*&quot;
 FILES_${PN}_append_class-nativesdk = &quot; ${SDKPATHNATIVE}/environment-setup.d/openssl.sh&quot;
 
 CONFFILES_openssl-conf = &quot;${sysconfdir}/ssl/openssl.cnf&quot;
 
 RRECOMMENDS_libcrypto += &quot;openssl-conf&quot;
+RDEPENDS_${PN}-misc = &quot;perl&quot;
 RDEPENDS_${PN}-ptest += &quot;openssl-bin perl perl-modules bash&quot;
 
 RDEPENDS_${PN}-bin += &quot;openssl-conf&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88442</commentid>
    <comment_count>3</comment_count>
    <who name="Federico">fede</who>
    <bug_when>2020-10-20 20:25:47 +0000</bug_when>
    <thetext>Created fix in https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=fedepell/bug14083 and posted to mailing list (hopefully the right one) the pull request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88578</commentid>
    <comment_count>4</comment_count>
    <who name="Federico">fede</who>
    <bug_when>2020-11-08 21:32:19 +0000</bug_when>
    <thetext>Just pinging, wondering if I didn&apos;t follow the right procedure to submit a PR (created in git branch, sent request in mailing list, added here a comment and so on) or just in queue to be processed.

Thanks!
F.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>