The patch operation fails when emacs-cvs-darwin-fsf-gcc.patch is being applied. Here are the contents of emacs-cvs-darwin-fsf-gcc.patch-13406.out ***** emacs-cvs-darwin-fsf-gcc.patch ***** ========================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch ========================================== patching file src/s/darwin.h Hunk #1 FAILED at 264. 1 out of 1 hunk FAILED -- saving rejects to file src/s/darwin.h.rej patching file configure Hunk #1 succeeded at 2391 (offset 8 lines). ========================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch ========================================== can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |* Fabian Groffen <grobian@gentoo.org> | Remove gcc-apple specific flags, such that we can compile with FSF GCC | |--- src/s/darwin.h |+++ src/s/darwin.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 17 of patch can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure |+++ configure -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ========================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch ========================================== can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |* Fabian Groffen <grobian@gentoo.org> | Remove gcc-apple specific flags, such that we can compile with FSF GCC | |--- src/s/darwin.h |+++ src/s/darwin.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 17 of patch can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure |+++ configure -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ========================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch ========================================== missing header for unified diff at line 6 of patch can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |* Fabian Groffen <grobian@gentoo.org> | Remove gcc-apple specific flags, such that we can compile with FSF GCC | |--- src/s/darwin.h |+++ src/s/darwin.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 17 of patch can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure |+++ configure -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ========================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch ========================================== missing header for unified diff at line 6 of patch can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |* Fabian Groffen <grobian@gentoo.org> | Remove gcc-apple specific flags, such that we can compile with FSF GCC | |--- src/s/darwin.h |+++ src/s/darwin.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 17 of patch can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure |+++ configure -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored Reproducible: Always Steps to Reproduce: 1.Try to install emacs-cvs-23.0.0.1-r1 2.Wait for patch to fail 3. Commenting out the epatch line seems to fix that error its probably advisable to have a conditional determine whether one is running on darwin or not so as to avoid this issue.
I've commented it out.