I am using ffmpeg-0.4.9_p20050226 for compatibility with Intel's OpenCV library. I previously had installed ffmpeg-0.4.9_p20050226-r5, but that was removed from portage. Now when I emerge ffmpeg-0.4.9_p20050226-r3, I get an error for a missing patch: * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/media-video/ffmpeg/files/gentoo-ffmpeg001.patch * ( gentoo-ffmpeg001.patch ) `emerge --sync` does not solve this problem. I guess it's either a matter of tha patch missing from the portage tree, or the ebuild containing an erroneous line, but I'm not sure which.
Hmm... Has anyone gotten a chance to check this bug out? It's been unresolved for a while now.
Created attachment 95393 [details, diff] needed patch file for testing
copy the contens in a file named "gentoo-ffmpeg001.patch" move the file to /usr/portage/media-video/ffmpeg/files/ make a "ebuild media-video/ffmpeg-0.4.9_p20050226 digest" now you can make your "emerge ffmpeg-0.4.9_p20050226" but be aware: 1.) sometimes there is a reason for removing of patch-file 2.) after an "emerge portage" or "emerge --sync" the patch-file is lost (use a portage overlay insted)
Created attachment 96936 [details, diff] modified libdir-pic patch To get this to compile, I also had to modify ffmpeg-libdir-pic.patch so that the PIC flag was not used at compile time. Without this modification, I got compile errors in the x86 asm code: i386/dsputil_mmx_avg.h:58: error: can't find a register in class `BREG' while reloading `asm' ... i386/mpegvideo_mmx_template.c:93: error: can't find a register in class `GENERAL_REGS' while reloading `asm' I've attached my modified patch.
doing : ebuild ffmpeg-0.4.9_p20070129.ebuild install works . Though there is this : strip: i686-pc-linux-gnu-strip --strip-unneeded usr/bin/ffmpeg usr/bin/ffplay usr/lib/vhook/imlib2.so usr/lib/vhook/fish.so usr/lib/vhook/ppm.so usr/lib/vhook/drawtext.so usr/lib/vhook/null.so usr/lib/vhook/watermark.so usr/lib/libavcodec.so.51.29.0 usr/lib/libavutil.so.49.2.0 usr/lib/libavformat.so.51.8.0 usr/lib/libpostproc.so.51.1.0 usr/lib/libavutil.a usr/lib/libpostproc.a usr/lib/libavcodec.a usr/lib/libavformat.a * QA Notice: Package has poor programming practices which may compile * fine but exhibit random runtime failures. * dsputil.c:3389: warning: dereferencing type-punned pointer will break strict-aliasing rules dsputil.c:3459: warning: dereferencing type-punned pointer will break strict-aliasing rules dsputil.c:3476: warning: dereferencing type-punned pointer will break strict-aliasing rules dsputil.c:3477: warning: dereferencing type-punned pointer will break strict-aliasing rules and then : lappy ffmpeg # ffmpeg -v FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i686-pc-linux-gnu-gcc --disable-mmx --disable-altivec --disable-debug --disable-v4l --disable-v4l2 --disable-dv1394 --disable-network --disable-opts --enable-mp3lame --enable-dts --enable-gpl --enable-pp --disable-strip libavutil version: 49.2.0 libavcodec version: 51.29.0 libavformat version: 51.8.0 built on Feb 25 2007 17:42:05, gcc: 4.1.1 (Gentoo 4.1.1-r3)
no longer in the tree -> setting as "fixed"