Bug 66911 - ppc-macos: gawk fails to unpack/build
Bug#: 66911 Product:  Gentoo Linux Version: unspecified Platform: PPC
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: chainsaw@gentoo.org Reported By: clmason@gmail.com
Component: Ebuilds
URL: 
Summary: ppc-macos: gawk fails to unpack/build
Keywords:  
Status Whiteboard: 
Opened: 2004-10-09 12:57 0000
Description:   Opened: 2004-10-09 12:57 0000
Here's the error:

>>> emerge (1 of 1) sys-apps/gawk-3.1.3-r1 to /
>>> md5 src_uri ;-) gawk-3.1.3.tar.gz
>>> Checking gawk-3.1.3.tar.gz's mtime...
>>> Not marked as unpacked; recreating WORKDIR...
>>> Unpacking source...
>>> Unpacking gawk-3.1.3.tar.gz to /var/tmp/portage/gawk-3.1.3-r1/work
cp: illegal option -- d
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory

!!! ERROR: sys-apps/gawk-3.1.3-r1 failed.
!!! Function src_unpack, Line 24, Exitcode 64
!!! cp failed
!!! If you need support, post the topmost build error, NOT this status message.

This looks like a cp incompatibility.  The equivalent option on macos is "-P" (don't follow symlinks/no-reference).  I believe this is also the POSIX standard option and the gnu utils are changing to -P instead of -d, so maybe the ebuild can just be changed to "cp -PR" instead of "cp -dR"?

------- Comment #1 From Tony Vroon 2004-11-14 13:02:52 0000 -------
The manpage agrees that -d is merely a compatibility symlink to the newer POSIX
-P option since file-utils 4.1
Compile-tested in overlay, changing ebuilds now.

------- Comment #2 From Tony Vroon 2004-11-14 13:07:07 0000 -------
In CVS.
Thank you for your report, if you sync in two hours, the updated ebuild will be in your tree.