Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55630 - xine-lib-1_rc5-r2.ebuild broken w/ xvid/divx files (again)
Summary: xine-lib-1_rc5-r2.ebuild broken w/ xvid/divx files (again)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 55645 (view as bug list)
Depends on: 55534
Blocks:
  Show dependency tree
 
Reported: 2004-06-29 17:24 UTC by Jonathan Heaney
Modified: 2004-11-05 13:32 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Heaney 2004-06-29 17:24:45 UTC
this was fixed with -r1 (bug 55144), but -r2 breaks it again, protect-CFLAGS.patch-1_rc5-r2 file needs the first hunk deleted from it.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-06-29 18:13:07 UTC
ok, brought the fix back for -r2
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-06-29 23:39:11 UTC
could you paste
#emerge info ?
Comment 3 Jonathan Heaney 2004-06-30 04:05:02 UTC
OK but it's exactly the same problem/fix as before

 emerge info
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7
-alsa)
=================================================================
System uname: 2.6.7-alsa i686 Pentium III (Coppermine)
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -ftracer -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/s
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -ftracer -fomit-frame-pointer -pipe
"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http:
//www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb crypt dga encode esd foomaticdb gdbm gif gnome gpm g
tk gtk2 imlib joystick jpeg libg++ libwww mad matrox mikmod mmx motif mozilla mp
eg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime re
adline sdl slang spell sse ssl svga tcpd tiff truetype unicode x86 xml2 xmms xv 
xvid zlib"
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2004-06-30 05:02:52 UTC
*** Bug 55645 has been marked as a duplicate of this bug. ***
Comment 5 Imad R. Faiad 2004-06-30 05:15:59 UTC
ok, Martin, SpamKY, and everyone,

i'm sorry that i had caused you so much grief.

anyway, i have come up with a solution to get rid
of most of the "unsafe" compiler flags without breaking
xine-lib, and leave it to the user to determine
what compiler flags should be used.

in the ebuild, i run a series of sed's to get rid of
the offending compiler flags.

	sed -e 's:-ffast-math: :g' -i ${S}/configure
	sed -e 's:-fexpensive-optimizations: :g' -i ${S}/configure
	sed -e 's:-O3 :-O2 :g' -i ${S}/configure
	sed -e 's:-funroll-loops: :g' -i ${S}/configure
	
FYI, please note that xine-libs *DOES REQUIRE* "-finline-functions"
without which compiler flag the "ffmpeg" problem will creep in.

tested with the above compiler flags removed, and here are
my results:-

bash-2.05b# xine --list-plugins=video_decoder
This is xine (X11 gui) - a free video player v0.99.1.
(c) 2000-2003 The xine Team.

 Available xine's plugins:
   -Video decoder:
     dxr3-mpeg2, mpeg2, real, ffmpegvideo, image, qtv, yuv, rgb, bitplane,
     win32v, ffmpeg-wmv8.

hth