When trying to emerge avifile, i get an error message saying that a patch it is trying to apply (flvenc-patch) has failed. Reproducible: Always Steps to Reproduce: 1.attempt to emerge avifile Actual Results: The following error message is produced: >>> emerge (1 of 1) media-video/avifile-0.7.38.20030710 to / >>> md5 src_uri ;-) avifile-0.7-0.7.38.tar.gz >>> Unpacking source... >>> Unpacking avifile-0.7-0.7.38.tar.gz to /var/tmp/portage/avifile-0.7.38.20030710/work * Applying flvenc-patch... * Failed Patch: flvenc-patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/avifile-0.7.38.20030710/temp/flvenc-patch-13471.out !!! ERROR: media-video/avifile-0.7.38.20030710 failed. !!! Function epatch, Line 354, Exitcode 0 !!! Failed Patch: flvenc-patch! Expected Results: The patch should have been applied and avifile should have installed as expected. I have attached the file (flvenc-patch-13471.out) that the error message said i should include.
Created attachment 22125 [details] File that I was told to include by the error
I can confirm this bug. emerge info Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r1) ================================================================= System uname: 2.4.22-gentoo-r1 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -m3dnow -mmmx -msse -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -Os -m3dnow -mmmx -msse -fomit-frame-pointer -pipe -Wno-deprecated" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://noa.linux.ee/gentoo-portage" USE="3dnow X aalib acl acpi alsa apache2 avi berkdb cdr cjk crypt cups dga directfb dvd dvdr encode esd fbcon flash foomaticdb gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imap imlib ipv6 java jikes jpeg lcms ldap libg++ libwww mad maildir matrox mbox mikmod mmx motif mozilla mpeg mysql ncurses nls nocd oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python quicktime readline samba sasl scanner sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype unicode usb videos wmf x86 xml xml2 xmms xv zlib video_cards_matrox"
The problem appers to be with the patch format. The patch below is generated by manually applying "flvenc-patch" and works correctly. Replace the flvenc-patch (/usr/portage)/media-video/avifile/files/flvenc-patch with the following and it should work. (Well it works for me :-)) <patch> diff --unified --recursive --new-file avifile-0.7-0.7.38/ffmpeg/libavformat/flvenc.c avifile-0.7-0.7.38-fix/ffmpeg/libavformat/flvenc.c --- avifile-0.7-0.7.38/ffmpeg/libavformat/flvenc.c 2003-07-10 11:10:57.000000000 +1200 +++ avifile-0.7-0.7.38-fix/ffmpeg/libavformat/flvenc.c 2003-12-14 13:37:17.000000000 +1300 @@ -224,13 +224,15 @@ static int flv_write_trailer(AVFormatContext *s) { + int64_t file_size ; + int flags = 0; ByteIOContext *pb = &s->pb; FLVContext *flv = s->priv_data; Dump(flv,pb,1); - int64_t file_size = url_ftell(pb); - int flags = 0; + file_size = url_ftell(pb); + flags |= flv->hasAudio ? 4 : 0; flags |= flv->hasVideo ? 1 : 0; url_fseek(pb, 4, SEEK_SET); </patch>
Patch works for me, thanks for the fix
Thanks - works for me too ;)
Worked for me also, thanks. The file still needs to be updated on the servers though.
*** Bug 36584 has been marked as a duplicate of this bug. ***
added patch version in ebuild, should fix it
*** Bug 38009 has been marked as a duplicate of this bug. ***