DUNE-DAQ / daq-buildtools

Make life for developers easier through a collection of CMake functions and scripts
0 stars 1 forks source link

Add a `DUNEDAQ_DB_PATH` variable for OKS support purposes #273

Closed jcfreeman2 closed 7 months ago

jcfreeman2 commented 7 months ago

This is a topic which has been on the radar for a while, but essentially the idea is that we don't want to overload the already-existing DUNEDAQ_SHARE_PATH environment variable to have it tell OKS programs where to find database files. An unintended consequence of this usage is described in https://github.com/DUNE-DAQ/dbe/issues/11. Instead, we should have a parallel DUNEDAQ_DB_PATH environment variable which differs from DUNEDAQ_SHARE_PATH in its priorities: 1) An OKS schema directory in the source code area of a work area takes precedence over an installed directory 2) A user-defined directory takes precedence over source code and installed directories

Of course, dbt-workarea-env.sh will need to be modified to support this change.

jcfreeman2 commented 7 months ago

Handled via https://github.com/DUNE-DAQ/daq-buildtools/pull/274 and associate PRs in other repos whose branches had the same name