Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63843 - Timidity patch set control
Summary: Timidity patch set control
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 64440
Blocks:
  Show dependency tree
 
Reported: 2004-09-12 16:39 UTC by John Richard Moser
Modified: 2004-09-23 14:23 UTC (History)
1 user (show)

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


Attachments
timidity-update (timidity-update,2.45 KB, text/plain)
2004-09-12 16:40 UTC, John Richard Moser
Details
timidity.cfg (timidity.cfg,557 bytes, text/plain)
2004-09-12 16:42 UTC, John Richard Moser
Details
timidity.cfg (timidity.cfg,669 bytes, text/plain)
2004-09-17 11:54 UTC, John Richard Moser
Details
timidity++-2.13.0-r2.ebuild (timidity++-2.13.0-r2.ebuild,3.63 KB, text/plain)
2004-09-17 11:59 UTC, John Richard Moser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Richard Moser 2004-09-12 16:39:44 UTC
Here's a couple of things I hacked together, they basically allow you to control timidity's patch set easily.

Control is obvious; I did good online documentation.
Comment 1 John Richard Moser 2004-09-12 16:40:34 UTC
Created attachment 39471 [details]
timidity-update

timidity-update for users and root.  Hacks up ~/.timidity/current or
/usr/share/timidity/current symlink to point to a patch set.
Comment 2 John Richard Moser 2004-09-12 16:42:06 UTC
Created attachment 39472 [details]
timidity.cfg

timidity.cfg for the controller.

This config file looks for the timidity.cfg for the current patch set in
/usr/share/timidity/current, which is a symlink to /usr/share/timidity/patchset
for the patch set, SO PUT IT THERE.

It probably should look in ~/.timidity/current first or something.
Comment 3 John Richard Moser 2004-09-12 16:49:06 UTC
This works with shompatches.  Add more patch sets, like midia etc etc, using this as the control script.

For EAW patches, move the /etc/timidity.cfg from eaw intto /usr/share/timidity/eawpatches/
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-15 12:53:12 UTC
do youu think you could post an updated timidity++ ebuild that will use these?  That would be a big help.
Comment 5 John Richard Moser 2004-09-17 11:54:12 UTC
Created attachment 39779 [details]
timidity.cfg

I decided to not be a prude and tested out the timidity.cfg I had in mind
earlier.  This one has the following logic:

if (exists(~/.timidity/current))
  use ~/timidity/current/timidity.cfg
else
  use /usr/share/timidity/current/timidity.cfg

In other words, it'll use the patch set the user selected; but if the user has
not yet run timidity-update, it'll just use the system wide one set by
timidity-update -g.

It works.
Comment 6 John Richard Moser 2004-09-17 11:59:02 UTC
Created attachment 39780 [details]
timidity++-2.13.0-r2.ebuild

You'll need to put the new timidity.cfg into ${FILESDIR}, as well as
timidity-update.  This ebuild will install them.

I moved stuff around in the src_install() because I was having trouble with
portage not installing the new config; what it was was that I had an
/etc/._cfg0000_timidity.cfg from earlier and it wouldn't overwrite it.	*shrug*


I haven't repoman'd this, but I tested it, it works for me.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-23 14:23:02 UTC
in portage.  thanks.