<?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>327</bug_id>
          
          <creation_ts>2010-09-14 19:33:53 +0000</creation_ts>
          <short_desc>rpm package installation failure in target</short_desc>
          <delta_ts>2010-12-21 06:07:12 +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>Other</rep_platform>
          <op_sys>Multiple</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="Qing He">qing.he</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>9800</commentid>
    <comment_count>0</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-09-14 19:33:53 +0000</bug_when>
    <thetext>installing new rpm packages in target fails, while other functionalities like rpm -qa and rpm -qi work fine.

environment: poky-image-sato, qemux86 (commit c01e8760ba5552e91f3af764c1233c2462494213)


reproduce step:
  1. start a qemux86 poky-image-sato image
  2. scp an rpm package to the current directory, e.g.:
        scp 192.168.7.1:..../tmp/deploy/rpm/i586/ldd-2.10.1-r4.i586.rpm .
  3. try to install the package, use:
        rpm -ivh ldd-2.10.1-r4.i586.rpm

  4. the current failure result is:
        error: Failed dependencies:
                / is needed by ldd-2.10.1-r4.i586
        error: LOOP:
        error: removing ldd-2.10.1-r4.i586 &quot;Requires: /usr&quot; from tsort relations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9801</commentid>
    <comment_count>1</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-09-14 19:34:30 +0000</bug_when>
    <thetext>Cc Mark Hatle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9810</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-09-15 08:44:35 +0000</bug_when>
    <thetext>The filesystem package or some other package in the system needs to provide the &apos;/&apos; directory.  I&apos;ll see what I can do to facilitate this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9813</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-09-15 09:40:42 +0000</bug_when>
    <thetext>I&apos;ve got a workaround that can unblock testing, can you try the following (on the target):


mkdir -p /etc/rpm/sysinfo/
echo &quot;/&quot; &gt;&gt; /etc/rpm/sysinfo/Dirnames


then run your test.  If this works, I&apos;ll add this to the rpm rootfs implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9845</commentid>
    <comment_count>4</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-09-15 18:03:42 +0000</bug_when>
    <thetext>Yes, this fix works. The package can be installed successfully. Although the following error message still exists:

error: LOOP:
error: removing ldd-2.10.1-r4.i586 &quot;Requires: /usr&quot; from tsort relations.
Preparing...      ########### [100%]
   1:ldd          ########### [100%]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9847</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-09-15 18:07:05 +0000</bug_when>
    <thetext>The &quot;error: LOOP&quot; message is not an error.  Could you please open a second defect on this item?  It should be addressed via another change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9848</commentid>
    <comment_count>6</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-09-15 18:08:09 +0000</bug_when>
    <thetext>ok, I&apos;ll file another bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10087</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-09-30 12:44:02 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=fad896d4ea82b1cabcabbdf446a0c237f0005502</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10731</commentid>
    <comment_count>8</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-21 00:58:58 +0000</bug_when>
    <thetext>Installation now works well</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>