<?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>6440</bug_id>
          
          <creation_ts>2014-06-12 20:08:53 +0000</creation_ts>
          <short_desc>gawk fails to install on some hosts who install files similar to yocto paths</short_desc>
          <delta_ts>2014-11-13 17:10:52 +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>core</component>
          <version>unspecified</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>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Gortmaker">paulg</reporter>
          <assigned_to name="Paul Gortmaker">paulg</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nitin.a.kamble</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>43898</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2014-06-12 20:08:53 +0000</bug_when>
    <thetext>A recent update of gawk now fails at do_install when it tries to execute this:

make[4]: Entering directory &apos;/mnt/home/paul/poky/build/tmp/work/corei7-64-poky-
linux/gawk/4.1.1-r0/build/extension&apos;
for i in filefuncs.la fnmatch.la fork.la inplace.la ordchr.la readdir.la readfi
le.la revoutput.la revtwoway.la rwarray.la testext.la time.la ; do \
        rm -f /usr/lib/gawk/$i ; \
done
rm: cannot remove &apos;/usr/lib/gawk/filefuncs.la&apos;: Permission denied
rm: cannot remove &apos;/usr/lib/gawk/fnmatch.la&apos;: Permission denied
rm: cannot remove &apos;/usr/lib/gawk/fork.la&apos;: Permission denied
rm: cannot remove &apos;/usr/lib/gawk/inplace.la&apos;: Permission denied
rm: cannot remove &apos;/usr/lib/gawk/ordchr.la&apos;: Permission denied
....
rm: cannot remove &apos;/usr/lib/gawk/testext.la&apos;: Permission denied
rm: cannot remove &apos;/usr/lib/gawk/time.la&apos;: Permission denied
Makefile:1235: recipe for target &apos;install-data-hook&apos; failed

Note the &quot;rm -f /usr/lib/gawk/$i&quot; -- is going right at the build host files, and hence the -EPERM (rightly so!).

The reason that this does not fail on _all_ hosts is that there _has_ to be those files there to begin with, as &quot;rm -f /usr/lib/gawk/some_nonexistent_file&quot; is not an error, and hence this won&apos;t fail on ubuntu 14.10 for example.

It fails for me because my build machine is itself running on a build of yocto, and hence we see this host contamination issue clearly, as the gawk libraries are installed to the same path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43982</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2014-06-16 14:05:04 +0000</bug_when>
    <thetext>Fix sent to oe-core here:

  http://article.gmane.org/gmane.comp.handhelds.openembedded.core/52268

Portion of fix not yet upstream sent for gawk maintainers here:

  http://lists.gnu.org/archive/html/bug-gawk/2014-06/msg00001.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44039</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2014-06-17 17:43:38 +0000</bug_when>
    <thetext>yocto commit c7bfbabab7274f31be9e484bbe277cf9d011072c

(From OE-Core rev: 8c7a883964e45e7b48b943731bd3b3da0cc289d9)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46987</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-11-13 17:10:52 +0000</bug_when>
    <thetext>*** Bug 6415 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>