From: "Christian Schmitt" <chris@ilovelinux.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-util/terragear-cs/files/, games-util/terragear-cs/
Date: Thu, 2 Jun 2011 07:59:11 +0000 (UTC) [thread overview]
Message-ID: <b69f495805f2091dba11763c90751028ada44e8b.christian@gentoo> (raw)
commit: b69f495805f2091dba11763c90751028ada44e8b
Author: Christian Schmitt <chris <AT> ilovelinux <DOT> de>
AuthorDate: Thu Jun 2 07:51:44 2011 +0000
Commit: Christian Schmitt <chris <AT> ilovelinux <DOT> de>
CommitDate: Thu Jun 2 07:58:57 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=b69f4958
[games-util/terragear-cs] new "remove limits" patch
---
.../files/terragear-cs-setrlimit.patch | 34 ++++++++++++++++++++
games-util/terragear-cs/terragear-cs-9999.ebuild | 1 +
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/games-util/terragear-cs/files/terragear-cs-setrlimit.patch b/games-util/terragear-cs/files/terragear-cs-setrlimit.patch
new file mode 100644
index 0000000..42561a9
--- /dev/null
+++ b/games-util/terragear-cs/files/terragear-cs-setrlimit.patch
@@ -0,0 +1,34 @@
+diff --git a/src/BuildTiles/Main/main.cxx b/src/BuildTiles/Main/main.cxx
+index f666187..f4c0579 100644
+--- a/src/BuildTiles/Main/main.cxx
++++ b/src/BuildTiles/Main/main.cxx
+@@ -1166,12 +1166,12 @@ int main(int argc, char **argv) {
+ // routine can blow up and allocate memory forever. We'd like
+ // this process to die before things get out of hand so we can try
+ // again with a smaller interior angle limit.
++#if 0
+ int result;
+ struct rlimit limit;
+ limit.rlim_cur = 40000000;
+ limit.rlim_max = 40000000;
+
+-#if 0
+ result = setrlimit( RLIMIT_DATA, &limit );
+ cout << "result of setting mem limit = " << result << endl;
+ result = setrlimit( RLIMIT_STACK, &limit );
+@@ -1180,7 +1180,6 @@ int main(int argc, char **argv) {
+ cout << "result of setting mem limit = " << result << endl;
+ result = setrlimit( RLIMIT_RSS, &limit );
+ cout << "result of setting mem limit = " << result << endl;
+-#endif
+
+ // cpu time limit since occassionally the triangulator can go into
+ // an infinite loop.
+@@ -1188,6 +1187,7 @@ int main(int argc, char **argv) {
+ limit.rlim_max = 300; // seconds
+ result = setrlimit( RLIMIT_CPU, &limit );
+ cout << "result of setting mem limit = " << result << endl;
++#endif
+ #endif // end of stuff that crashes Cygwin
+
+ // main construction data management class
diff --git a/games-util/terragear-cs/terragear-cs-9999.ebuild b/games-util/terragear-cs/terragear-cs-9999.ebuild
index 4a4f569..9657e07 100644
--- a/games-util/terragear-cs/terragear-cs-9999.ebuild
+++ b/games-util/terragear-cs/terragear-cs-9999.ebuild
@@ -25,6 +25,7 @@ DEPEND="dev-games/simgear
RDEPEND="${DEPEND}"
src_prepare() {
+ epatch ${FILESDIR}/"${PN}"-setrlimit.patch
epatch ${FILESDIR}/"${PN}"-use-agg.patch
eautoreconf
}
next reply other threads:[~2011-06-02 7:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 7:59 Christian Schmitt [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-11-08 11:28 [gentoo-commits] proj/gamerlay:master commit in: games-util/terragear-cs/files/, games-util/terragear-cs/ Christian Schmitt
2011-10-24 9:57 Christian Schmitt
2011-09-28 23:17 Christian Schmitt
2011-08-29 22:51 Christian Schmitt
2011-06-01 16:45 Christian Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b69f495805f2091dba11763c90751028ada44e8b.christian@gentoo \
--to=chris@ilovelinux.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox