Bug 95727 - media-sound/gramofile-1.6 needs amd64-specific fixes (with patch)
Bug#: 95727 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sound@gentoo.org Reported By: tartif@spymac.com
Component: Applications
URL: 
Summary: media-sound/gramofile-1.6 needs amd64-specific fixes (with patch)
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2005-06-10 15:47 0000
Description:   Opened: 2005-06-10 15:47 0000
This package needs a patch to work on amd64; a patch is supplied.

The README for the package says:

Note for all 64-bit systems: when your `long'-type vars are 64 bit, .wav
headers are not read/written correctly (=bug). If you replace every `long'
with an `int' (or other 32-bit type), everything should be fine.

Therefor, a patch should be applied on amd64 machines. I attach what I think is
the appropriate patch.

Reproducible: Always
Steps to Reproduce:
How to test:
Run gramofile
Select "3. Locate Tracks"
Pick any WAV file, select "Start computation" on following screen.

Actual Results:  
Unpatched version: an error appears: "The source file is a .wav file with
unknown format"


Expected Results:  
Patched version: This error does not appear.

------- Comment #1 From Uri Sivan 2005-06-10 15:49:08 0000 -------
Created an attachment (id=61023) [details]
Fix the WAV header structure to use 32-bit fields

------- Comment #2 From raffaele_at_gentoo 2005-07-04 00:11:20 0000 -------
(In reply to comment #1)
> Created an attachment (id=61023) [edit] [details]
> Fix the WAV header structure to use 32-bit fields
> 
The patch works for me, as Uri described I was unable to read WAV files without it.
Thanks Uri.


------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2005-09-01 16:52:05 0000 -------
That does not seems good, please use standard integer types. 

------- Comment #4 From Simon Stelling (RETIRED) 2005-10-08 03:59:37 0000 -------
fixed, thanks