Summary: | dev-games/openscenegraph-3.5.1-r2 stabilisation (was: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘get_buffer’) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> | ||||||||
Component: | Stabilization | Assignee: | Maciej Mrozowski <reavertm> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | normal | CC: | alexandref75, andrius, atoth, erikdenstore+gbugs, ervin.peters, games, gentoo-bugs, gentoobugs, Martin.vGagern, toralf | ||||||||
Priority: | Normal | Flags: | stable-bot:
sanity-check+
|
||||||||
Version: | unspecified | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Package list: |
=dev-games/openscenegraph-3.5.1-r2
|
Runtime testing required: | --- | ||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 574788 | ||||||||||
Attachments: |
|
Description
Juergen Rose
2016-12-06 08:58:32 UTC
The OpenSceneGraph repo on github (but not the svn/trac thing you will find on the website in SRC_URI) has a patch[1] adressing this. openscenegraph-3.5.1-r1 successfully builds for me after dropping it in /etc/portage/patches. On a mildly annoyed note, since upstream keeps outdated information their site, it would be nice if we could add a link to their *actual* development repo. SRC_URI or metadata.xml spring to mind as good places for it. 1: https://github.com/openscenegraph/OpenSceneGraph/commit/e85d5743341585c6e6eb1ac693884f80e1fa06ce Created attachment 455988 [details]
ebuild
I got version 3.5.5 to work, have attached ebuild. Had to modify SRC_URI to github, remove patch section, change source directory
(In reply to Carl W. Harlow from comment #2) > Created attachment 455988 [details] > ebuild > > I got version 3.5.5 to work, have attached ebuild. Had to modify SRC_URI to > github, remove patch section, change source directory 'emerge -v1 openscenegraph' with version 3.5.5 works here too. But the subsequent 'emerge -v1 simgear' fails with: E_CONFIG_H -DHAVE_INTTYPES_H -DSimGearScene_EXPORTS -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1_build/simgear -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/ShivaVG/include -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1 -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1_build -I/usr/include/AL -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/3rdparty/utf8/source -DNDEBUG -march=amdfam10 -O2 -pipe -Wall -Wno-unused-local-typedefs -DBOOST_BIMAP_DISABLE_SERIALIZATION -fPIC -std=gnu++98 -o CMakeFiles/SimGearScene.dir/canvas/layout/Layout.cxx.o -c /var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/layout/Layout.cxx /var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/elements/CanvasText.cxx: In member function ‘SGVec2i simgear::canvas::Text::TextOSG::sizeForWidth(int) const’: /var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/elements/CanvasText.cxx:501:73: error: no matching function for call to ‘osgText::Font::getKerning(unsigned int&, unsigned int&, const osgText::KerningType&)’ _kerningType ) ); 'emerge -v1 flightgear' fails as well, with: cd /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1_build/src/Main && /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DWITH_EVENTINPUT -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/3rdparty/iaxclient/lib -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/simgear/3rdparty/utf8 -I/usr/include/AL -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1 -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1_build/src -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1_build/src/Include -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/FDM/JSBSim -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -DNDEBUG -march=amdfam10 -O2 -pipe -Wall -D_REENTRANT -DBOOST_BIMAP_DISABLE_SERIALIZATION -fPIC -std=gnu++11 -o CMakeFiles/fgfs.dir/subsystemFactory.cxx.o -c /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/subsystemFactory.cxx In file included from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/positioninit.cxx:37:0: /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Airports/airport.hxx:363:18: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] mutable std::auto_ptr<FGGroundNetwork> _groundNetwork; ^ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/locale_conv.h:41:0, from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/locale:43, from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/iomanip:43, from /usr/include/simgear/timing/timestamp.hxx:36, from /usr/include/simgear/structure/subsystem_mgr.hxx:32, from /usr/include/simgear/structure/event_mgr.hxx:5, from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/positioninit.cxx:30: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^ In file included from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx:68:0: /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.hxx:163:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<OptionsPrivate> p; ^ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/memory:81:0, from /usr/include/simgear/timing/sg_time.hxx:39, from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx:31: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^ /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx: In function ‘void fgSetDefaults()’: /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx:230:26: error: ‘getThreadSafeReferenceCounting’ is not a member of ‘osg::Referenced’ Created attachment 456414 [details, diff]
ffmpeg-3 compatibility patch
Added a ffmpeg3.patch that allows to compile openscenegraph-3.5.1 with ffmpeg-3
interdiff -p1 says the patch from comment 5 and the one from upstream commit e85d574 referenced in comment 1 are equivalent. As suggested in comment 1, using this as a user patch worked for me as well. I used these commands: mkdir -p /etc/portage/patches/dev-games/openscenegraph-3.5.1 wget -O /etc/portage/patches/dev-games/openscenegraph-3.5.1/gentoo601794a.patch \ https://github.com/openscenegraph/OpenSceneGraph/commit/e85d5743341585c6e6e.patch emerge -1 openscenegraph simgear and flightgear remerged successfully for me after this, so the problems reported in comment 3 and comment 4 appear unrelated to me. (In reply to Martin von Gagern from comment #6) > interdiff -p1 says the patch from comment 5 and the one from upstream commit > e85d574 referenced in comment 1 are equivalent. As suggested in comment 1, > using this as a user patch worked for me as well. I used these commands: > > mkdir -p /etc/portage/patches/dev-games/openscenegraph-3.5.1 > wget -O > /etc/portage/patches/dev-games/openscenegraph-3.5.1/gentoo601794a.patch \ > https://github.com/openscenegraph/OpenSceneGraph/commit/e85d5743341585c6e6e. > patch > emerge -1 openscenegraph > > simgear and flightgear remerged successfully for me after this, so the > problems reported in comment 3 and comment 4 appear unrelated to me. I can confirm that this worked for also. This and #603298 seem to be duplicates of each other… (In reply to Vitaly from comment #5) > Created attachment 456414 [details, diff] [details, diff] > ffmpeg-3 compatibility patch > > Added a ffmpeg3.patch that allows to compile openscenegraph-3.5.1 with > ffmpeg-3 Using the patch from Comment 5 I could emerge openscenegraph and simgear and flightgear as well. *** Bug 603298 has been marked as a duplicate of this bug. *** Pleeeease, can we get an updated ebuild? (In reply to Vitaly from comment #5) > Created attachment 456414 [details, diff] [details, diff] > ffmpeg-3 compatibility patch > > Added a ffmpeg3.patch that allows to compile openscenegraph-3.5.1 with > ffmpeg-3 The patch works for me, too. openscenegraph compiled with this and external (out-of-portage) software depending on this works as well. *** Bug 609700 has been marked as a duplicate of this bug. *** Thanks, I've added -r2 to tree with the upstream patch. Arches, please stabilise to fix build with recently stabilised ffmpeg-3. amd64 stable x86 stable. Closing. |