emerge -u world tries to build "app-sci/magic-7.1-r2" Before the build starts it tries to apply the patches located in /usr/portage/app-sci/magic/files/ The patch called "magic-7.1-misc.patch" fails with this output: * Failed Patch: magic-7.1-misc.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/magic-7.1-r2/temp/magic-7.1-misc.patch-11986.out The content of magic-7.1-misc.patch-11986.out will be attached to this bug. Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. emerge magic Actual Results: emerge fails Expected Results: emerge completes Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-xfs-r3) ================================================================= System uname: 2.4.20-xfs-r3 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -fomit-frame-pointer -pipe -ffast-math -fno-strength-reduce" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -fomit-frame-pointer -pipe -ffast-math -fno-strength-reduce" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" 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="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline tetex bonobo java guile mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl mozilla cdr -arts -alsa -kde gtk2 cupsi -svga imap"
Created attachment 21294 [details] output of patch that fails this is the output the emerge/ebuild asked me to send.
Don't understand how this slipped through. Will investigate in about an hour. Stay tuned.
I was fooled by CVS/RCS. The patch file contained a $Header: (something$ line that was modified by CVS when I checked it in. Since I did all tests before checking in, it worked before I committed it and could not work after I did. The version with a workaround should be on your portage mirror soon.