Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 461634

Summary: media-video/mplayer-1.1.1-r1: patch to build with LTO features enabled
Product: Gentoo Linux Reporter: cmuelle8 <cmue81>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: UNCONFIRMED ---    
Severity: normal CC: esigra, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: ebuild patch to let mplayer build using gcc's LTO options

Description cmuelle8 2013-03-13 13:28:00 UTC
Though LTO is not officially supported in Gentoo yet, the patch adds just three lines to let the ebuild support it.

Basically, sed checks config.h if the EXTERN_PREFIX definition is properly terminated.  This definition gets improperly set with an embedded newline if lto options of gcc are enabled.

This bug should probably be fixed upstream as well.


Reproducible: Always
Comment 1 cmuelle8 2013-03-13 13:29:42 UTC
Created attachment 341890 [details, diff]
ebuild patch to let mplayer build using gcc's LTO options

ebuild patch to let mplayer build using gcc's LTO options
Comment 2 Jiří Moravec 2013-04-14 23:36:40 UTC
Thanks for patch.
Comment 3 Sasha Medvedev 2013-04-28 05:19:00 UTC
Yes, thank you for the patch. I was naive to try the patch also with mplayer2. The compilation fail somewhere in the middle with a bunch of such messeges:

libmpcodecs/vf_fspp.c: Assembler messages:
libmpcodecs/vf_fspp.c:900: Error: junk `C 0000000000000001 0000000000000001MM_FIX_0_707106781' after expression
libmpcodecs/vf_fspp.c:905: Error: junk `C 0000000000000001 0000000000000001MM_2' after expression
libmpcodecs/vf_fspp.c:931: Error: junk `C 0000000000000001 0000000000000001MM_FIX_1_414213562_A' after expression
libmpcodecs/vf_fspp.c:947: Error: junk `C 0000000000000001 0000000000000001MM_FIX_0_382683433' after expression
libmpcodecs/vf_fspp.c:949: Error: junk `C 0000000000000001 0000000000000001MM_FIX_0_541196100' after expression
libmpcodecs/vf_fspp.c:951: Error: junk `C 0000000000000001 0000000000000001MM_FIX_1_306562965' after expression