Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 24989

Summary: gawk 3.1.3 "Operation not permitted", set permissions fails
Product: Gentoo Linux Reporter: Tobias Sager <moixa>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tobias Sager 2003-07-21 12:45:28 UTC
I'm working with FEATURES="fixpackages sandbox ccache userpriv".

gawk-3.1.3 fails here because of the copying of filefuncs fix (bug 24974) and insufficient permissions:
<snip>
>>> emerge (1 of 1) sys-apps/gawk-3.1.3 to /
>>> md5 src_uri ;-) gawk-3.1.3.tar.gz
>>> Unpacking source...
>>> 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': Operation not permitted
cp: setting permissions for `/var/tmp/portage/gawk-3.1.3/work/filefuncs/filefuncs.c': Operation not permitted
cp: setting permissions for `/var/tmp/portage/gawk-3.1.3/work/filefuncs': Operation not permitted

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


This patch fixes the problem.
<snip>
--- 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's source over ...
-       cp -a ${FILESDIR}/filefuncs ${WORKDIR}/ || die
+       cp -dR ${FILESDIR}/filefuncs ${WORKDIR}/ || die
 
        cd ${S}
        # support for dec compiler.
</snip>
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-22 07:51:45 UTC
Fixed in CVS, thanks.