Your message dated Wed, 01 Jul 2015 12:23:36 +0000
with message-id <e1zah3a-0002w6...@franck.debian.org>
and subject line Bug#784857: fixed in marsshooter 0.7.5-3
has caused the Debian Bug report #784857,
regarding marsshooter: FTBFS with libsfml 2.3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
784857: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784857
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: marsshooter
Version: 0.7.5-2
Severity: normal
Tags: patch upstream
Forwarded: https://github.com/thelaui/M.A.R.S./pull/17

Hi,

marsshooter fails to build with the new version of SFML. The new version
will hopefully appear in experimental soon, but if not I've uploaded it
to mentors here:
http://mentors.debian.net/debian/pool/main/libs/libsfml/libsfml_2.3+dfsg-1.dsc

The build fails because mars uses functions from GLU. In previous
versions of SFML, OpenGL.hpp included glu.h, but this header (and the
entire GLU dependency) was dropped from SFML 2.3.

Since only a few GLU functions are called in mars, I thought the best
way to replace them all with standard OpenGL calls. That's what the
attached patch does.

I also submitted the patch upstream, but looking at the age of the other
pull requests, I'm not too confident it will me merged soon.

Thanks,
James
From 33d5affabf8ff84f2c028b9303c6a9e83cc824ad Mon Sep 17 00:00:00 2001
From: James Cowgill <james...@cowgill.org.uk>
Date: Sat, 9 May 2015 01:54:14 +0100
Subject: [PATCH] Remove dependency on GLU - fixes build with SFML 2.3

---
 premake4.lua           |  8 ++++----
 src/Shaders/postFX.cpp |  2 +-
 src/System/window.cpp  | 12 ++++++------
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/premake4.lua b/premake4.lua
index 023dddd..5af4495 100755
--- a/premake4.lua
+++ b/premake4.lua
@@ -11,11 +11,11 @@ project "mars"
     defines { "NDEBUG" }
     flags   { "Optimize" }
     if os.get() == "windows" then
