<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>24989</bug_id>
          
          <creation_ts>2003-07-21 12:45 0000</creation_ts>
          <short_desc>gawk 3.1.3 &quot;Operation not permitted&quot;, set permissions fails</short_desc>
          <delta_ts>2003-07-22 07:51:45 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>moixa@gmx.ch</reporter>
          <assigned_to>azarah@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>moixa@gmx.ch</who>
            <bug_when>2003-07-21 12:45:28 0000</bug_when>
            <thetext>I&apos;m working with FEATURES=&quot;fixpackages sandbox ccache userpriv&quot;.

gawk-3.1.3 fails here because of the copying of filefuncs fix (bug 24974) and insufficient permissions:
&lt;snip&gt;
&gt;&gt;&gt; emerge (1 of 1) sys-apps/gawk-3.1.3 to /
&gt;&gt;&gt; md5 src_uri ;-) gawk-3.1.3.tar.gz
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking gawk-3.1.3.tar.gz to /var/tmp/portage/gawk-3.1.3/work
cp: setting permissions for `/var/tmp/portage/gawk-3.1.3/work/filefuncs/Makefile&apos;: Operation not permitted
cp: setting permissions for `/var/tmp/portage/gawk-3.1.3/work/filefuncs/filefuncs.c&apos;: Operation not permitted
cp: setting permissions for `/var/tmp/portage/gawk-3.1.3/work/filefuncs&apos;: Operation not permitted

!!! ERROR: sys-apps/gawk-3.1.3 failed.
!!! Function src_unpack, Line 25, Exitcode 1
!!! (no error message)
&lt;/snip&gt;


This patch fixes the problem.
&lt;snip&gt;
--- gawk-3.1.3.ebuild.org       2003-07-21 21:40:12.000000000 +0200
+++ gawk-3.1.3.ebuild   2003-07-21 21:39:14.000000000 +0200
@@ -22,7 +22,7 @@
        unpack ${A}
 
        # Copy filefuncs module&apos;s source over ...
-       cp -a ${FILESDIR}/filefuncs ${WORKDIR}/ || die
+       cp -dR ${FILESDIR}/filefuncs ${WORKDIR}/ || die
 
        cd ${S}
        # support for dec compiler.
&lt;/snip&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-07-22 07:51:45 0000</bug_when>
            <thetext>Fixed in CVS, thanks.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>