Project

General

Profile

{{last_modified}}

Adding a base release to an existing set of online releases

November 1, 2011 (Peter)

  1. as novadaq, setup the existing base release
  2. cd $SRT_DIST/releases
  3. newrel -e -d <new_release_name> : makes the new release. The "-d" signifies "development," but the newrel function only seems to distinguish -t (test) from all other types.
  4. cd <new_release_name>
  5. addpkg -h -M onlsetup setup : yes, you are using the initial release to build this one. Patience, Grasshopper.
  6. Install the SoftRelTools package in the new release: ideally, this should be done with update-release/addpkg, but there's currently a bug in addpkg preventing the specification of CVSROOT other than the default.
    1. cp -r $SRT_PUBLIC_CONTEXT/SoftRelTools .
    2. cd include
    3. ln -s ../SoftRelTools/include SoftRelTools
    4. cd ..
  7. update-release --rel=<new_release_name> : if you forget the --rel= option, you risk messing up the original release.
  8. source [full path to DAQ setup file] -r <new_release_name>
  9. gmake SRT_NOVADAQ.all
  10. gmake SoftRelTools.all : Order matters, so we pick up the NOvA versions of certain SRT utilities.
  • You can now proceed to compile the release according to instructions here.

Creating a brand new test release.

  1. source /nova/novadaq/setup/setup_novadaq.sh -r <base_release_name> for a brand new base release
  2. newrel -t <base_release_name> <new_test_release_name> : makes the new test release. The "-t" signifies "test,"
  3. cd <new_release_name>
  4. srt_setup -a - make this your SRT_PRIVATE_CONTEXT
  5. addpkg -h SRT_NOVADAQ - add this package to make SRT work optimally.
  6. addpkg -h packageA - add HEAD of any desired packageA
  7. addpkg packageB tagB - add version tagB of any desired packageB
  8. build4 packageA - for each package.
  9. don't forget to commit any changes, and tag the entire test release, prior to Operations use!
  10. edit daq-operations.cfg either for the entire detector or a specific partition, to use this test release.

Incrementing the test release.

  1. setup_online -z <partition> - setup the existing base and test release
  2. cp -pr <old test rel> <new test rel> copy the existing one, preserving timestamps
  3. cd <new_release_name>
  4. srt_setup -a - make this your SRT_PRIVATE_CONTEXT
  5. addpkg -h SRT_NOVADAQ - add this package to make SRT work optimally, unless it's already there.
  6. addpkg -h packageA - add HEAD of any desired packageA
  7. addpkg packageB tagB - add version tagB of any desired packageB
  8. build4 packageA - for each package.
  9. don't forget to commit any changes, and tag the entire test release, prior to Operations use!
  10. edit daq-operations.cfg either for the entire detector or a specific partition, to use this test release.

Earlier notes, for adding a release without a previous base release to work with.
Here are notes from Peter (posted by Kurt):

steps for setting up the development-ddsv53p2 release from scratch

  • ksu novadaq
  • cd /nova/novadaq
  • export CVSROOT=":pserver:anonymous@cdcvs.fnal.gov:/cvs/nova"
  • export CVS_RSH="/usr/bin/ssh"
  • source /nova/novadaq/srt/srt.sh
  • newrel -e -d development-ddsv53p2
  • cd releases/development-ddsv53p2
  • addpkg -d :pserver:anonymous@srtcvs.fnal.gov:/srtcvs -h SoftRelTools
  • addpkg -h SRT_NOVADAQ
  • cvs checkout -d setup onlsetup
  • srt_setup
  • make SRT_NOVADAQ.clean
  • make SRT_NOVADAQ.all
  • make
  • source /nova/novadaq/setup/setup_novadaq_nt1.sh -r development-ddsv53p2
  • cd $SRT_PUBLIC_CONTEXT
  • make sure that you ended up in /nova/novadaq/releases/development-ddsv53p2
  • update-release
  • make; make tbin
  • source /nova/novadaq/setup/setup_novadaq_nt1.sh -r development-ddsv53p2
For PPC builds,
  • source /nova/novadaq/setup/setup_novadaq_nt1.sh -r development-ddsv53p2 --opt --xcompile
  • cd $SRT_PUBLIC_CONTEXT
  • make; make tbin