FS#50194 - [stk] Missing rawwave files

Attached to Project: Community Packages
Opened by Zoë Sparks (tenfoxes) - Friday, 29 July 2016, 09:54 GMT
Last edited by Ivy Foster (escondida) - Thursday, 10 October 2019, 19:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This package appears to be missing the rawwave files that are normally distributed with stk.

They're included with the upstream source, in the directory "rawwave" at the top directory of the distribution. Also, the arguments to configure in the PKGBUILD include a value for RAWWAVE_PATH (on ln. 35). The package's file list doesn't have them, though, and they don't seem to be obtained by any other means during the package install.

Programs that depend on stk seem to assume those files will be there. I ran into this from Csound; the opcodes that depend on STK error out, complaining that those files are missing. A couple of other users seem to have ran into the same problem from LMMS, judging by this forum thread: https://bbs.archlinux.org/viewtopic.php?id=157411
This task depends upon

Closed by  Ivy Foster (escondida)
Thursday, 10 October 2019, 19:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  The various issues in this report and its first comment seem to have been fixed over time.
Comment by Christopher Arndt (SpotlightKid) - Thursday, 19 April 2018, 15:25 GMT
The files are still missing in the updated package for stk version 4.6.0, which is currently in community-staging. Adding the following lines to the 'package' func in PKGBUILD solves this problem:

# install rawwave files
install -Dm644 rawwaves/*.raw -t "${pkgdir}/usr/include/${pkgname}/rawwaves"

There are a few other problems with the PKGBUILD:

* The license file in sources is superfluous now, there's a LICENSE file in the source distribution, which should be installed instead.
* The patch to build a shared lib is outdated as well, just add --enable-shared to the ./configure call
* The fixing of the rawwaves path in demo.cpp and the applying of the patch for TCL scripts should be moved into a 'prepare' func.
* namcap tells me the depends should be 'alsa-lib' and 'jack'. Not sure, whether this is correct, though. I think it depends on whether you're using jack1 or jack2, if alsa-lib is already an implicit dependency

Comment by Christopher Arndt (SpotlightKid) - Thursday, 19 April 2018, 15:27 GMT
Here's a PKGBUILD that fixes the above mentioned problems.
   PKGBUILD (1.4 KiB)
Comment by Ivy Foster (escondida) - Thursday, 10 October 2019, 19:32 GMT
Current stk (4.6.1) does include them in /usr/share/stk/rawwaves. It also uses the license from upstream, no longer patches it, and does not change demo.cpp.

Loading...