Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324513 - media-video-rtmpdump-2.2e-r2 causes media-video/ffmpeg-0.6.0[rtmp] build failure
Summary: media-video-rtmpdump-2.2e-r2 causes media-video/ffmpeg-0.6.0[rtmp] build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 19:48 UTC by Marc-Antoine Perennou
Modified: 2010-06-17 21:48 UTC (History)
1 user (show)

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


Attachments
build log (1276803799-install-media-video_ffmpeg-0.6:0::gentoo.out,71.50 KB, text/plain)
2010-06-17 19:50 UTC, Marc-Antoine Perennou
Details
patch to fix the ebuild (fix-rtmpdump-ebuild.patch,547 bytes, text/plain)
2010-06-17 20:31 UTC, Marc-Antoine Perennou
Details

Note You need to log in before you can comment on or make changes to this bug.
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