This is what I see when I try to build crack-attack on my work laptop (happens every time on this very machine). [snip] >>> Unpacking source... >>> Unpacking crack-attack-1.1.12-r1.tar.gz to /var/tmp/portage/crack-attack-1.1.12-r1/work >>> Unpacking crack-attack_1.1.12-r1-2.diff.gz to /var/tmp/portage/crack-attack-1.1.12-r1/work * Applying crack-attack_1.1.12-r1-2.diff ... [ ok ] /usr/portage/games-arcade/crack-attack/crack-attack-1.1.12-r1.ebuild: line 27: /usr/portage/games-arcade/crack-attack/files/crack-attack-1.1.12-garbage.patch: Permission denied >>> Source unpacked. [snip] checking the work directory one can see that garbage patch didn't get applied. I'm not sure about the other patch mentioned in the ebuild. strace'ing the emerge process[es] shows this: 30950 execve("/usr/portage/games-arcade/crack-attack/files/crack-attack-1.1.12-g arbage.patch", ["/usr/portage/games-arcade/crack-"...], [/* 149 vars */]) = -1 E ACCES (Permission denied) surprisingly build goes just fine (always) on my home machine (x86_64) (why?). so it seems that my work laptop and home machine understand the following ebuild command (in unpack function) differently: epatch \ "${WORKDIR}"/${PN}_${PV}-r1-2.diff "${FILESDIR}"/${P}-garbage.patch My portage and profile seem up to date (portage-2.0.51.19 and default-linux/x86/2005.0/2.4)... what could be different? arch? python? patch version? Reproducible: Sometimes Steps to Reproduce: 1. get an older(?) gentoo installation 2. emerge crack-attack 3. watch the output Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.3, glibc-2.3.3. 20040420-r0, 2.4.22 i686) ================================================================= System uname: 2.4.22 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.3-r1,dev-lang/python-2.2.3-r1 [2.3.3 (#1, Aug 6 2004, 06:26:17)] dev-lang/python: 2.3.3-r1, 2.2.3-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.6.3, 1.5, 1.4_p6, 1.8.5-r3, 1.7.9-r1, 1.9.4 sys-devel/binutils: 2.14.90.0.8-r1 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.4.19-r1, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/ share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X alsa apm avi bash-completion bash_completion berkdb bitmap-fonts crypt cups curl emboss encode esd fam foomaticdb fortran gdbm gif gpm gtk gtk2 guile imagemagick imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls odbc ogg oggvorbis oss pam pdflib perl png postgres python quicktime readline samba sdl slang speex spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
what's ls -l /usr/portage/games-arcade/crack-attack/files/crack-attack-1.1.12-garbage.patch look like?
your portage tree is out of date, i fixed this already mr bones: when you added the debain patch, you missed addeding a \ so the ebuild tried to execute the garbage patch instead of passing it to epatch