Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520442 - dev-games/openscenegraph-3.2.1 version bump
Summary: dev-games/openscenegraph-3.2.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks: 555510
  Show dependency tree
 
Reported: 2014-08-21 22:06 UTC by Émeric Maschino
Modified: 2017-04-15 13:21 UTC (History)
3 users (show)

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


Attachments
New dev-games/openscenegraph-3.2.1.ebuild introducing OSG 3.2.1 (openscenegraph-3.2.1.ebuild,3.31 KB, text/plain)
2014-08-21 22:07 UTC, Émeric Maschino
Details
OSG 3.2.1-specific patch to add to dev-games/openscenegraph/files/ (openscenegraph-3.2.1-cmake.patch,11.91 KB, patch)
2014-08-21 22:09 UTC, Émeric Maschino
Details | Diff
Updated dev-games/openscenegraph/metadata.xml with dev-cpp/asio description (metadata.xml,1.26 KB, text/plain)
2014-08-21 22:10 UTC, Émeric Maschino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2014-08-21 22:06:44 UTC
Hello,

While dev-games/openscenegraph-3.0.1-r1.ebuild provides old stable OpenSceneGraph (OSG) 3.0.1, current stable OSG 3.2.1 isn't available in Gentoo's Portage tree. This is what I propose in the attached openscenegraph-3.2.1.ebuild, with accompanying files/openscenegraph-3.2.1-cmake.patch and updated metadata.xml files.

From OSG 3.0.1, OSG 3.2.1 on Linux:
- removed support for OpenAL (http://www.openal.org/);
- renamed FreeType support to Freetype (lower case t in "type");
- added support for the Qt5 framework (http://qt-project.org/qt5);
- added dependency on the libgta library (http://gta.nongnu.org/libgta.html) for building the GTA plugin;
- added dependency on the Asio C++ library (http://think-async.com/) for building the RestHTTP plugin.

The Qt5 framework and libgta library aren't available in Gentoo's Portage tree, so no particular change for these was made in the ebuild. By contrast, the Asio C++ library is available as dev-cpp/asio, so a new "asio" IUSE flag was introduced in the ebuild, with accompanying RDEPEND statement and CMake argument passing. The metadata.xml file was also updated with a description of the dev-cpp/asio package (BTW, it's not clear to me if this indeed should take place there, as alluded to by the comment in /usr/portage/profiles/use.local.desc, or if this should rather be added to /usr/portage/profiles/use.desc, as this one seems to still be current).

As for OSG 3.0.1, an OSG 3.2.1-specific CMake patch:
- replaces the FIND_PACKAGE use with MACRO_OPTIONAL_FIND_PACKAGE use, when appropriate;
- fixes the FLTK CMake detection;
- updates various Gentoo's specific directories (BTW, do we really need to install the OSG examples in /usr/bin directory rather than in the default /usr/share/OpenSceneGraph/bin directory?).

It's noteworthy that the changes of the OSG 3.0.1 patches against the libav and xine libraries have been merged upstream, so no more patching is necessary for these in OSG 3.2.1.

I'm running OSG 3.2.x for quite some time now on my ia64 workstation without noticeable problems.

Hope this will help introducing OSG 3.2.1 in Gentoo :-)

     Émeric
Comment 1 Émeric Maschino 2014-08-21 22:07:47 UTC
Created attachment 383292 [details]
New dev-games/openscenegraph-3.2.1.ebuild introducing OSG 3.2.1
Comment 2 Émeric Maschino 2014-08-21 22:09:14 UTC
Created attachment 383294 [details, diff]
OSG 3.2.1-specific patch to add to dev-games/openscenegraph/files/
Comment 3 Émeric Maschino 2014-08-21 22:10:18 UTC
Created attachment 383296 [details]
Updated dev-games/openscenegraph/metadata.xml with dev-cpp/asio description
Comment 4 Émeric Maschino 2014-08-21 22:17:04 UTC
(In reply to Émeric Maschino from comment #1)
> Created attachment 383292 [details]
> New dev-games/openscenegraph-3.2.1.ebuild introducing OSG 3.2.1

As you may have noticed, while OSG 3.2.1 is the current stable release, its source code still lies in the developer_releases section of the OSG website and not in the stable_releases section as one would expect. Hence the SRC_URI set to http://www.openscenegraph.org/downloads/developer_releases/. It's not a mistake!

     Émeric
Comment 5 Michael Weber (RETIRED) gentoo-dev 2014-08-26 07:16:58 UTC
Is this coordinated with the process happening in gamerlay overlay?
There is an __stable__ (WTF?!) 3.2.0 version with an non-functioning USE=truetype, I'm trying to fix right now.
Comment 6 Émeric Maschino 2014-08-26 20:56:23 UTC
(In reply to Michael Weber from comment #5)
> Is this coordinated with the process happening in gamerlay overlay?
> There is an __stable__ (WTF?!) 3.2.0 version with an non-functioning
> USE=truetype, I'm trying to fix right now.

No, not at all. I didn't even know the existence of this overlay. OpenSceneGraph (OSG) 3.2.0 was old stable of current 3.2 branch. Now, it's 3.2.1 since July 4th, IIRC.

Anyway, looking at 3.2.0 ebuild provided by gamerlay, besides being EAPI<5, it:
- still makes incorrect reference to tcl-tk/itk rather than (not available in Gentoo's Portage tree) sci-libs/itk. I've fixed this for current 3.0.1 ebuild (bug #520364) and obviously have it in my 3.2.1 ebuild;
- didn't made the change from uppercase "T" to lowercase "t" (from "FreeType" to "Freetype") in CMake configuration. Could this be your issue with the non-working "truetype" USE flag?
- didn't add an "asio" USE flag like I did in my 3.2.1 ebuild. This one installs dev-cpp/asio that's required for building the RestHTTP plugin;
- didn't track the newly added GTA plugin that can't be built at the moment as libgta isn't available in Gentoo's Portage tree. The day libgta enters Gentoo's Portage tree, GTA should be removed from the TODO comment and a proper "gta" USE flag should be introduced.

     Émeric
Comment 7 Julian Ospald 2014-10-10 20:17:36 UTC
+*openscenegraph-3.2.1 (10 Oct 2014)
+
+  10 Oct 2014; Julian Ospald <hasufell@gentoo.org>
+  +openscenegraph-3.2.1.ebuild, +files/openscenegraph-3.2.1-cmake.patch:
+  version bump wrt #520442, patch and ebuild from Émeric Maschino