Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505178 - media-gfx/blender USE=redcode should depend on media-libs/openjpeg and media-video/ffmpeg - CMake Error at CMakeLists.txt:433 (message): WITH_IMAGE_REDCODE requires WITH_IMAGE_OPENJPEG and WITH_CODEC_FFMPEG
Summary: media-gfx/blender USE=redcode should depend on media-libs/openjpeg and media-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 14:42 UTC by ArticIce(Juice)
Modified: 2014-03-20 16:57 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 ArticIce(Juice) 2014-03-20 14:42:57 UTC
For a clean install, Blender needs openjpeg and ffmpeg to build with redcode flag.

The error message is:
CMake Error at CMakeLists.txt:433 (message):
  WITH_IMAGE_REDCODE requires WITH_IMAGE_OPENJPEG and WITH_CODEC_FFMPEG

The previously discussed Bug 446932 only includes jpeg2k flag as a constraint for redcode, but this flag by itself does not provide media-libs/openjpeg (although it is used as a key for defining the CMake WITH_IMAGE_OPENJPEG variable).
ffmpeg use constraint is also necessary, since it is used to define the other WITH_CODEC_FFMPEG CMake variable.

This patch fixes the problem:


--- blender-2.69.ebuild 2014-03-20 15:18:25.968025475 +0000
+++ blender-2.69-r1.ebuild      2014-03-20 16:30:31.688824622 +0000
@@ -32,7 +32,7 @@
 IUSE="+boost +bullet collada colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack jpeg2k ndof nls openal openmp +openexr player redcode sdl sndfile sse sse2 tiff"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}
        player? ( game-engine )
-       redcode? ( jpeg2k )
+       redcode? ( jpeg2k ffmpeg )
        cycles? ( boost openexr tiff )
        nls? ( boost )
        game-engine? ( boost )"
@@ -78,7 +78,8 @@
        openexr? ( media-libs/openexr )
        sdl? ( media-libs/libsdl[audio,joystick] )
        sndfile? ( media-libs/libsndfile )
-       tiff? ( media-libs/tiff:0 )"
+       tiff? ( media-libs/tiff:0 )
+       redcode? ( media-video/ffmpeg media-libs/openjpeg )"
 DEPEND="${RDEPEND}
        >=dev-cpp/eigen-3.1.3:3
        doc? (
Comment 1 Julian Ospald 2014-03-20 16:57:03 UTC
+*blender-2.70 (20 Mar 2014)
+
+  20 Mar 2014; Julian Ospald <hasufell@gentoo.org> blender-2.69.ebuild,
+  +blender-2.70.ebuild, +files/07-blender-2.70-sse2.patch,
+  +files/04-blender-2.70-unbundle-glog.patch, metadata.xml:
+  version bump wrt #505138, fix redcode USE flag wrt #505178