Your message dated Tue, 07 Jun 2011 23:35:04 +0000
with message-id <[email protected]>
and subject line Bug#627017: fixed in linthesia 0.4.2-2
has caused the Debian Bug report #627017,
regarding linthesia: Does not work when "unsigned long" is not 4 bytes
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 [email protected]
immediately.)
--
627017: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627017
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: linthesia
Version: 0.4.2-1
Severity: important
Tags: patch
When trying to load any MIDI, error message pops up:
Linthesia detected an unknown problem and must close!
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages linthesia depends on:
ii libasound2 1.0.23-3 shared library for ALSA applicatio
ii libatk1.0-0 2.0.0-1 The ATK accessibility toolkit
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii libcairo2 1.10.2-6 The Cairo 2D vector graphics libra
ii libcairomm-1.0-1 1.8.4-3 C++ wrappers for Cairo (shared lib
ii libfontconfig1 2.8.0-2.2 generic font configuration library
ii libfreetype6 2.4.4-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.6.0-2 GCC support library
ii libgconf2-4 2.28.1-6 GNOME configuration database syste
ii libgconfmm-2.6-1c2 2.28.0-1 C++ wrappers for GConf (shared lib
ii libgl1-mesa-glx [libgl1] 7.10.2-2 free implementation of the OpenGL
ii libglib2.0-0 2.28.6-1 The GLib library of C routines
ii libglibmm-2.4-1c2a 2.28.0-1 C++ wrapper for the GLib toolkit (
ii libglu1-mesa [libglu1] 7.10.2-2 The OpenGL utility library (GLU)
ii libgtk2.0-0 2.24.4-3 The GTK+ graphical user interface
ii libgtkglext1 1.2.0-1.1 OpenGL Extension to GTK+ (shared l
ii libgtkglextmm-x11-1.2-0 1.2.0-4 C++ bindings for GtkGLExt (Shared
ii libgtkmm-2.4-1c2a 1:2.24.0-1 C++ wrappers for GTK+ (shared libr
ii libice6 2:1.0.7-1 X11 Inter-Client Exchange library
ii libpango1.0-0 1.28.3-6 Layout and rendering of internatio
ii libpangomm-1.4-1 2.28.2-1 C++ Wrapper for pango (shared libr
ii libsigc++-2.0-0c2a 2.2.9-1 type-safe Signal Framework for C++
ii libsm6 2:1.2.0-1 X11 Session Management library
ii libstdc++6 4.6.0-2 The GNU Standard C++ Library v3
ii libx11-6 2:1.4.3-1 X11 client-side library
ii libxmu6 2:1.1.0-2 X11 miscellaneous utility library
ii libxt6 1:1.1.1-1 X11 toolkit intrinsics library
Versions of packages linthesia recommends:
ii timidity 2.13.2-39+b1 Software sound renderer (MIDI sequ
linthesia suggests no packages.
-- no debconf information
*** /tmp/linthesia-64bit.patch
diff --git a/src/libmidi/Midi.cpp b/src/libmidi/Midi.cpp
index 76c3d64..4f6ee67 100644
--- a/src/libmidi/Midi.cpp
+++ b/src/libmidi/Midi.cpp
@@ -13,6 +13,8 @@
#include <fstream>
#include <map>
+#include <stdint.h>
+
using namespace std;
@@ -50,7 +52,7 @@ Midi Midi::ReadFromStream(istream &stream) {
// defined and will always have a 4-byte header. We use 5 so we get
// free null termination.
char header_id[5] = { 0, 0, 0, 0, 0 };
- unsigned long header_length;
+ uint32_t header_length;
unsigned short format;
unsigned short track_count;
unsigned short time_division;
@@ -74,7 +76,7 @@ Midi Midi::ReadFromStream(istream &stream) {
}
}
- stream.read(reinterpret_cast<char*>(&header_length), sizeof(unsigned long));
+ stream.read(reinterpret_cast<char*>(&header_length), sizeof(uint32_t));
stream.read(reinterpret_cast<char*>(&format), sizeof(unsigned
short));
stream.read(reinterpret_cast<char*>(&track_count), sizeof(unsigned
short));
stream.read(reinterpret_cast<char*>(&time_division), sizeof(unsigned
short));
diff --git a/src/libmidi/MidiTrack.cpp b/src/libmidi/MidiTrack.cpp
index 751e76e..00bb7ba 100644
--- a/src/libmidi/MidiTrack.cpp
+++ b/src/libmidi/MidiTrack.cpp
@@ -11,6 +11,7 @@
#include "MidiUtil.h"
#include "Midi.h"
+#include <stdint.h>
#include <sstream>
#include <string>
#include <map>
@@ -26,10 +27,10 @@ MidiTrack MidiTrack::ReadFromStream(std::istream &stream) {
// defined and will always have a 4-byte header. We use 5 so we get
// free null termination.
char header_id[5] = { 0, 0, 0, 0, 0 };
- unsigned long track_length;
+ uint32_t track_length;
stream.read(header_id, static_cast<streamsize>(MidiTrackHeader.length()));
- stream.read(reinterpret_cast<char*>(&track_length), sizeof(unsigned long));
+ stream.read(reinterpret_cast<char*>(&track_length), sizeof(uint32_t));
--- End Message ---
--- Begin Message ---
Source: linthesia
Source-Version: 0.4.2-2
We believe that the bug you reported is fixed in the latest version of
linthesia, which is due to be installed in the Debian FTP archive:
linthesia_0.4.2-2.debian.tar.gz
to main/l/linthesia/linthesia_0.4.2-2.debian.tar.gz
linthesia_0.4.2-2.dsc
to main/l/linthesia/linthesia_0.4.2-2.dsc
linthesia_0.4.2-2_amd64.deb
to main/l/linthesia/linthesia_0.4.2-2_amd64.deb
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Cleto Martin Angelina <[email protected]> (supplier of updated linthesia
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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 08 Jun 2011 00:36:57 +0200
Source: linthesia
Binary: linthesia
Architecture: source amd64
Version: 0.4.2-2
Distribution: unstable
Urgency: low
Maintainer: Cleto Martin Angelina <[email protected]>
Changed-By: Cleto Martin Angelina <[email protected]>
Description:
linthesia - Fork of Synthesia to GNU/Linux
Closes: 627017
Changes:
linthesia (0.4.2-2) unstable; urgency=low
.
* Bug fix: "Does not work when unsigned long is not 4
bytes", thanks to Dave Wong (Closes: #627017).
* Adding optimizations at compiling flags.
Checksums-Sha1:
81750833509124ba4b96aa1041ea4cdea9bba2ec 1228 linthesia_0.4.2-2.dsc
e351c9c462a266bd00b2a5c0dc8ce87037950507 4145 linthesia_0.4.2-2.debian.tar.gz
a95a6e67ec84dbd03606f768f222f2e11e4e085b 370670 linthesia_0.4.2-2_amd64.deb
Checksums-Sha256:
ac36b583ef3c013c2aa4d4b26548068ec699c78a9231065472b1870f0791dad1 1228
linthesia_0.4.2-2.dsc
b004a4b5af295d34eda9d53a70c62da249b58e29807284123b5b5e9114e015f0 4145
linthesia_0.4.2-2.debian.tar.gz
74df1bb1ee08a02f190d1a67b9bb220d801d04519e0ca97fa8f943ae0f365e46 370670
linthesia_0.4.2-2_amd64.deb
Files:
a4cb89e8c3ff4881627a397783a01163 1228 games extra linthesia_0.4.2-2.dsc
36c7f4da379eb2e3e40a89c69dd3370d 4145 games extra
linthesia_0.4.2-2.debian.tar.gz
3365927fa43c91ed01655ea39ea0364e 370670 games extra linthesia_0.4.2-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk3usCUACgkQG9DkpdBHzeEVVQCfRM9VMBcXau5gmGhqRgDt3OJU
NJ8An2tdyOpGLyBjzJRDt+vs/Xyc75sh
=TjeU
-----END PGP SIGNATURE-----
--- End Message ---