I get this error when attempting to build cxfe. $ emerge -uvD cxfe Calculating dependencies ...done! >>> emerge (1 of 1) media-video/cxfe-0.9.1 to / >>> md5 src_uri ;-) cxfe-0.9.1.tar.gz >>> Unpacking source... >>> Unpacking cxfe-0.9.1.tar.gz to /var/tmp/portage/cxfe-0.9.1/work * Applying gcc-2.95-fix.patch ... * Failed Patch: gcc-2.95-fix.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/cxfe-0.9.1/temp/gcc-2.95-fix.patch-15859.out This also happens with the masked version 0.9.1-r1 The contents of the file /var/tmp/portage/cxfe-0.9.1/temp/gcc-2.95-fix.patch-15859.out are: ***** gcc-2.95-fix.patch ***** ============================== PATCH COMMAND: patch -p0 -g0 < /usr/portage/media-video/cxfe/files/gcc-2.95-fix.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: -------------------------- |--- cxfe/cxfe.c 2004-11-27 03:07:59.000000000 +0100 |+++ cxfe-0.91/cxfe.c 2004-11-30 11:32:48.230792288 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ============================== PATCH COMMAND: patch -p1 -g0 < /usr/portage/media-video/cxfe/files/gcc-2.95-fix.patch ============================== patching file cxfe.c Hunk #1 FAILED at 955. Hunk #2 FAILED at 1078. 2 out of 2 hunks FAILED -- saving rejects to file cxfe.c.rej ============================== PATCH COMMAND: patch -p2 -g0 < /usr/portage/media-video/cxfe/files/gcc-2.95-fix.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: -------------------------- |--- cxfe/cxfe.c 2004-11-27 03:07:59.000000000 +0100 |+++ cxfe-0.91/cxfe.c 2004-11-30 11:32:48.230792288 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ============================== PATCH COMMAND: patch -p3 -g0 < /usr/portage/media-video/cxfe/files/gcc-2.95-fix.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: -------------------------- |--- cxfe/cxfe.c 2004-11-27 03:07:59.000000000 +0100 |+++ cxfe-0.91/cxfe.c 2004-11-30 11:32:48.230792288 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ============================== PATCH COMMAND: patch -p4 -g0 < /usr/portage/media-video/cxfe/files/gcc-2.95-fix.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: -------------------------- |--- cxfe/cxfe.c 2004-11-27 03:07:59.000000000 +0100 |+++ cxfe-0.91/cxfe.c 2004-11-30 11:32:48.230792288 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored Reproducible: Always Steps to Reproduce: 1. 2. 3.
Strange. Could post your "emerge info"?
OK, here is my emerge info: Gentoo Base System version 1.4.16 Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 07:43:25)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.19-r1, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://gentoo.mirror.sdv.fr http://trumpetti.atm.tut.fi/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.prz.rzeszow.pl http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apm arts artswrappersuid avi bash-completion berkdb bitmap-fonts bonobo cdr crypt cups dvd dvdr emacs encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gimpprint gphoto2 gpm gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal libg++ libwww mad mikmod motif mpeg nas ncurses network offensive oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xmms xv zlib linguas_en_GB" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Could you try and disable distcc and see if it works then? Might be related to the problem of emerging sash in this thread: http://forums.gentoo.org/viewtopic.php?p=346467 I have tested the package on my two machines and written the patches myself so I'm pretty sure they work :) I have no clue how distcc works.
I have tried it without distcc and it still didn't work. I also tried applying the patch to the sources myself and got the same error as happened during the emerge, so I don't think it has anything to do with distcc.
Thank you for the update. Please update and see if it works now.
No, it still doesn't work :-(
I also can reproduce this bug.
Sorry, I was posting to quick before. I noticed that the patchfile contains CRLF characters, which seems to break the patching procedure. The following two steps solved the problem for me: dos2unix /usr/portage/media-video/cxfe/files/gcc-2.95-fix.patch dos2unix /usr/portage/media-video/cxfe/files/max-osd-fix.patch
Aha! Thanks Johannes. The patches in cvs have been changed from dos format to unix (was done when I wrote comment #5). Steve could you double check and see if you have the latest versions of the patches? It sometimes takes some hours for the rsync mirrors to catch up to cvs.
Yes, that fixed it, thanks.
excellent