<?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>442</bug_id>
          
          <creation_ts>2010-10-12 20:22:43 +0000</creation_ts>
          <short_desc>libtasn1 shared library is miss on the target</short_desc>
          <delta_ts>2010-12-21 06:07:08 +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>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</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>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Qing He">qing.he</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>liping.ke</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>qing.he</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>xianchao.zhang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10403</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-10-12 20:22:43 +0000</bug_when>
    <thetext>Using the builds/milestone branch, target poky-image-sdk, the shared library libtasn1.so.3.1.9 is missing on the target rootfs /usr/lib, however there is a dangling symbolic link libtasn1.so pointing to that inexistent file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10404</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-10-12 20:26:45 +0000</bug_when>
    <thetext>Is it missing from all 4 arches?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10405</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-10-12 20:32:58 +0000</bug_when>
    <thetext>qemumips/qemuarm/qemux86 are verified to have that shared library installed in rootfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10432</commentid>
    <comment_count>3</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-10-13 01:43:25 +0000</bug_when>
    <thetext>atom-pc also missed that libruary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10435</commentid>
    <comment_count>4</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-13 01:50:45 +0000</bug_when>
    <thetext>This is very likely due to the use of rpm_rootfs and debian renaming of shared
libraries.

According to debian renaming rule, the shared library package of libtasn1 (note
the ending digit) is renamed to libtasn1-3, thus the package file is now:
    libtasn1-3-2.7-r0.core2.rpm

It is confirmed that libtasn1-3 is written as dependencies in other libraries,
but when resolve_package() in rootfs_rpm.bbclass runs, this package is not
inclluded.

ipk packaging doesn&apos;t suffer from this issue.

