<?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>2892</bug_id>
          
          <creation_ts>2012-08-04 02:56:25 +0000</creation_ts>
          <short_desc>rpm fails to generate root file system when /bin/traceroute6 is included</short_desc>
          <delta_ts>2012-09-29 02:04: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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.3</version>
          <rep_platform>x86</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>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23802</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-08-04 02:56:25 +0000</bug_when>
    <thetext>I get this error


iputils-traceroute6         ##################################################
chmod: cannot access `/bin/traceroute6&apos;: No such file or directory


when building an image. packaging backend is rpm. I havent tried opkg or dpkg

But then I also see

meta/recipes-extended/iputils/iputils_s20101006.bb

do_install ()

....
install -m 4555 traceroute6 ${D}${base_bindir}/


I wonder if those permissions are not ok for rpm ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23980</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-13 18:45:04 +0000</bug_when>
    <thetext>Can you reproduce this?  I just tried to build core-image-basic which contains iputils with the RPM Package management and was not able to get the same failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24000</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-08-13 22:54:08 +0000</bug_when>
    <thetext>Did you check log.do_rootfs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24021</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-14 11:03:36 +0000</bug_when>
    <thetext>No I had not orignally, now I do see the chown issue, I am working to get better details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24364</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-22 21:56:40 +0000</bug_when>
    <thetext>I have tracked into the pkg_postinst processing, it occurs with both RPM and IPK which makes me think it might be related to pseudo.  The paths in the pkg_postinst functions (in the recipes) are target relative and that&apos;s also the paths that are being used for the chmod.  Not sure if there should be some processing of the paths when run on the host system or if the packaging systems/pseudo need a chroot someplace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24377</commentid>
    <comment_count>5</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-08-23 01:34:08 +0000</bug_when>
    <thetext>I have a patch 

http://patches.openembedded.org/patch/35187/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24379</commentid>
    <comment_count>6</comment_count>
    <who name="Seebs">seebs</who>
    <bug_when>2012-08-23 01:49:08 +0000</bug_when>
    <thetext>$ rpm -pq --scripts iputils-traceroute6-s20101006-r5.i586.rpm 
warning: iputils-traceroute6-s20101006-r5.i586.rpm: Header V4 DSA signature: NOKEY, key ID e03cb778
postinstall scriptlet (using /bin/sh):
# iputils-traceroute6 - postinst
        chmod 4555 /bin/traceroute6

^-- I think this is the problem.

So, thinking about this a bit:

pkg_postinst_${PN}-traceroute6 () {
        chmod 4555 ${base_bindir}/traceroute6
}

It&apos;s pretty obvious that the *intent* of this is to somehow make sure the file gets the right mode. I&apos;m pretty sure we just plain don&apos;t need this, though -- if do_install works, RPM will take care of that anyway.

Khem&apos;s patch looks reasonable to me, but I&apos;m a bit unsure about one thing. These scripts will be expanded at build time, then embedded in RPMs. Will they work if the RPM is then used with another build directory or target?

I&apos;m wondering whether just removing these would work...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24380</commentid>
    <comment_count>7</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-08-23 03:24:12 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; $ rpm -pq --scripts iputils-traceroute6-s20101006-r5.i586.rpm 
&gt; warning: iputils-traceroute6-s20101006-r5.i586.rpm: Header V4 DSA signature:
&gt; NOKEY, key ID e03cb778
&gt; postinstall scriptlet (using /bin/sh):
&gt; # iputils-traceroute6 - postinst
&gt;         chmod 4555 /bin/traceroute6
&gt; 
&gt; ^-- I think this is the problem.
&gt; 
&gt; So, thinking about this a bit:
&gt; 
&gt; pkg_postinst_${PN}-traceroute6 () {
&gt;         chmod 4555 ${base_bindir}/traceroute6
&gt; }
&gt; 
&gt; It&apos;s pretty obvious that the *intent* of this is to somehow make sure the
&gt; file gets the right mode. I&apos;m pretty sure we just plain don&apos;t need this,
&gt; though -- if do_install works, RPM will take care of that anyway.
&gt; 
&gt; Khem&apos;s patch looks reasonable to me, but I&apos;m a bit unsure about one thing.
&gt; These scripts will be expanded at build time, then embedded in RPMs. Will
&gt; they work if the RPM is then used with another build directory or target?
&gt; 
&gt; I&apos;m wondering whether just removing these would work...

see its $D and not ${D} for a reason :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24473</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-25 01:14:00 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d36ecc389a3d1e2deafd606e734acd16ab0951b3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25904</commentid>
    <comment_count>9</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-09-28 09:36:20 +0000</bug_when>
    <thetext>Verified in:

commit: 718eb85806e080d0b165344b272e531ef19421eb
Date:   Tue Sep 25 17:14:23 2012 -0700

Bitbaked core-image-basic with qemux86; log.do_rootfs shows:
&quot;
iputils-tracepath           ##################################################
iputils-tracepath6          ##################################################
iputils-traceroute6         ##################################################
gawk-common                 ##################################################
ethtool                     ##################################################
&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25951</commentid>
    <comment_count>10</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-29 02:04:12 +0000</bug_when>
    <thetext>run &quot;bitbake core-image-basic&quot; with qemux86 (package type ipk),log.do_rootfs also no such error:
...
Installing iputils-traceroute6 (s20101006-r6) to root...
Downloading file:/buildarea/tester/build_102/tmp/deploy/ipk/i586/iputils-traceroute6_s20101006-r6_i586.ipk.
Installing iputils-tracepath6 (s20101006-r6) to root...
Downloading file:/buildarea/tester/build_102/tmp/deploy/ipk/i586/iputils-tracepath6_s20101006-r6_i586.ipk.
...
git info :718eb85806e080d0b165344b272e531ef19421eb
git branch: poky/master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>