Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351226 - media-libs/stk-4.4.2 RAWWAVE_PATH environment variable
Summary: media-libs/stk-4.4.2 RAWWAVE_PATH environment variable
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 17:00 UTC by Jouni Rinne
Modified: 2011-01-09 18:15 UTC (History)
2 users (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 Jouni Rinne 2011-01-09 17:00:15 UTC
Thank you for updating media-libs/stk to 4.4.2. I don't know whether Mr. Ballier made his ebuild from scratch or based it on my ebuild on Csound-Wii overlay (http://diesel.punk.dy.fi/viewgit/), but there is one important omission in the ebuild in portage: The environment variable RAWWAVE_PATH should be set by the ebuild, if it ever is supposed to be used by csound. I'd hate to have to maintain my own version of stk-4.4.2 just for that one variable.

Please consider adding the following lines (or something similar) to the ebuild:

+cat <<- EOF > 62stk
+RAWWAVE_PATH=/usr/share/stk/rawwaves/
+EOF
+
+doenvd 62stk
Comment 1 Alexis Ballier gentoo-dev 2011-01-09 18:15:21 UTC
Please explain why it is needed... maybe csound is modifying this variable while it shouldnt.
Here it is fine:

$ cat foo.cc 
#include <stk/Stk.h>
#include <iostream>

int main() {
        std::cout << stk::Stk::rawwavePath() << std::endl;
        return 0;
}
$ g++ foo.cc -lstk
$ ./a.out 
/usr/share/stk/rawwaves/


seems all good; of course if you mess with this variable you'll mess things up.