1 of 5

Update OTS

2 of 5

There are two components to updating ots...

  1. Updating your source code
    1. This amounts to doing ‘git pull’ in each repository. There is a script shown on the slide 3 that can help with that.
  2. Updating your dependencies
    • Which software products ots depends on are defined by your qualifiers. Changing your qualifiers is shown on slide 4.

Note that if you can not setup ots, then you can not compile.

Main repository versions should always compile, and usually the develop repository version should compile together IF you select the latest qualifiers.

2

3 of 5

To update your ots installation...

  • Open up your terminal
    • In the ots Virtual Machine, the Konsole (terminal) icon is in the lower right hand corner of the Virtual Machine, or you right-click on the desktop to find Konsole.
  • Type these commands:
    1. cd [YOUR-DIRECTORY]
      1. [YOUR-DIRECTORY] refers to the path where your localProducts*/ and srcs/ are located.
      2. In the VM, the base folder is called otsdaq-mrb-base (/home/otsdaq/otsdaq-mrb-base)
    2. source setup_ots.sh
    3. UpdateOTS.sh --pullall
      • Note: at the end of the printouts, the available versions and compiler qualifiers are listed. If you want to change to a different version or qualifier, go to the next slide.
    4. Spack install

3

4 of 5

To change your ots version or compiler qualifiers…

  1. cd <otsdaq-base>
    • In the VM, the base folder is called otsdaq-mrb-base (/home/otsdaq/otsdaq-mrb-base)
  2. source setup_ots.sh
  3. UpdateOTS.sh --pullall
    • This updates your code to the latest develop branch (--fetchall would not change your code)
    • Note: at the end of the printouts, the available versions and compiler qualifiers are listed. If you want to change to a different version or qualifier
    • Choose a version (e.g. v2_05_02) and qualifier (e.g. s96:e19)
  4. mrb newDev -f -v <version> -q <qualifier>
    • e.g. mrb newDev -f -v v2_05_02 -q s96:e19:prof
    • The result will be a new localProducts folders in <otsdaq-base>/
      • e.g. localProducts_otsdaq_demo_v2_05_s96_e19_prof
  5. Delete or move any other localProducts* folders that you do not want to use
  6. Source setup_ots.sh #to re-setup with new dependencies
  7. mrb z; mrbsetenv; mrb b #clean build
  8. You are ready to go!

4

5 of 5

5