From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 658CA139086 for ; Sat, 14 Jan 2017 01:33:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82010E0D85; Sat, 14 Jan 2017 01:33:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4ABC1E0D85 for ; Sat, 14 Jan 2017 01:33:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D839B341822 for ; Sat, 14 Jan 2017 01:33:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E0292642 for ; Sat, 14 Jan 2017 01:33:26 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1484357602.d57e2633cf40bec897c0baa75b9cb58225caa2f2.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/simgear/, dev-games/simgear/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-games/simgear/Manifest dev-games/simgear/files/simgear-3.4.0-osg340_fixes.patch dev-games/simgear/simgear-2016.3.1.ebuild dev-games/simgear/simgear-2016.4.3.ebuild dev-games/simgear/simgear-3.4.0.ebuild X-VCS-Directories: dev-games/simgear/ dev-games/simgear/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: d57e2633cf40bec897c0baa75b9cb58225caa2f2 X-VCS-Branch: master Date: Sat, 14 Jan 2017 01:33:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1e39aa5d-0aed-4889-b284-07fb86f303c5 X-Archives-Hash: 7ac323a6a3ef7bdf38eaa6fafbb29122 commit: d57e2633cf40bec897c0baa75b9cb58225caa2f2 Author: Lars Wendler gentoo org> AuthorDate: Sat Jan 14 01:32:57 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sat Jan 14 01:33:22 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d57e2633 dev-games/simgear: Security cleanup (bug #602658). Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-games/simgear/Manifest | 3 - .../simgear/files/simgear-3.4.0-osg340_fixes.patch | 203 --------------------- dev-games/simgear/simgear-2016.3.1.ebuild | 51 ------ dev-games/simgear/simgear-2016.4.3.ebuild | 51 ------ dev-games/simgear/simgear-3.4.0.ebuild | 47 ----- 5 files changed, 355 deletions(-) diff --git a/dev-games/simgear/Manifest b/dev-games/simgear/Manifest index d5b71bc..068e5f6 100644 --- a/dev-games/simgear/Manifest +++ b/dev-games/simgear/Manifest @@ -1,4 +1 @@ -DIST simgear-2016.3.1.tar.bz2 1199016 SHA256 ae46e1273673be41028ee912d1826e87185ab594053c493707f9dbdeea5159dd SHA512 5c0e260da8b09e815cd6607f3e977b5827f450e9fbe10bfaef019d7489506905fde56a5ab6748165431088bbae7fa61d4bccc27e4d7828c8bc6a05247b450716 WHIRLPOOL c349848d7e85166d7161272d722bebed7b387e6cd4c9db6cd405e3d042ee212b4448231eb92e0a86b8dc00c497af2c69455edd7d7d1cd4007d9ca09e91e575a7 -DIST simgear-2016.4.3.tar.bz2 1201326 SHA256 6933550215818c2043b84df01b6bf5f7adef218c8648b510b8202e394003d2bd SHA512 aaf56f195fed9957ba4bd8b17deb1985596ed793e131723a6f81f85a4d4f178a923c5f2df3d53dca88957fc46f887b086353b99500c3f56952a70ae34f734b5e WHIRLPOOL 190e642919fb3ac519f683743b090729be410f06b5f4129abe43e8c542aed68a34e186d612c3760552d658e52060cf33735e653014f8a5171d3c825904a148e0 DIST simgear-2016.4.4.tar.bz2 1200320 SHA256 5514fd0006bbfcdbdc0e2dab7da41eae491ea03a6246cc6a009590032b2fc1dc SHA512 f7b9124e40dba347cd73304fc1b20a5b6d09eb476bc41949d5be615be968a6a66f64141b87819bfa357bd1fd376b2e1fc18334eb1d4df2d4f1e3f95ef4a1928d WHIRLPOOL 3fb4d580d84633a6a852f6a8ab5e708afde9616b636bb5b49d30b56ed232d9938606f602d473e51855605d2544b364691ae362ec974f56b34e32507a37752221 -DIST simgear-3.4.0.tar.bz2 1057455 SHA256 927d66fe72aacb9dacced4506430bd5fc7726bc8d3d07d6f1866bc4cb11a5894 SHA512 9ebf49ea2f024f0e52a4d18ba6f77361e7b9f51a0e7238661b4b2fd9db0176bdd948612d9b4aec3ae4d8210676e7533dfc0308b9c71bdeb22e99a68b90d81320 WHIRLPOOL bb48b6640409a96816ade77c22a91f88c452d339165dd0241354c26ff27572a14538ecfd91265c239def4621657be8766c081cffc237711a691d7ef54461b548 diff --git a/dev-games/simgear/files/simgear-3.4.0-osg340_fixes.patch b/dev-games/simgear/files/simgear-3.4.0-osg340_fixes.patch deleted file mode 100644 index 97ca64a..00000000 --- a/dev-games/simgear/files/simgear-3.4.0-osg340_fixes.patch +++ /dev/null @@ -1,203 +0,0 @@ -commit 51ff30f386ac098f477ff16c71756bcd089dcfae -Author: Tim Moore -Date: Sun Apr 19 17:11:49 2015 +0200 - - changes for OSG 3.3.4 and later - - The public interfaces to osgText and osg::GLExtensions changed. - -diff --git a/simgear/canvas/elements/CanvasText.cxx b/simgear/canvas/elements/CanvasText.cxx -index 4b7600f..ead600b 100644 ---- a/simgear/canvas/elements/CanvasText.cxx -+++ b/simgear/canvas/elements/CanvasText.cxx -@@ -159,8 +159,12 @@ namespace canvas - - if( empty() ) - return pos; -- -+#if OSG_VERSION_LESS_THAN(3,3,4) - GlyphQuads::Coords2 const& coords = _quads->_coords; -+#else -+ GlyphQuads::Coords2 refCoords = _quads->_coords; -+ GlyphQuads::Coords2::element_type &coords = *refCoords.get(); -+#endif - size_t global_i = _begin + i; - - if( global_i == _begin ) -@@ -194,7 +198,12 @@ namespace canvas - return cursorPos(0); - - GlyphQuads::Glyphs const& glyphs = _quads->_glyphs; -+ #if OSG_VERSION_LESS_THAN(3,3,4) - GlyphQuads::Coords2 const& coords = _quads->_coords; -+#else -+ GlyphQuads::Coords2 refCoords = _quads->_coords; -+ GlyphQuads::Coords2::element_type &coords = *refCoords.get(); -+#endif - - float const HIT_FRACTION = 0.6; - float const character_width = _text->getCharacterHeight() -@@ -627,7 +636,13 @@ namespace canvas - - const GlyphQuads& quads = _textureGlyphQuadMap.begin()->second; - const GlyphQuads::Glyphs& glyphs = quads._glyphs; -- const GlyphQuads::Coords2& coords = quads._coords; -+#if OSG_VERSION_LESS_THAN(3,3,4) -+ GlyphQuads::Coords2 const& coords = quads._coords; -+#else -+ GlyphQuads::Coords2 refCoords = quads._coords; -+ GlyphQuads::Coords2::element_type &coords = *refCoords.get(); -+#endif -+ - const GlyphQuads::LineNumbers& line_numbers = quads._lineNumbers; - - float wr = _characterHeight / getCharacterAspectRatio(); -diff --git a/simgear/scene/material/Technique.cxx b/simgear/scene/material/Technique.cxx -index 93a17b8..96856cd 100644 ---- a/simgear/scene/material/Technique.cxx -+++ b/simgear/scene/material/Technique.cxx -@@ -326,9 +326,15 @@ public: - = GL2Extensions::Get(static_cast(contextId), true); - if (!extensions) - return; -+#if OSG_VERSION_LESS_THAN(3,3,3) - if (!extensions->isGlslSupported()) - return; - value = extensions->getLanguageVersion(); -+#else -+ if (!extensions->isGlslSupported) -+ return; -+ value = extensions->glslLanguageVersion; -+#endif - } - }; - -@@ -357,7 +363,11 @@ public: - = GL2Extensions::Get(static_cast(contextId), true); - if (!extensions) - return; -+#if OSG_VERSION_LESS_THAN(3,3,3) - value = extensions->isGlslSupported(); -+#else -+ value = extensions->isGlslSupported; -+#endif - } - }; - -diff --git a/simgear/scene/sky/CloudShaderGeometry.cxx b/simgear/scene/sky/CloudShaderGeometry.cxx -index 8b4ea16..7800839 100644 ---- a/simgear/scene/sky/CloudShaderGeometry.cxx -+++ b/simgear/scene/sky/CloudShaderGeometry.cxx -@@ -127,8 +127,12 @@ void CloudShaderGeometry::drawImplementation(RenderInfo& renderInfo) const - - sortData.frameSorted = frameNumber; - } -- -+ -+#if OSG_VERSION_LESS_THAN(3,3,3) - const Extensions* extensions = getExtensions(state.getContextID(),true); -+#else -+ const GLExtensions* extensions = GLExtensions::Get(state.getContextID(), true); -+#endif - GLfloat ua1[3] = { (GLfloat) alpha_factor, - (GLfloat) shade_factor, - (GLfloat) cloud_height }; -diff --git a/simgear/scene/tgdb/ShaderGeometry.cxx b/simgear/scene/tgdb/ShaderGeometry.cxx -index 5d286c3..ac9ec93 100644 ---- a/simgear/scene/tgdb/ShaderGeometry.cxx -+++ b/simgear/scene/tgdb/ShaderGeometry.cxx -@@ -47,7 +47,11 @@ void ShaderGeometry::addObject(const Vec3& position, float scale, - void ShaderGeometry::drawImplementation(osg::RenderInfo& renderInfo) const - { - State& state = *renderInfo.getState(); -+#if OSG_VERSION_LESS_THAN(3,3,3) - const Extensions* extensions = getExtensions(state.getContextID(), true); -+#else -+ const GLExtensions* extensions = GLExtensions::Get(state.getContextID(), true); -+#endif - Vec4Array::const_iterator citer = _posScaleArray->begin(); - Vec4Array::const_iterator cend = _posScaleArray->end(); - FloatArray::const_iterator viter = _vertexAttribArray->begin(); -diff --git a/simgear/scene/util/SGSceneFeatures.cxx b/simgear/scene/util/SGSceneFeatures.cxx -index 4367e45..79f182f 100644 ---- a/simgear/scene/util/SGSceneFeatures.cxx -+++ b/simgear/scene/util/SGSceneFeatures.cxx -@@ -25,11 +25,13 @@ - - #include "SGSceneFeatures.hxx" - -+#include - #include - #include - #include - #include - #include -+#include - - #include - #include -@@ -84,12 +86,18 @@ SGSceneFeatures::setTextureCompression(osg::Texture* texture) const - bool - SGSceneFeatures::getHavePointSprites(unsigned contextId) const - { -+#if OSG_VERSION_LESS_THAN(3,3,3) - return osg::PointSprite::isPointSpriteSupported(contextId); -+#else -+ const osg::GLExtensions* ex = osg::GLExtensions::Get(contextId, true); -+ return ex && ex->isPointSpriteSupported; -+#endif - } - - bool - SGSceneFeatures::getHaveFragmentPrograms(unsigned contextId) const - { -+#if OSG_VERSION_LESS_THAN(3,3,3) - const osg::FragmentProgram::Extensions* fpe; - fpe = osg::FragmentProgram::getExtensions(contextId, true); - if (!fpe) -@@ -98,11 +106,16 @@ SGSceneFeatures::getHaveFragmentPrograms(unsigned contextId) const - return false; - - return true; -+#else -+ const osg::GLExtensions* ex = osg::GLExtensions::Get(contextId, true); -+ return ex && ex->isFragmentProgramSupported; -+#endif - } - - bool - SGSceneFeatures::getHaveVertexPrograms(unsigned contextId) const - { -+#if OSG_VERSION_LESS_THAN(3,3,3) - const osg::VertexProgram::Extensions* vpe; - vpe = osg::VertexProgram::getExtensions(contextId, true); - if (!vpe) -@@ -111,6 +124,10 @@ SGSceneFeatures::getHaveVertexPrograms(unsigned contextId) const - return false; - - return true; -+#else -+ const osg::GLExtensions* ex = osg::GLExtensions::Get(contextId, true); -+ return ex && ex->isVertexProgramSupported; -+#endif - } - - bool -@@ -124,6 +141,7 @@ SGSceneFeatures::getHaveShaderPrograms(unsigned contextId) const - bool - SGSceneFeatures::getHavePointParameters(unsigned contextId) const - { -+#if OSG_VERSION_LESS_THAN(3,3,3) - const osg::Point::Extensions* pe; - pe = osg::Point::getExtensions(contextId, true); - if (!pe) -@@ -131,5 +149,9 @@ SGSceneFeatures::getHavePointParameters(unsigned contextId) const - if (!pe->isPointParametersSupported()) - return false; - return true; -+#else -+ const osg::GLExtensions* ex = osg::GLExtensions::Get(contextId, true); -+ return ex && ex->isPointParametersSupported; -+#endif - } - diff --git a/dev-games/simgear/simgear-2016.3.1.ebuild b/dev-games/simgear/simgear-2016.3.1.ebuild deleted file mode 100644 index 18dac11..00000000 --- a/dev-games/simgear/simgear-2016.3.1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -inherit eutils cmake-utils - -DESCRIPTION="Development library for simulation games" -HOMEPAGE="http://www.simgear.org/" -SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" - -LICENSE="GPL-2" -KEYWORDS="amd64 ~ppc x86" -SLOT="0" -IUSE="+dns debug subversion test" - -COMMON_DEPEND=" - dev-libs/expat - >=dev-games/openscenegraph-3.2.0 - media-libs/openal - net-misc/curl - sys-libs/zlib - virtual/opengl - dns? ( net-libs/udns ) -" -DEPEND="${COMMON_DEPEND} - >=dev-libs/boost-1.44 -" -RDEPEND="${COMMON_DEPEND} - subversion? ( dev-vcs/subversion ) -" - -DOCS=(AUTHORS ChangeLog NEWS README Thanks) - -src_configure() { - local mycmakeargs=( - -DENABLE_DNS=$(usex dns) - -DENABLE_PKGUTIL=ON - -DENABLE_RTI=OFF - -DENABLE_SOUND=ON - -DENABLE_TESTS=$(usex test) - -DSIMGEAR_HEADLESS=OFF - -DSIMGEAR_SHARED=ON - -DSYSTEM_EXPAT=ON - -DSYSTEM_UDNS=ON - -DUSE_AEONWAVE=OFF - -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it - ) - cmake-utils_src_configure -} diff --git a/dev-games/simgear/simgear-2016.4.3.ebuild b/dev-games/simgear/simgear-2016.4.3.ebuild deleted file mode 100644 index 39f6c59..00000000 --- a/dev-games/simgear/simgear-2016.4.3.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -inherit eutils cmake-utils - -DESCRIPTION="Development library for simulation games" -HOMEPAGE="http://www.simgear.org/" -SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -SLOT="0" -IUSE="+dns debug subversion test" - -COMMON_DEPEND=" - dev-libs/expat - >=dev-games/openscenegraph-3.2.0 - media-libs/openal - net-misc/curl - sys-libs/zlib - virtual/opengl - dns? ( net-libs/udns ) -" -DEPEND="${COMMON_DEPEND} - >=dev-libs/boost-1.44 -" -RDEPEND="${COMMON_DEPEND} - subversion? ( dev-vcs/subversion ) -" - -DOCS=(AUTHORS ChangeLog NEWS README Thanks) - -src_configure() { - local mycmakeargs=( - -DENABLE_DNS=$(usex dns) - -DENABLE_PKGUTIL=ON - -DENABLE_RTI=OFF - -DENABLE_SOUND=ON - -DENABLE_TESTS=$(usex test) - -DSIMGEAR_HEADLESS=OFF - -DSIMGEAR_SHARED=ON - -DSYSTEM_EXPAT=ON - -DSYSTEM_UDNS=ON - -DUSE_AEONWAVE=OFF - -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it - ) - cmake-utils_src_configure -} diff --git a/dev-games/simgear/simgear-3.4.0.ebuild b/dev-games/simgear/simgear-3.4.0.ebuild deleted file mode 100644 index d2a2f4b..00000000 --- a/dev-games/simgear/simgear-3.4.0.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils cmake-utils - -DESCRIPTION="Development library for simulation games" -HOMEPAGE="http://www.simgear.org/" -SRC_URI="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${P}.tar.bz2" - -LICENSE="GPL-2" -KEYWORDS="amd64 ~ppc x86" -SLOT="0" -IUSE="debug subversion test" - -COMMON_DEPEND=" - dev-libs/expat - >=dev-games/openscenegraph-3.2.0 - media-libs/openal - sys-libs/zlib - virtual/opengl -" -DEPEND="${COMMON_DEPEND} - >=dev-libs/boost-1.44 -" -RDEPEND="${COMMON_DEPEND} - subversion? ( dev-vcs/subversion ) -" - -DOCS=(AUTHORS ChangeLog NEWS README Thanks) - -PATCHES=( "${FILESDIR}/${P}-osg340_fixes.patch" ) - -src_configure() { - local mycmakeargs=( - -DENABLE_PKGUTIL=ON - -DENABLE_RTI=OFF - -DENABLE_SOUND=ON - -DSIMGEAR_HEADLESS=OFF - -DSIMGEAR_SHARED=ON - -DSYSTEM_EXPAT=ON - $(cmake-utils_use_enable test TESTS) - ) - cmake-utils_src_configure -}