simgear
flightgear
opencity
This commit is contained in:
Erkan IŞIK
2025-10-13 00:32:09 +03:00
parent 66da5c160e
commit 957b671ab9
21 changed files with 751 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSIMGEAR_SHARED=ONN")
def build():
cmaketools.make()
def install():
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
#pisitools.dodoc("README*", "NEWS", "AUTHORS", "ChangeLog")
@@ -0,0 +1,27 @@
From f485a4e49cddeef436a212bc655799e71a9648a7 Mon Sep 17 00:00:00 2001
From: Fabrice Bellet <fabrice@bellet.info>
Date: Sun, 22 Sep 2013 11:54:54 +0200
Subject: [PATCH 1/3] remove unneeded header
---
simgear/misc/stopwatch.hxx | 4 ----
1 file changed, 4 deletions(-)
diff --git a/simgear/misc/stopwatch.hxx b/simgear/misc/stopwatch.hxx
index 3436438..70df459 100644
--- a/simgear/misc/stopwatch.hxx
+++ b/simgear/misc/stopwatch.hxx
@@ -42,10 +42,6 @@
# error This library requires C++
#endif
-#ifdef HAVE_CONFIG_H
-# include <simgear_config.h>
-#endif
-
#if defined(__linux__) && ! defined(HAVE_GETRUSAGE)
# define HAVE_GETRUSAGE
#endif
--
1.8.3.1
@@ -0,0 +1,34 @@
From 26fbf7c70010c7a16bdfe98a3282a13c9defd8b9 Mon Sep 17 00:00:00 2001
From: Fabrice Bellet <fabrice@bellet.info>
Date: Sun, 22 Sep 2013 11:56:12 +0200
Subject: [PATCH 2/3] check to be sure that %n is not being set as format type
(CVE-2012-2090)
---
simgear/scene/model/SGText.cxx | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/simgear/scene/model/SGText.cxx b/simgear/scene/model/SGText.cxx
index ca065b1..edf80bd 100644
--- a/simgear/scene/model/SGText.cxx
+++ b/simgear/scene/model/SGText.cxx
@@ -76,6 +76,16 @@ void SGText::UpdateCallback::operator()(osg::Node * node, osg::NodeVisitor *nv )
// FIXME:
// hopefully the users never specifies bad formats here
// this should better be something more robust
+ // It is never safe for format.c_str to be %n.
+ string unsafe ("%n");
+ size_t found;
+
+ found=format.find(unsafe);
+ if (found!=string::npos) {
+ SG_LOG(SG_GENERAL, SG_ALERT, "format type contained %n, but this is unsafe, reverting to %s");
+ format = "%s";
+ }
+
char buf[256];
if( numeric ) {
double d = property->getDoubleValue() * scale + offset;
--
1.8.3.1
+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>simgear</Name>
<Homepage>http://simgear.sourceforge.net/</Homepage>
<Packager>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>Simgear game library</Summary>
<Description>Developement library for simulation games.</Description>
<Archive sha1sum="5aea53531f03a217e81c9bcd06401f02e6617772" type="tarbz2">https://gitlab.com/flightgear/fgmeta/-/jobs/11398677078/artifacts/raw/sgbuild/simgear-2024.1.2.tar.bz2</Archive>
<BuildDependencies>
<Dependency>OpenSceneGraph-devel</Dependency>
<Dependency>cmake</Dependency>
<Dependency>mesa-glu-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>openal-devel</Dependency>
<Dependency>ffmpeg-devel</Dependency>
<Dependency>mesa-devel</Dependency>
<Dependency>c-ares-devel</Dependency>
<Dependency>boost-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">0001-remove-unneeded-header.patch</Patch>
<Patch level="1">0002-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch</Patch>
</Patches>
</Source>
<Package>
<Name>simgear</Name>
<RuntimeDependencies>
<Dependency>mesa</Dependency>
<Dependency>openal</Dependency>
<Dependency>c-ares</Dependency>
<Dependency>ffmpeg</Dependency>
<Dependency>zlib</Dependency>
<Dependency>OpenSceneGraph</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/SimGearCore/</Path>
</Files>
</Package>
<Package>
<Name>simgear-devel</Name>
<Summary>Development files for simgear</Summary>
<RuntimeDependencies>
<Dependency release="current">simgear</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2025-10-11</Date>
<Version>2024.1.2</Version>
<Comment>Version Bump</Comment>
<Name>Ali Cengiz Kurt</Name>
<Email>alicengizkurt@gmail.com</Email>
</Update>
<Update release="3">
<Date>2020-06-22</Date>
<Version>2020.1.2</Version>
<Comment>Version Bump</Comment>
<Name>Ali Cengiz Kurt</Name>
<Email>alicengizkurt@gmail.com</Email>
</Update>
<Update release="2">
<Date>2019-01-21</Date>
<Version>2018.3.1</Version>
<Comment>Version Bump</Comment>
<Name>Ali Cengiz Kurt</Name>
<Email>alicengizkurt@gmail.com</Email>
</Update>
<Update release="1">
<Date>2017-01-18</Date>
<Version>2016.4.4</Version>
<Comment>new release</Comment>
<Name>Ali Algul</Name>
<Email>aligulle3801@gmail.com</Email>
</Update>
</History>
</PISI>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>simgear</Name>
<Summary xml:lang="tr">Oyun kütüphanesi</Summary>
<Description xml:lang="tr">Genellikle simulasyon oyunları tarafından kullanılan bir kütüphanesi</Description>
<Description xml:lang="fr">Librairie de développement pour jeux de simulation.</Description>
<Description xml:lang="es">Librería de desarrollo para juegos de simulación</Description>
</Source>
<Package>
<Name>simgear-devel</Name>
<Summary xml:lang="tr">simgear için geliştirme dosyaları</Summary>
</Package>
</PISI>