Two options are:
1. let rpm-native handles package names with `-&apos;, but is it even possible?
2. disable debian renaming for libtasn1, just like what libxml2 does:
  python populate_packages_prepend() {
      # autonamer would call this libxml2-2, but we don&apos;t want that
      if bb.data.getVar(&apos;DEBIAN_NAMES&apos;, d, 1):
          bb.data.setVar(&apos;PKG_libxml2&apos;, &apos;libxml2&apos;, d);
  }

Cc Mark Hatle for question 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10444</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-10-13 09:58:04 +0000</bug_when>
    <thetext>RPM allows -&apos;s in the names of packages, so that should not be an issue.

Dependencies are really not handled by package name in RPM.. The name is only one facet of the dependency.  Mostly they are handled by requires and provides on individual files.

I think the key thing is what is the dependency on?  What package is providing the dependency and to trace that.

I suspect the dependency (based on the info below) is to &quot;libtasn1.so&quot; (a file name).  The package provides that file, so the dependency is met.  Instead the dependency should have been on libtasn1.so(VERSION).  This is captured within the SONAMES of the files.  If the libtasn1.so doesn&apos;t have an internal SONAME, then there is no way, other then purely via a filename to find the right file to include it.

---

What is the command line to reproduce the failure condition?  I can attempt to investigate this.

In the mean time, you can follow what was installed on the target and trace that back to the RPM manifest list of what&apos;s to be installed.  That stuff should all be logged as part of the build process.  From there you can use rpm query commands to determine what dependencies were searched for and who the providers were.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10450</commentid>
    <comment_count>6</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-13 17:22:58 +0000</bug_when>
    <thetext>I was debugging it on a different setup with a slightly different phenomenon. It&apos;s sato image instead of sdk, where libtasn1-dev doesn&apos;t get installed, so instead all libtasn1.so* are missing in this case.

I ran &quot;rpm -qi -p libgnutls26... -R&quot;, and saw &quot;libtasn1-3 &gt;= 2.7&quot; in the Requirement list, but not libtasn1.so.3, any hints?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10451</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-10-13 17:40:05 +0000</bug_when>
    <thetext>The issue appears to be this line in the recipe:


RREPLACES_${PN}-bin = &quot;libtasn1 (&lt;&lt; 2.7)&quot;


&quot;&lt;&lt;&quot; has no meaning in RPM.  So the code generated becomes:

Obsoletes: libtasn1-3

So the bin package simply replaces the library package due to this flag.

Does &lt;&lt; have meaning within Poky?  If not, it&apos;s simply a typo and should be corrected.  Otherwise its an un-implemented &quot;feature&quot;.  Once the behavior of &quot;&lt;&lt;&quot; is know, we can fix the RPM translation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10453</commentid>
    <comment_count>8</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-13 17:56:21 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; The issue appears to be this line in the recipe:
&gt; RREPLACES_${PN}-bin = &quot;libtasn1 (&lt;&lt; 2.7)&quot;
&gt; &quot;&lt;&lt;&quot; has no meaning in RPM.  So the code generated becomes:
&gt; Obsoletes: libtasn1-3
&gt; So the bin package simply replaces the library package due to this flag.

That makes sense. I did see libtasn1-bin around.
The intention is to smooth the upgrading as the packaging has changed, the previous package libtasn1 is split to libtasn1 and libtasn1-bin.

&gt; Does &lt;&lt; have meaning within Poky?  If not, it&apos;s simply a typo and should be
&gt; corrected.  Otherwise its an un-implemented &quot;feature&quot;.  Once the behavior of
&gt; &quot;&lt;&lt;&quot; is know, we can fix the RPM translation.

In .deb, &quot;&lt;&lt;&quot; means strict precedence, while &quot;&lt;&quot; has the same meaning of &quot;&lt;=&quot;, it looks misleading at the first glance, possibly due to some historic reason. Not really sure about opkg, but I assumed it inherits similar semantics.

Actually, I don&apos;t think &quot;package upgrading in target&quot; works that well, so how about simply remove that line?

btw, another question:
if libtasn1-bin is to replace libtasn1-3 &lt;= 2.6, while it dependes on libtasn1-3 &gt;= 2.7, does that work with RPM semantics?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10484</commentid>
    <comment_count>9</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-10-14 01:52:28 +0000</bug_when>
    <thetext>&gt;&gt; Does &lt;&lt; have meaning within Poky?  If not, it&apos;s simply a typo and should be
&gt;&gt; corrected.  Otherwise its an un-implemented &quot;feature&quot;.  Once the behavior of
&gt;&gt; &quot;&lt;&lt;&quot; is know, we can fix the RPM translation.

&gt; In .deb, &quot;&lt;&lt;&quot; means strict precedence, while &quot;&lt;&quot; has the same meaning of &quot;&lt;=&quot;,
&gt; it looks misleading at the first glance, possibly due to some historic reason.
&gt; Not really sure about opkg, but I assumed it inherits similar semantics.

In order to use these syntaxes within RPM, we need to find them and translate (or ignore) them in some way.  The &lt;&lt; should at a minimum be caught and filtered out of the system.

&gt; if libtasn1-bin is to replace libtasn1-3 &lt;= 2.6, while it dependes on
&gt; libtasn1-3 &gt;= 2.7, does that work with RPM semantics?

Yes, those sematics will work within RPM.

They seem odd to me that -bin would replace the library package of a previous version though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10590</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-15 08:23:38 +0000</bug_when>
    <thetext>I vote for just removing this line iven where we&apos;re at in the release cycle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10594</commentid>
    <comment_count>11</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-15 08:37:10 +0000</bug_when>
    <thetext>*** Bug 473 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10595</commentid>
    <comment_count>12</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-15 08:40:57 +0000</bug_when>
    <thetext>fd59449f5b906bf5941fef0e940f5b651e4cf284 works around the issue. Before closing this bug, a bug for 1.0 to deal with the &lt;&lt; operator should be filed with a note about this bug and the libtasn recipe included.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10620</commentid>
    <comment_count>13</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-10-17 17:37:30 +0000</bug_when>
    <thetext>In RC3 and master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10655</commentid>
    <comment_count>14</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-10-18 23:17:37 +0000</bug_when>
    <thetext>Verified in RC3 build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>