Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81523 - media-video/cxfe does not build, as it has an error when patching the source
Summary: media-video/cxfe does not build, as it has an error when patching the source
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 11:26 UTC by Steve Evans
Modified: 2005-02-17 01:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2005-02-10 11:26:10 UTC
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.
Comment 1 Anders Rune Jensen (RETIRED) gentoo-dev 2005-02-11 13:17:08 UTC
Strange. Could post your "emerge info"?
Comment 2 Steve Evans 2005-02-11 15:27:22 UTC
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

Comment 3 Anders Rune Jensen (RETIRED) gentoo-dev 2005-02-15 05:15:44 UTC
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.
Comment 4 Steve Evans 2005-02-15 15:10:28 UTC
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.
Comment 5 Anders Rune Jensen (RETIRED) gentoo-dev 2005-02-16 09:18:46 UTC
Thank you for the update. Please update and see if it works now.
Comment 6 Steve Evans 2005-02-16 10:38:08 UTC
No, it still doesn't work :-(
Comment 7 Johannes Zweng 2005-02-16 13:29:45 UTC
I also can reproduce this bug.
Comment 8 Johannes Zweng 2005-02-16 13:36:43 UTC
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
Comment 9 Anders Rune Jensen (RETIRED) gentoo-dev 2005-02-16 14:07:25 UTC
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.
Comment 10 Steve Evans 2005-02-16 14:34:02 UTC
Yes, that fixed it, thanks.
Comment 11 Anders Rune Jensen (RETIRED) gentoo-dev 2005-02-17 01:07:05 UTC
excellent