Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749759 - media-sound/wildmidi wrong path to patches
Summary: media-sound/wildmidi wrong path to patches
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-10-17 14:22 UTC by kavol
Modified: 2020-10-31 15:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2020-10-17 14:22:37 UTC
Trying to use wildmidi player, it fails to produce sound because it cannot find the patches.

Reproducible: Always

Steps to Reproduce:
1. USE="player" emerge wildmidi
2. eselect timidity set 1
3. wildmidi somefile.mid
Actual Results:  
$ wildmidi Eleanor2.mid 

WildMidi 0.3.13 Open Source Midi Sequencer
Copyright (C) WildMIDI Developers 2001-2016

WildMidi comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under
the terms and conditions of the GNU General Public License version 3.
For more information see COPYING

Report bugs to https://github.com/Mindwerks/wildmidi/issues
WildMIDI homepage is at http://www.mindwerks.net/projects/wildmidi/

Initializing Sound System
Initializing WildMidi Processing Library 0.3.13

 +  Volume up        e  Better resampling    n  Next Midi
 -  Volume down      l  Log volume           q  Quit
 ,  1sec Seek Back   r  Reverb               .  1sec Seek Forward
                     p  Pause On/Off

Playing Eleanor2.mid 
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Tone_000/000_Acoustic_Grand_Piano.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Tone_000/056_Trumpet.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/038_Snare_1.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/042_Hi-Hat_Closed.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/036_Kick_2.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/046_Hi-Hat_Open.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/051_Cymbal_Ride_1.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/049_Cymbal_Crash_1.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/043_Tom_Low_1.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/047_Tom_Mid_1.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/048_Tom_High_2.pat (No such file or directory)
libWildMidi(_WM_BufferFile:217): ERROR Unable to stat /usr/share/midi/freepats/Drum_000/069_Cabasa.pat (No such file or directory)

Expected Results:  
no such errors

$ locate 000_Acoustic_Grand_Piano.pat
/usr/share/timidity/freepats/Tone_000/000_Acoustic_Grand_Piano.pat

the path /usr/share/midi/freepats is set in /etc/wildmidi/wildmidi.cfg

as wildmidi ebuild has hard freepats dependency, it should set the correct path; if wildmidi would be able to use different patchsets then probably eselect should regenerate the configfile on patchset change
Comment 1 Larry the Git Cow gentoo-dev 2020-10-31 15:58:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfe6eeb3e79cf2d8b72c39fe91d8e75f040740f

commit 8bfe6eeb3e79cf2d8b72c39fe91d8e75f040740f
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-10-29 20:16:19 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-10-31 15:58:44 +0000

    media-sound/wildmidi: update 0.4.3
    
    Migrated to EAPI 7, fixed timidity-freepats location in config, removed
    unused files.
    
    Closes: https://bugs.gentoo.org/656814
    Closes: https://bugs.gentoo.org/749759
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/18069
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-sound/wildmidi/Manifest              |   1 +
 media-sound/wildmidi/files/wildmidi.cfg    | 138 -----------------------------
 media-sound/wildmidi/metadata.xml          |   9 +-
 media-sound/wildmidi/wildmidi-0.4.3.ebuild |  59 ++++++++++++
 4 files changed, 68 insertions(+), 139 deletions(-)