Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123749 - media-tv/mythtv-0.19-r1 falis due to epatch error
Summary: media-tv/mythtv-0.19-r1 falis due to epatch error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-22 14:00 UTC by Jeffrey Gardner (RETIRED)
Modified: 2006-02-23 19:28 UTC (History)
1 user (show)

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


Attachments
mythtv-0.19_8926_9094.patch-16744.out (mythtv-0.19_8926_9094.patch-16744.out,35.48 KB, text/plain)
2006-02-22 14:02 UTC, Jeffrey Gardner (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Gardner (RETIRED) gentoo-dev 2006-02-22 14:00:24 UTC
emerging media-tv/mythtv-0.19-r1 fails with an epatch error, saying:

 * Failed Patch: mythtv-0.19_8926_9094.patch !
 *  ( /var/tmp/portage/mythtv-0.19-r1/work/mythtv-0.19_8926_9094.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/mythtv-0.19-r1/temp/mythtv-0.19_8926_9094.patch-16744.out


emerge info
Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -mtune=opteron -fomit-frame-pointer -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=opteron -mtune=opteron -fomit-frame-pointer -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo http://mirrors.tds.net/gentoo ftp://gentoo.ccccom.com http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.osuosl.org"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 3xnowex X a52 aac acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo canvas cdr crypt cups curl dga directfb divx4linux dts dvd dvdr dvdread effects emboss encode esd ethereal exif expat extensions f77 fam fbcon ffmpeg fftw flac foomaticdb fortran gb gd gdbm gif glut gmp gnutls gpm gtk gtk2 gtkhtml h323 hdf i8x0 idn imagemagick imlib inkjar insecure-savers ithreads java jce jpeg jpg junit kqemu lcms libgda libwww lirc live logitech-mouse logrotate lzw lzw-tiff mad maildir mjpeg mng motif mozcalendar mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpi mpqc mysql mythtv ncurses netcdf network new-login nls no_wxgtk1 nptl nsplugin nvidia offensive ogg oggvorbis openal opengl pam pcre pdflib perl plotutils plugin png pnp pop ppds python quicktime readline recode rtc samba sasl sdl smp spell ssl startup-notification svg tcltk tcpd tetex threads tiff toolbar truetype truetype-fonts type1-fonts udev usb userlocales v4l v4l2 vorbis wmf xchattext xinetd xml xml2 xpm xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jeffrey Gardner (RETIRED) gentoo-dev 2006-02-22 14:02:17 UTC
Created attachment 80463 [details]
mythtv-0.19_8926_9094.patch-16744.out

here's the file it said to attach...
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2006-02-22 17:23:32 UTC
Works for me....
Comment 3 Michael Moore 2006-02-22 17:50:02 UTC
Patch doesn't apply for me either. mythtv-0.19_8926_9094.patch-25312.out is identical. Here is emerge info:

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.15-gentoo-r1-flick i686)
=================================================================
System uname: 2.6.15-gentoo-r1-flick i686 VIA Samuel 2
Gentoo Base System version 1.6.14
distcc 2.18.3 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-Os -march=i586 -mmmx -m3dnow -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-Os -march=i586 -mmmx -m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdb cdr crypt cups dio dvb dvd dvdr dvdread eds emboss encode exif expat ffmeg ffmpeg flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 ieee1394 imagemagick imlib ipv6 java jpeg lcms libg++ libwww lirc mad mhash mikmod mmx mng motif mp3 mpeg mplayer mysql mythtv ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png python quicktime readline sdl spell ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev v4l vorbis wifi xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2006-02-22 20:51:25 UTC
Well basically I can confirm the issue on Portage 2.0.54 and confirm it's not an issue on Portage 2.1. The issue is with the eutils.eclass epatch call. But since both version of Portage use the same eclass, this leads me to believe the issue is with Portage itself. CCing the Portage alias since #gentoo-portage people are currently unavailable.
Comment 5 SpanKY gentoo-dev 2006-02-22 20:59:47 UTC
no ... what you confirmed is that the unstable version of patch behaves a little differently from the stable version of patch

the patch you're using, mythtv-0.19_8926_9094.patch.bz2, sucks ... you need to scrub all the ^M gremlins out of it
Comment 6 Michael Moore 2006-02-22 21:17:51 UTC
(In reply to comment #5) 
> the patch you're using, mythtv-0.19_8926_9094.patch.bz2, sucks ... you need to
> scrub all the ^M gremlins out of it

Whether mythtv-0.19_8926_9094.patch.bz2 sucks I don't know. However, there don't appear to be any ^M s hanging out in the patch.

Michael

Comment 7 Kurt Grutzmacher 2006-02-22 22:07:34 UTC
grutz@beezlebubba /var/tmp $ bzcat /usr/portage/distfiles/mythtv-0.19_8926_9094.patch.bz2 > mythtv-0.19_8926_9094.patch
grutz@beezlebubba /var/tmp $ file mythtv-0.19_8926_9094.patch 
mythtv-0.19_8926_9094.patch: ASCII C program text, with CRLF line terminators

Removed the CRLFs, re-bzipped and updated the digest file and patch worked fine. Compiling now so we'll see if it still works.
Comment 8 Chris Heller 2006-02-22 22:42:14 UTC
I had this same issue with the patch error (on a AMD x86 box - don't have emerge info output handy).  I tried manually applying the patch and only a few hunks succeeded. 

I didn't have time to dig through this though, I ended up doing the rest of the steps manually through ebuild (as noted here http://forums.gentoo.org/viewtopic.php?t=5378) and that seemed to work OK. I noticed a few warnings during the compile, but no more than usual. 

A very cursory glance after restarting myth seems to show things working and I see some of the new features up and running (love that popup keyboard). 

(although I see from the comments that got added since I started typing this that the patch has been updated, so I'll probably re-compile again in a bit to get whatever changes were in the patch). 
Comment 9 Jeffrey Gardner (RETIRED) gentoo-dev 2006-02-22 22:58:03 UTC
emerge sync && emerge -u world
..............................
!!! Digest verification Failed:
!!!    /usr/portage/distfiles/mythtv-0.19_8926_9094.patch.bz2
!!! Reason: Filesize does not match recorded size


Bwaahaahaa!
Comment 10 Michael Moore 2006-02-23 00:16:30 UTC
Patch now applies. Thanks.

Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2006-02-23 07:33:00 UTC
yeah this is done. Turns out to be something in the development version of Trac that screwed up the patch. Which was handled fine by newer version of the patch program.
Comment 12 Jeffrey Gardner (RETIRED) gentoo-dev 2006-02-23 12:36:51 UTC
well it's still broken here...are you saying I should go beyond patch-2.5.9?
Comment 13 John Gill 2006-02-23 18:34:34 UTC
I too have/had problems with the patch.  The emerge sync did not properly update the patch/ebuild.  I tried removing all mythtv packages from /usr/portage/distfiles and re-emerging, but portage complained about the file already existing, even though it did not.  Since I had not emerged 0.19 on my second system, I emerged it on my second system and the patch worked.  I then copied the mythtv packages over to the system that did not patch correctly.  It is now patching/compiling properly.
Comment 14 Jeffrey Gardner (RETIRED) gentoo-dev 2006-02-23 19:28:33 UTC
Yup!
Removing the mythtv patch file from /usr/portage/distfiles did the trick....it's compiling right now...
Thanks!