-      links { "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "glu32", "opengl32", "fribidi-0", "tag" }
+      links { "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "opengl32", "fribidi-0", "tag" }
     elseif os.get() == "macosx" then
       links { "sfml-graphics.framework", "sfml-audio.framework", "sfml-system.framework", "sfml-window.framework", "opengl.framework", "fribidi", "tag" }
     else
-      links { "GLU", "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "fribidi", "tag" }
+      links { "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "fribidi", "tag" }
       libdirs { "/usr/lib", "/usr/local/lib" }
     end
     
@@ -23,10 +23,10 @@ project "mars"
     defines { "_DEBUG", "DEBUG" }
     flags   { "Symbols" }
     if os.get() == "windows" then
-      links { "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "glu32", "opengl32", "fribidi-0", "tag" }
+      links { "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "opengl32", "fribidi-0", "tag" }
     elseif os.get() == "macosx" then
       links { "sfml-graphics.framework", "sfml-audio.framework", "sfml-system.framework", "sfml-window.framework", "opengl.framework", "fribidi", "tag" }
     else
-      links { "GLU", "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "fribidi", "tag" }
+      links { "sfml-graphics", "sfml-audio", "sfml-system", "sfml-window", "fribidi", "tag" }
       libdirs { "/usr/lib", "/usr/local/lib" }
     end
diff --git a/src/Shaders/postFX.cpp b/src/Shaders/postFX.cpp
index 987f411..f767a47 100644
--- a/src/Shaders/postFX.cpp
+++ b/src/Shaders/postFX.cpp
@@ -78,7 +78,7 @@ namespace postFX {
             postFX_.loadFromFile(settings::C_dataPath + "shaders/bump.frag", sf::Shader::Fragment);
             bumpMap_.create(SPACE_X_RESOLUTION*0.5f, SPACE_Y_RESOLUTION*0.5f);
             glViewport(0,0,SPACE_X_RESOLUTION*0.5f,SPACE_Y_RESOLUTION*0.5f);
-            gluOrtho2D(0, SPACE_X_RESOLUTION, SPACE_Y_RESOLUTION, 0);
+            glOrtho(0, SPACE_X_RESOLUTION, SPACE_Y_RESOLUTION, 0, -1, 1);
             glEnable(GL_BLEND);
             glMatrixMode(GL_MODELVIEW);
             postFX_.setParameter("BumpMap", bumpMap_.getTexture());
diff --git a/src/System/window.cpp b/src/System/window.cpp
index e9a099a..8e12dcc 100644
--- a/src/System/window.cpp
+++ b/src/System/window.cpp
@@ -222,7 +222,7 @@ namespace window {
         glLoadIdentity();
 
         // Setup translation (according to left-upper corner)
-        gluOrtho2D(0.f, SPACE_X_RESOLUTION, SPACE_Y_RESOLUTION, 0.f);
+        glOrtho(0.f, SPACE_X_RESOLUTION, SPACE_Y_RESOLUTION, 0.f, -1, 1);
 
         // probably improves performance...
         glDisable(GL_LIGHTING);
@@ -247,7 +247,7 @@ namespace window {
 
         glMatrixMode(GL_PROJECTION);
         glLoadIdentity();
-        gluOrtho2D(0.f, viewPort_.x_, viewPort_.y_, 0.f);
+        glOrtho(0.f, viewPort_.x_, viewPort_.y_, 0.f, -1, 1);
         glMatrixMode(GL_MODELVIEW);
         glLoadIdentity();
 
@@ -255,7 +255,7 @@ namespace window {
 
         glMatrixMode(GL_PROJECTION);
         glLoadIdentity();
-        gluOrtho2D(0.f, SPACE_X_RESOLUTION, SPACE_Y_RESOLUTION, 0.f);
+        glOrtho(0.f, SPACE_X_RESOLUTION, SPACE_Y_RESOLUTION, 0.f, -1, 1);
         glMatrixMode(GL_MODELVIEW);
         glLoadIdentity();
     }
@@ -270,7 +270,7 @@ namespace window {
             glLoadIdentity();
             setViewPort();
 
-            gluOrtho2D(0.f, viewPort_.x_, viewPort_.y_, 0.f);
+            glOrtho(0.f, viewPort_.x_, viewPort_.y_, 0.f, -1, 1);
 
             glMatrixMode(GL_MODELVIEW);
             glLoadIdentity();
@@ -284,7 +284,7 @@ namespace window {
             glLoadIdentity();
             setViewPort();
 
-            gluOrtho2D(0.f, viewPort_.x_, viewPort_.y_, 0.f);
+            glOrtho(0.f, viewPort_.x_, viewPort_.y_, 0.f, -1, 1);
 
             glMatrixMode(GL_MODELVIEW);
             glLoadIdentity();
@@ -294,7 +294,7 @@ namespace window {
         else {
             glMatrixMode(GL_PROJECTION);
             glLoadIdentity();
-            gluOrtho2D(0.f, viewPort_.x_, viewPort_.y_, 0.f);
+            glOrtho(0.f, viewPort_.x_, viewPort_.y_, 0.f, -1, 1);
             glMatrixMode(GL_MODELVIEW);
             glLoadIdentity();
         }
-- 
2.1.4

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: marsshooter
Source-Version: 0.7.5-3

We believe that the bug you reported is fixed in the latest version of
marsshooter, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 784...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Markus Koschany <a...@gambaru.de> (supplier of updated marsshooter package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 01 Jul 2015 12:42:33 +0200
Source: marsshooter
Binary: marsshooter marsshooter-data
Architecture: source all amd64
Version: 0.7.5-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
Changed-By: Markus Koschany <a...@gambaru.de>
Description:
 marsshooter - ridiculous space shooter governed by the laws of gravity
 marsshooter-data - ridiculous space shooter governed by the laws of gravity -- 
data
Closes: 784857
Changes:
 marsshooter (0.7.5-3) unstable; urgency=medium
 .
   * Add remove-glu-dependency.patch.
     Fix build failures with SFML 2.3. due to the use of functions from GLU and
     replace GLU with standard OpenGL calls.
     Thanks to James Cowgill for the report and the patch! (Closes: #784857)
   * Declare compliance with Debian Policy 3.9.6.
   * Vcs-Browser: Switch to cgit.
   * Add mars binary to debian/clean and ensure M.A.R.S. can be built twice in a
     row.
Checksums-Sha1:
 4424be61625bb0e20e93cad8f381ce1d949d9971 2240 marsshooter_0.7.5-3.dsc
 b487573dbb5acef686667da773451a0f1c15ffd2 13488 
marsshooter_0.7.5-3.debian.tar.xz
 c02ce9739f62ad3e9587b9a77c18553e034a4686 68363892 
marsshooter-data_0.7.5-3_all.deb
 c64b08f668b08aa44fcc92f9d3a303ff266ab0a8 279600 marsshooter_0.7.5-3_amd64.deb
Checksums-Sha256:
 d872f703f41dbb8b1480b44bc17eb71b76811873ff545c51cd7f74fb508dea46 2240 
marsshooter_0.7.5-3.dsc
 3a13675b76f148a1e9f29034fafdaed2ebc0a52a623d8a9f17ab6ac6caaf5894 13488 
marsshooter_0.7.5-3.debian.tar.xz
 25cf99cd22c5463617f4e76a050c67c203c2655017cb1fa59c509f69c01a3c94 68363892 
marsshooter-data_0.7.5-3_all.deb
 932fb7cd8ad23d1aace56283c552c11a5036b302fbc68db33398c89e596c722f 279600 
marsshooter_0.7.5-3_amd64.deb
Files:
 80f8efc2a60ca1419b13b9455e537405 2240 games optional marsshooter_0.7.5-3.dsc
 742f3b83f8673b4e6b0355e36dad26eb 13488 games optional 
marsshooter_0.7.5-3.debian.tar.xz
 87a88b9ace858642807348bed13e4ae1 68363892 games optional 
marsshooter-data_0.7.5-3_all.deb
 e9ca87843fa949c9e73971def4c40823 279600 games optional 
marsshooter_0.7.5-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJVk8r8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBQ0YzRDA4OEVGMzJFREVGNkExQTgzNUZE
OUFEMTRCOTUxM0I1MUU0AAoJENmtFLlRO1Hkvh0QAL7+l3epHzu2Ke+o4bMJNh0J
Ci4stQ3Z83BHFpIYK0ugEY1ObZBGUVdISUUt4TIJeTnLtbWS0yAWX/XNt4UYq41f
f90yh/9j+I/Xy3SGP92Cx3Bnvd9te77DBS6JuuUzF3vVeJNDiZGECfY87KnImpw6
pIfE1Xj44mjnzTgRVAVJ8fDurVi45VSvTlGZXigBtACwAUVk0VdGCeQue10X9jZG
UHmOKyxQjp3zqOlRth59Qfzkm2+jLfZ4PmEb2z1i5NwT8pqaIGigLQev1DezLV5r
/AD8w+PTP+xzgf0GL9ZYk+wAIk9oyqCpUgJJQf+fyLut3aXm9CP5+xNPbTDp6IYT
1lfXz/eDmrbDcxeFCZ5bnP7+bPPvpYvhiVcaQBl1U1JoM4esYJb5aWHUX4crKuJg
aQQTPYqygm7MwUbHm7CVxE7iKnXsPqx1EuiAcqv+UU90vAd5e5c2GNxJP6h2r7oL
1JiD/gZvVjh2t71593cr6zKXqjOsRLnZfTVtDkQfRGM4cPIgScK0iqCtLh6Kadyn
7wGAZhBAj5kJS0kh3qIdh0c0aCgz8Ep8uB1mpoCtshKJ6Nz7ZDNIaM8h82RUjnhB
wh2o+Hb6mTHX7vlxi9B6UPdUENhTMkpUG/NCqfzmg8Trfbo8DkhQ1vyJ6h9w/HIr
/mdTJblQs+XRyQKN7Rjx
=jjDL
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to