FS#47508 - [wildmidi] no default configuration installed, but one is required

Attached to Project: Arch Linux
Opened by Ramana Kumar (xrchz) - Wednesday, 23 December 2015, 21:36 GMT
Last edited by Balló György (City-busz) - Monday, 05 June 2023, 19:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description: If one installs wildmidi and tries to run it, it complains as follows:

libWildMidi(_WM_BufferFile:132): ERROR Unable to stat /etc/wildmidi/wildmidi.cfg (No such file or directory)

I believe a default wildmidi.cfg is provided with the upstream sources, and so it should probably be installed at that location. It may require additional dependencies (e.g., timidity-freepats).
This task depends upon

Closed by  Balló György (City-busz)
Monday, 05 June 2023, 19:26 GMT
Reason for closing:  Not a bug
Additional comments about closing:  You have to grab a GUS patchset from somewhere, and configure it yourself.
Comment by Colin Heinzmann (DepthDeluxe) - Tuesday, 05 January 2016, 19:41 GMT
Confirmed, it appears your diagnosis is correct. Wildmidi wants to have a configuration file at /etc/wildmidi/wildmidi.cfg in order to run properly. I'm not sure if it is a good idea to add the upstream configuration file directly as it requires that freepats is on the system. What we could do is add timidy-freepats to the optional dependency list, create a configuration file for freepats support in the /etc/wildmidi folder, and add an /etc/wildmidi/wildmidi.cfg as default configuration just to make the program happy (wildmidi runs fine if the configuration file exists but is empty).
Comment by Colin Heinzmann (DepthDeluxe) - Tuesday, 05 January 2016, 20:40 GMT
I have attached my proposed fix for the problem. I have added two configuration files "wildmidi.cfg" and "freepats.cfg". The first is a blank configuration file to fix the error message and the second is a configuration file that will work with timidity-freepats. Clarifying instructions are commented in the configuration files. In addition, I have added timidity-freepats to the optional dependency list.


Edit: sorry, use the second download. Made a typo in one of the configuration files and it is fixed in that one. Interface won't let me delete the first one...
Comment by Stefan Schick (pommes_) - Saturday, 27 July 2019, 17:59 GMT
Problem still occurs with WildMidi 0.4.3

System Error (_WM_BufferFileImpl:218) /etc/wildmidi/wildmidi.cfg (Unable to stat) : No such file or directory

I am wondering: If as you say, the program is working fine with an empty config file, shouldn't the config file then be optional in the first place?

I opened an upstream issue to resolve this question.
https://github.com/Mindwerks/wildmidi/issues/209
Comment by Balló György (City-busz) - Saturday, 03 June 2023, 05:58 GMT
This is not a bug, you have to configure a GUS patchset youself, otherwise wildmidi does not procedure any sound. One option is to install freepats-legacy from AUR, and then link the file /etc/wildmidi/wildmidi.cfg to /usr/share/freepats/wildmidi-freepats.cfg

Unlike other MIDI players, wildmidi does not support the Soundfont2 (SF2) format [1], so we can't use soundfont-fluid or freepats-general-midi.

[1] https://github.com/Mindwerks/wildmidi/issues/8

Loading...