Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407261 - media-video/vlc-9999 - multiple build failures
Summary: media-video/vlc-9999 - multiple build failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-03-07 11:26 UTC by Helmut Jarausch
Modified: 2012-03-20 09:26 UTC (History)
2 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 Helmut Jarausch 2012-03-07 11:26:10 UTC
media-video/vlc-9999 fails to build because of 2 reasons (at least)

First:
  The patch 010_all_freetype-font.patch doesn't apply anymore : no such file

Second:
  The following lines in modules/video_output/xcb/glx.c


#ifdef GLX_EXT_swap_control
    if (HasExtension (glx_extensions, "GLX_EXT_swap_control")) {
        PFNGLXSWAPINTERVALEXTPROC SwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC)GetProcAddress (NULL, "glXSwapIntervalEXT");
        if (!is_swap_interval_set && SwapIntervalEXT)
            is_swap_interval_set = !SwapIntervalEXT (dpy, sys->glwin, 1);
    }
#endif

don't work anymore since glxew.h (from media-libs/glew-1.7.0) defines
PFNGLXSWAPINTERVALEXTPROC to be function returning 'void'.
Thus the lines
        if (!is_swap_interval_set && SwapIntervalEXT)
            is_swap_interval_set = !SwapIntervalEXT (dpy, sys->glwin, 1);
 are invalid.
Comment 1 Stefan Radermacher 2012-03-07 12:29:50 UTC
The same problem as #2 seems to apply to version 2.0.0, too.
Comment 2 Alexis Ballier gentoo-dev 2012-03-09 20:53:26 UTC
(In reply to comment #0)
> media-video/vlc-9999 fails to build because of 2 reasons (at least)
> 
> First:
>   The patch 010_all_freetype-font.patch doesn't apply anymore : no such file

this is fine here...
Comment 3 jms 2012-03-11 04:08:21 UTC
(In reply to comment #1)
> The same problem as #2 seems to apply to version 2.0.0, too.

well it looks so
Bug 407593
Comment 4 jms 2012-03-11 18:40:28 UTC
equery d glew
 * These packages depend on glew:
media-gfx/enblend-4.0 (media-libs/glew)
media-libs/libprojectm-2.0.1-r1 (media-libs/glew)

so
if emerge with +projectm and one has glew >=media-libs/glew-1.7.0

build will fail

Proposed solution:
From my understanding(not that familiar with ebuild) ebuild should be changed:
line 116 from 
projectm? ( media-libs/libprojectm 
to 
projectm? ( media-libs/libprojectm <media-libs/glew-1.7.0)

To me this is an upstream bug
Comment 5 jms 2012-03-13 16:28:32 UTC
hum about projectm skip that my mistake my compile test with this was flawed...
unseting the projectm flag do not mean compile fine..
Comment 6 Alexis Ballier gentoo-dev 2012-03-20 09:26:15 UTC
problem was fixed in >2.0.1