Package: gltron Version: 0.70final-8 Severity: normal Tags: patch Hi,
thanks for maintaining gltron. Due to gltron's build failure in Ubuntu's recent rebuild test, I stumbled upon that the functions in scripting.c don't match the declared functions in Nebu_scripting.h. Attached is a patch that fixes this. Cheers, Stefan. P.S.: the original Ubuntu rebuild failed due to ignored return values of fread in conjunction with -Werror. That results from an Ubuntu only change in libc headers, which I believe that it should be fixed there. Nonetheless, here the link if you want to take a look: <https://edge.launchpad.net/ubuntu/+archive/test-rebuild-20090909/+build/1215683/+files/buildlog_ubuntu-karmic-amd64.gltron_0.70final-8ubuntu2_FAILEDTOBUILD.txt.gz> -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic') Architecture: amd64 (x86_64) Kernel: Linux 2.6.31-10-generic (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gltron depends on: ii libc 2.10.1-0ubuntu12 GNU C Library: Shared libraries ii libg 1:4.4.1-4ubuntu3 GCC support library ii libg 7.6.0~git20090817.7c422387-0ubuntu5 A free implementation of the OpenG ii libm 3.1.11-a-6ubuntu4 A portable sound library ii libo 1.1.4~dfsg-1 Ogg bitstream library ii libp 1.2.37-1 PNG library - runtime ii libs 1.2.7-2 network library for Simple DirectM ii libs 1.0.3-3build1 Decoder of several sound file form ii libs 1.2.13-4ubuntu4 Simple DirectMedia Layer ii libs 0.4.5+cvs20030824-2.2 SDL MPEG Player Library - shared l ii libs 4.4.1-4ubuntu3 The GNU Standard C++ Library v3 ii libv 1.2.0.dfsg-6 The Vorbis General Audio Compressi ii libv 1.2.0.dfsg-6 The Vorbis General Audio Compressi ii zlib 1:1.2.3.3.dfsg-13ubuntu3 compression library - runtime gltron recommends no packages. gltron suggests no packages.
--- gltron-0.70final.orig/nebu/scripting/scripting.c +++ gltron-0.70final/nebu/scripting/scripting.c @@ -169,16 +169,16 @@ return status; } -void scripting_RunFile(char *name) { +void scripting_RunFile(const char *name) { lua_dofile(L, name); } -void scripting_Run(char *command) { +void scripting_Run(const char *command) { /* fprintf(stderr, "[command] %s\n", command); */ lua_dostring(L, command); } -void scripting_RunFormat(char *format, ... ) { +void scripting_RunFormat(const char *format, ... ) { char buf[4096]; va_list ap; va_start(ap, format);