Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135820 - emerge media-video/ffmpeg-0.4.9_p20050226-r3 missing gentoo-ffmpeg001.patch
Summary: emerge media-video/ffmpeg-0.4.9_p20050226-r3 missing gentoo-ffmpeg001.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 14:03 UTC by Rob Hess
Modified: 2008-08-18 00:13 UTC (History)
1 user (show)

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


Attachments
needed patch file for testing (gentoo-ffmpeg001.patch,752 bytes, patch)
2006-08-29 11:19 UTC, Thomas Kohler
Details | Diff
modified libdir-pic patch (ffmpeg-libdir-pic.patch,4.86 KB, patch)
2006-09-14 00:40 UTC, Rob Hess
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Hess 2006-06-06 14:03:37 UTC
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.
Comment 1 Rob Hess 2006-07-25 00:22:40 UTC
Hmm... Has anyone gotten a chance to check this bug out?  It's been unresolved for a while now.
Comment 2 Thomas Kohler 2006-08-29 11:19:31 UTC
Created attachment 95393 [details, diff]
needed patch file for testing
Comment 3 Thomas Kohler 2006-08-29 11:24:48 UTC
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)
Comment 4 Rob Hess 2006-09-14 00:40:22 UTC
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.
Comment 5 Thibaut Fernagut 2007-03-06 20:55:43 UTC
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)



Comment 6 Alexis Ballier gentoo-dev 2008-08-18 00:13:51 UTC
no longer in the tree -> setting as "fixed"