Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35707 - 'emerge avifile' fails due to the patch (flvenc-patch) it is trying to apply
Summary: 'emerge avifile' fails due to the patch (flvenc-patch) it is trying to apply
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 36584 38009 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-13 01:59 UTC by James
Modified: 2004-01-12 18:31 UTC (History)
3 users (show)

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


Attachments
File that I was told to include by the error (flvenc-patch-13471.out,2.63 KB, application/octet-stream)
2003-12-13 02:01 UTC, James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James 2003-12-13 01:59:30 UTC
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.
Comment 1 James 2003-12-13 02:01:30 UTC
Created attachment 22125 [details]
File that I was told to include by the error
Comment 2 Veiko Kukk 2003-12-13 13:27:50 UTC
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"
Comment 3 Mark Pethick 2003-12-13 17:14:36 UTC
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>
Comment 4 butters 2003-12-13 21:09:07 UTC
Patch works for me, thanks for the fix
Comment 5 James 2003-12-14 02:36:47 UTC
Thanks - works for me too ;)
Comment 6 Bryan 2003-12-14 20:02:19 UTC
Worked for me also, thanks. The file still needs to be updated on the servers though.
Comment 7 Samuel Penn 2003-12-27 09:56:45 UTC
*** Bug 36584 has been marked as a duplicate of this bug. ***
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-12-28 07:27:28 UTC
added patch version in ebuild, should fix it
Comment 9 SpanKY gentoo-dev 2004-01-12 18:31:40 UTC
*** Bug 38009 has been marked as a duplicate of this bug. ***