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

Bug 324513

Summary: media-video-rtmpdump-2.2e-r2 causes media-video/ffmpeg-0.6.0[rtmp] build failure
Product: Gentoo Linux Reporter: Marc-Antoine Perennou <Marc-Antoine>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: hwoarang
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
patch to fix the ebuild

Description Marc-Antoine Perennou 2010-06-17 19:48:37 UTC
I just tried to compile ffmpeg with the rtmp flag on (with media-video/rtmpdump-2.2e-r2).
The compile failed (I'll attach the build log)
I then add :
if [[ "${CATEGORY}/${PN}" == "media-video/rtmpdump" ]] ; then
    CFLAGS="${CFLAGS} -fPIC"
fi
to my /etc/paludis/bashrc, and I recompiled rtmpdump, then I retried to compile ffmpeg, it all went just fine.

Reproducible: Always

Steps to Reproduce:
1. try to compile ffmpeg[rtmp]
2. see the failure
3. add -fPIC to FLAGS and recompile rtmpdump
4. it works

Actual Results:  
compile failure

Expected Results:  
it works out of the box
Comment 1 Marc-Antoine Perennou 2010-06-17 19:50:12 UTC
Created attachment 235793 [details]
build log
Comment 2 Marc-Antoine Perennou 2010-06-17 20:31:21 UTC
Created attachment 235795 [details]
patch to fix the ebuild
Comment 3 Marc-Antoine Perennou 2010-06-17 20:35:05 UTC
Actually, the OPT var passed to make (I don't think I'm wrong if I say that it's the user CFLAGS) override the one from the Makefile, so -fPIC is never applied (it isn't shown in the compile line), so I renamed it to OPTS and added OPT back to keep the user configuration (cf patch) and now it works without adding -fPIC to CFLAGS by myself
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2010-06-17 21:48:39 UTC
Fixed to -r3. Old ebuilds removed

Thanks for the patch