<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/gltron/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/gltron/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 23 Dec 2024 16:35:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gltron/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>gcc-14 build fix</title><link>https://sourceforge.net/p/gltron/patches/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://gcc.gnu.org/gcc-14/porting_to.html" rel="nofollow"&gt;https://gcc.gnu.org/gcc-14/porting_to.html&lt;/a&gt; switched a few warnings to errors.&lt;/p&gt;
&lt;p&gt;The patch fixes the build against gcc-14. Without the change the build fails as&lt;br/&gt;
&lt;a href="https://hydra.nixos.org/build/281975802/nixlog/3:" rel="nofollow"&gt;https://hydra.nixos.org/build/281975802/nixlog/3:&lt;/a&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;gltron&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;In&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="nx"&gt;main&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;gltron&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;passing&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;argument&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="nx"&gt;initSubsystems&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;incompatible&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pointer&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;type&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;Wincompatible&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pointer&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;types&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="nx"&gt;initSubsystems&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;argc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                              &lt;/span&gt;&lt;span class="o"&gt;^~~~&lt;/span&gt;
&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                              &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                              &lt;/span&gt;&lt;span class="nx"&gt;char&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergei Trofimovich</dc:creator><pubDate>Mon, 23 Dec 2024 16:35:18 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netacc28a8793c736c6fc4264596b218a1445b417cb</guid></item><item><title>Patch for GCC 9.x</title><link>https://sourceforge.net/p/gltron/patches/6/</link><description>&lt;div class="markdown_content"&gt;&lt;h4 id="gcc-9x-patch"&gt;GCC 9.x patch&lt;/h4&gt;
&lt;p&gt;Here's a patch for compiling GLtron using GCC 9.x (also attached to this post):&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="gd"&gt;--- lua/src/lib/liolib_old.c    2020-10-15 13:00:10.814884200 +0000&lt;/span&gt;
&lt;span class="gi"&gt;+++ lua/src/lib/liolib.c    2020-10-15 12:17:10.876159100 +0000&lt;/span&gt;
&lt;span class="gu"&gt;@@ -10,6 +10,7 @@&lt;/span&gt;
 #include &amp;lt;stdio.h&amp;gt;
 #define __USE_MISC /* for mkstemp() */
 #include &amp;lt;stdlib.h&amp;gt;
&lt;span class="gi"&gt;+#include &amp;lt;stdint.h&amp;gt;&lt;/span&gt;
 #include &amp;lt;string.h&amp;gt;
 #include &amp;lt;time.h&amp;gt;
 #include &amp;lt;assert.h&amp;gt;
&lt;span class="gd"&gt;--- nebu/scripting/scripting_old.c  2020-10-15 13:00:00.302948300 +0000&lt;/span&gt;
&lt;span class="gi"&gt;+++ nebu/scripting/scripting.c  2020-10-15 12:57:32.583060500 +0000&lt;/span&gt;
&lt;span class="gu"&gt;@@ -169,16 +169,16 @@&lt;/span&gt;
   return status;
 }    

&lt;span class="gd"&gt;-void scripting_RunFile(char *name) {&lt;/span&gt;
&lt;span class="gi"&gt;+void scripting_RunFile(const char *name) {&lt;/span&gt;
   lua_dofile(L, name);
 }

&lt;span class="gd"&gt;-void scripting_Run(char *command) {&lt;/span&gt;
&lt;span class="gi"&gt;+void scripting_Run(const char *command) {&lt;/span&gt;
   /* fprintf(stderr, "[command] %s\n", command); */
   lua_dostring(L, command);
 }

&lt;span class="gd"&gt;-void scripting_RunFormat(char *format, ... ) {&lt;/span&gt;
&lt;span class="gi"&gt;+void scripting_RunFormat(const char *format, ... ) {&lt;/span&gt;
   char buf[4096];
   va_list ap;
   va_start(ap, format);
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;To apply the patch file, move it to the directory containing the gltron source (gltron-0.70) and run &lt;code&gt;patch -p0 &amp;lt; patch.diff&lt;/code&gt;&lt;/p&gt;
&lt;h4 id="additional-notes"&gt;Additional notes&lt;/h4&gt;
&lt;p&gt;When running &lt;code&gt;./configure&lt;/code&gt; add the flag &lt;code&gt;--enable-warn=off&lt;/code&gt; or else the program won't compile because it will treat warnings as errors.&lt;/p&gt;
&lt;p&gt;If you're adding &lt;code&gt;--enable-localdata&lt;/code&gt; then delete all Makefiles in the &lt;code&gt;music&lt;/code&gt; directory before running the game, there should be only one file remaining there named &lt;code&gt;song_revenge_of_cats.it&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob B.</dc:creator><pubDate>Thu, 15 Oct 2020 13:04:37 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net05581f18a1cdc141333e79fe25e77d9588e04de5</guid></item><item><title/><link>https://sourceforge.net/p/gltron/patches/5/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Umbach</dc:creator><pubDate>Sat, 15 Sep 2012 17:47:41 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netd6e5a6b64d37f1bd4edf758ee6d713ff3d9c49cc</guid></item><item><title/><link>https://sourceforge.net/p/gltron/patches/4/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Umbach</dc:creator><pubDate>Sat, 15 Sep 2012 17:47:41 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netee7a8b8d505ecda053098c52d6c0585010a3680d</guid></item><item><title/><link>https://sourceforge.net/p/gltron/patches/3/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Umbach</dc:creator><pubDate>Sat, 15 Sep 2012 17:47:41 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta5ffcb14aa9f1765e5f4c8950d5656443e636509</guid></item><item><title/><link>https://sourceforge.net/p/gltron/patches/2/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Umbach</dc:creator><pubDate>Sat, 15 Sep 2012 17:47:41 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta5c3725f1043c475bba5ad02560160250d0d7057</guid></item><item><title/><link>https://sourceforge.net/p/gltron/patches/1/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Umbach</dc:creator><pubDate>Sat, 15 Sep 2012 17:47:34 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netbcb7932195986dcd4fb3f363daa5a930bf7a9156</guid></item></channel></rss>