tags 625343 + pending thanks Dear maintainer,
I've prepared an NMU for gltron (versioned as 0.70final-9.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards. -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key ID: 0x8649AA06 : :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe `- NP: U2: Love Rescue Me
diff -Nru gltron-0.70final/debian/changelog gltron-0.70final/debian/changelog --- gltron-0.70final/debian/changelog 2010-04-02 03:31:24.000000000 +0200 +++ gltron-0.70final/debian/changelog 2011-12-14 17:03:41.000000000 +0100 @@ -1,3 +1,12 @@ +gltron (0.70final-9.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "ftbfs with gcc-4.6 -Werror": add patch gcc-4.6.patch from peter green + (removes unused variables). + (Closes: #625343) + + -- gregor herrmann <gre...@debian.org> Wed, 14 Dec 2011 17:02:51 +0100 + gltron (0.70final-9) unstable; urgency=low * Change build-depends on xlibmesa-gl-dev to libgl1-mesa-dev diff -Nru gltron-0.70final/debian/patches/gcc-4.6.patch gltron-0.70final/debian/patches/gcc-4.6.patch --- gltron-0.70final/debian/patches/gcc-4.6.patch 1970-01-01 01:00:00.000000000 +0100 +++ gltron-0.70final/debian/patches/gcc-4.6.patch 2011-12-14 17:01:16.000000000 +0100 @@ -0,0 +1,109 @@ +Description: Fix build issues with gcc 4.6 +Author: Peter Green (plugw...@p10link.net) +Bug-Debian: http://bugs.debian.org/625343 + +--- gltron-0.70final.orig/src/game/computer.c ++++ gltron-0.70final/src/game/computer.c +@@ -27,11 +27,10 @@ AI_Parameters ai_params = { + void doComputerSimple(int player, int target, AI_Distances *distances) { + AI *ai; + Data *data; +- Player *me, *him; ++ Player *me; + int level; + + me = &(game->player[ player ]); +- him = &(game->player[ target ]); + if(me->ai == NULL) { + printf("This player has no AI data!\n"); + return; +--- gltron-0.70final.orig/src/game/init_sdl.c ++++ gltron-0.70final/src/game/init_sdl.c +@@ -27,7 +27,6 @@ void inputInit(void) { + /* joystick */ + if(SDL_Init(SDL_INIT_JOYSTICK) >= 0) { + int i; +- SDL_Joystick *joy; + int joysticks = SDL_NumJoysticks(); + + /* FIXME: why only two joysticks? */ +@@ -36,7 +35,7 @@ void inputInit(void) { + joysticks = 2; + + for(i = 0; i < joysticks; i++) { +- joy = SDL_JoystickOpen(i); ++ SDL_JoystickOpen(i); + } + if(i) + SDL_JoystickEventState(SDL_ENABLE); +--- gltron-0.70final.orig/src/video/trail.c ++++ gltron-0.70final/src/video/trail.c +@@ -81,8 +81,6 @@ void drawTrailLines(Player *p, PlayerVis + float height; + + float *normal; +- float dist; +- float alpha; + Data *data; + Camera *cam; + +@@ -113,8 +111,8 @@ void drawTrailLines(Player *p, PlayerVis + while(s != data->trails + data->trailOffset) { + /* the current line is not drawn */ + /* compute distance from line to eye point */ +- dist = getDist(s, cam->cam); +- alpha = (game2->rules.grid_size - dist / 2) / game2->rules.grid_size; ++ getDist(s, cam->cam); ++// alpha = (game2->rules.grid_size - dist / 2) / game2->rules.grid_size; + // trail_top[3] = alpha; + glColor4fv(trail_top); + +@@ -133,8 +131,8 @@ void drawTrailLines(Player *p, PlayerVis + glEnd(); + + /* compute distance from line to eye point */ +- dist = getDist(s, cam->cam); +- alpha = (game2->rules.grid_size - dist / 2) / game2->rules.grid_size; ++ getDist(s, cam->cam); ++ //alpha = (game2->rules.grid_size - dist / 2) / game2->rules.grid_size; + // trail_top[3] = alpha; + glColor4fv(trail_top); + +--- gltron-0.70final.orig/nebu/scripting/scripting.c ++++ gltron-0.70final/nebu/scripting/scripting.c +@@ -156,11 +156,10 @@ int scripting_GetStringResult(char **s) + int scripting_CopyStringResult(char *s, int len) { + int status; + if(lua_isstring(L, -1)) { +- int size, copy; ++ int size; + status = 0; + size = lua_strlen(L, -1) + 1; +- if(size > len) { copy = len; status = 2; } +- else copy = size; ++ if(size > len) { status = 2; } + memcpy( s, lua_tostring(L, -1), size ); + } else + status = 1; +--- gltron-0.70final.orig/nebu/video/video_system.c ++++ gltron-0.70final/nebu/video/video_system.c +@@ -19,7 +19,7 @@ void SystemInitWindow(int x, int y, int + } + + void SystemInitDisplayMode(int f, unsigned char full) { +- int bitdepth, zdepth; ++ int zdepth; + + flags = f; + fullscreen = full; +@@ -34,10 +34,8 @@ void SystemInitDisplayMode(int f, unsign + + if(flags & SYSTEM_32_BIT) { + zdepth = 24; +- bitdepth = 32; + } else { + zdepth = 16; +- bitdepth = 16; + } + if(flags & SYSTEM_DEPTH) + SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, zdepth); diff -Nru gltron-0.70final/debian/patches/series gltron-0.70final/debian/patches/series --- gltron-0.70final/debian/patches/series 2010-04-02 02:07:51.000000000 +0200 +++ gltron-0.70final/debian/patches/series 2011-12-14 17:02:47.000000000 +0100 @@ -1 +1,2 @@ debian-changes-0.70final-9 +gcc-4.6.patch
signature.asc
Description: Digital signature