epatch fails due to malformed patch, that's what it appears to be at least. Reproducible: Always Steps to Reproduce: 1.emerge gtkspell 2. 3. Actual Results: kevinw2k root # emerge gtkspell Calculating dependencies ...done! >>> emerge (1 of 1) app-text/gtkspell-2.0.4-r1 to / >>> md5 src_uri ;-) gtkspell-2.0.4.tar.gz >>> Unpacking source... >>> Unpacking gtkspell-2.0.4.tar.gz to /var/tmp/portage/gtkspell-2.0.4-r1/work * Applying gtkspell-2.0.4-docbookx.patch... [ ok ] * Applying gtkspell-2.0.4-enchant.patch... * Failed Patch: gtkspell-2.0.4-enchant.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/gtkspell-2.0.4-r1/temp/gtkspell-2.0.4-enchant.patch-26478.out Expected Results: Installed gtkspell ***** gtkspell-2.0.4-enchant.patch ***** ======================================== PATCH COMMAND: patch -p0 -g0 < /usr/portage/app-text/gtkspell/files/gtkspell-2.0.4-enchant.patch ======================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |- AppConfig-1.56.orig/lib/AppConfig/File.pm 2004-02-04 02:28:28.000000000 -0800 |+++ AppConfig-1.56/lib/AppConfig/File.pm 2004-05-26 15:54:17.854304993 -0700 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 14 of patch can't find file to patch at input line 14 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- | !!! ERROR: app-text/gtkspell-2.0.4-r1 failed. !!! Function epatch, Line 322, Exitcode 0 !!! Failed Patch: gtkspell-2.0.4-enchant.patch! Portage info: Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2) ================================================================= System uname: 2.4.25-gentoo-r2 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
the gtkspell-2.0.4-enchant.patch is applied successfully here, have you emerge sync'ed recently? md5sum match this? $ md5sum /usr/portage/app-text/gtkspell/files/gtkspell-2.0.4-enchant.patch 2c687dc22e69904275ba8afee73f55a9 /usr/portage/app-text/gtkspell/files/gtkspell-2.0.4-enchant.patch
Md5sum 4a28f895930d7b32a504a71603caab82 /usr/portage/app-text/gtkspell/files/gtkspell-2.0.4-enchant.patch Looks like I have a bad patch file. Sorry about that. I had synced right before I reported and I still ended up with a bad patch. Strange.
re-emerging the patch solved the problem. I learnt something about Portage in the process, so thank you.