Bug 232

Summary: make install ignores --prefix when trying to install instruments db
Product: LinuxSampler Reporter: Cedric <manday>
Component: otherAssignee: Christian Schoenebeck <cuse>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P5    
Version: SVN Trunk   
Hardware: PC   
OS: Linux   

Description Cedric 2014-12-07 15:57:58 CET
****************************************************************
*** LinuxSampler was compiled with instruments DB support and
*** /var/lib/linuxsampler/instruments.db
*** doesn't exist yet, creating it now:
mkdir: cannot create directory ‘/var/lib/linuxsampler’: Permission denied


Although a --prefix was given
Comment 1 Christian Schoenebeck 2019-03-10 17:35:08 CET
The --prefix argument is usually used for specifying the location where the application itself (and its libs and static data) shall be installed to (static application data). This is behaving correctly and in fact is used for many years for packaging the sampler for various distros.

The error you got is the location of the instrument's data base, which is storing the location and meta info of all the user's sounds. So these are pure user data which is dynamically changing. That has nothing to do with the --prefix argument.

You already do have the option though to override the instrument's DB location both at compile time ("./configure --enable-default-instruments-db-location=/some/where/instruments.db") or at runtime when launching the sampler (--instruments-db-location, see "man linuxsampler").

So as far as I can see it, this seems to be behave correctly already and I'm going to close this report due to that reason.