Bug#574310: a7xpg: FTBFS: src/abagames/a7xpg/LetterRender.d:394: expression expected, not ']'

2010-03-21 Thread Iain Buclaw
A recent update of the gdc package has brought about a few language changes,
most notably regarding static array initialisation.

The error in this build log is to do with trailing comma's in arrays literal
expressions, there is a bug report regarding the issue in dmd:
http://d.puremagic.com/issues/show_bug.cgi?id=3854
The way that report is panning out, looks like this is a deliberate feature
of the language, so attached to this post is a patch to fix the source for
the language changes.

Regards
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
# Fix D language changes for gdc-4.3
--- a/src/abagames/a7xpg/LetterRender.d	2010-03-21 17:53:14.495912956 +
+++ b/src/abagames/a7xpg/LetterRender.d	2010-03-21 17:55:22.711897655 +
@@ -391,5 +391,5 @@
  [-0.19f, 1.0f, 0.4f, 0.2f, 90],
  [0.2f, 1.0f, 0.4f, 0.2f, 90],
  [0, 0, 0, 0, 9],
-]];
+],];
 }
--- a/src/abagames/a7xpg/Field.d	2003-09-21 14:01:28.0 +0100
+++ b/src/abagames/a7xpg/Field.d	2010-03-21 17:58:20.751923408 +
@@ -32,7 +32,7 @@
   }
 
   private const float[][] COLOR =
-[[0.4, 0.8, 1], [0.4, 1, 0.8], [1, 0.8, 0.4]];
+[[0.4, 0.8, 1], [0.4, 1, 0.8], [1.0, 0.8, 0.4]];
   private const float[][] LUMINOUS_COLOR =
 [[0.2, 0.2, 1], [0.2, 0.6, 0.7], [0.6, 0.2, 0.7]];
 


Bug#574310: a7xpg: FTBFS: src/abagames/a7xpg/LetterRender.d:394: expression expected, not ']'

2010-03-17 Thread Lucas Nussbaum
Source: a7xpg
Version: 0.11.dfsg1-4
Severity: serious
Tags: squeeze sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20100316 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> make[1]: Entering directory 
> `/build/user-a7xpg_0.11.dfsg1-4-amd64-QPVclY/a7xpg-0.11.dfsg1'
> gdmd -d -c -ofimport/SDL_video.o -O -release -d -Iimport import/SDL_video.d
> gdmd -d -c -ofimport/SDL_version.o -O -release -d -Iimport 
> import/SDL_version.d
> gdmd -d -c -ofimport/SDL_timer.o -O -release -d -Iimport import/SDL_timer.d
> gdmd -d -c -ofimport/SDL_thread.o -O -release -d -Iimport import/SDL_thread.d
> gdmd -d -c -ofimport/SDL_syswm.o -O -release -d -Iimport import/SDL_syswm.d
> gdmd -d -c -ofimport/SDL_rwops.o -O -release -d -Iimport import/SDL_rwops.d
> gdmd -d -c -ofimport/SDL_quit.o -O -release -d -Iimport import/SDL_quit.d
> gdmd -d -c -ofimport/SDL_mutex.o -O -release -d -Iimport import/SDL_mutex.d
> gdmd -d -c -ofimport/SDL_mouse.o -O -release -d -Iimport import/SDL_mouse.d
> gdmd -d -c -ofimport/SDL_mixer.o -O -release -d -Iimport import/SDL_mixer.d
> gdmd -d -c -ofimport/SDL_keyboard.o -O -release -d -Iimport 
> import/SDL_keyboard.d
> gdmd -d -c -ofimport/SDL_joystick.o -O -release -d -Iimport 
> import/SDL_joystick.d
> gdmd -d -c -ofimport/SDL_events.o -O -release -d -Iimport import/SDL_events.d
> gdmd -d -c -ofimport/SDL_endian.o -O -release -d -Iimport import/SDL_endian.d
> gdmd -d -c -ofimport/SDL.o -O -release -d -Iimport import/SDL.d
> gdmd -d -c -ofimport/SDL_cdrom.o -O -release -d -Iimport import/SDL_cdrom.d
> gdmd -d -c -ofimport/SDL_audio.o -O -release -d -Iimport import/SDL_audio.d
> gdmd -d -c -ofimport/SDL_active.o -O -release -d -Iimport import/SDL_active.d
> gdmd -d -c -ofimport/SDL_getenv.o -O -release -d -Iimport import/SDL_getenv.d
> gdmd -d -c -ofimport/opengl.o -O -release -d -Iimport import/opengl.d
> gdmd -d -c -ofimport/openglu.o -O -release -d -Iimport import/openglu.d
> gdmd -d -c -ofimport/SDL_keysym.o -O -release -d -Iimport import/SDL_keysym.d
> gdmd -d -c -ofimport/SDL_copying.o -O -release -d -Iimport 
> import/SDL_copying.d
> gdmd -d -c -ofimport/SDL_types.o -O -release -d -Iimport import/SDL_types.d
> gdmd -d -c -ofimport/SDL_error.o -O -release -d -Iimport import/SDL_error.d
> gdmd -d -c -ofimport/SDL_byteorder.o -O -release -d -Iimport 
> import/SDL_byteorder.d
> gdmd -d -c -ofsrc/abagames/a7xpg/A7xBoot.o -O -release -d -Iimport -Isrc 
> src/abagames/a7xpg/A7xBoot.d
> src/abagames/a7xpg/LetterRender.d:394: expression expected, not ']'
> src/abagames/a7xpg/LetterRender.d:394: comma expected separating array 
> initializers, not ;
> src/abagames/a7xpg/LetterRender.d:395: semicolon expected, not '}'
> make[1]: *** [src/abagames/a7xpg/A7xBoot.o] Error 1

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2010/03/16/a7xpg_0.11.dfsg1-4_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lu...@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org