Project

General

Profile

Use case 1 notes

(part 1)

cd $HOME
mkdir dev
mkdir dev/checkouts
mkdir dev/builds
mkdir dev/products
cd dev
scp  oink.fnal.gov:~distro/served_files/private-products-setup/upsfiles-dir.tar.gz .
tar zxvf upsfiles-dir.tar.gz -C products
export CETPKG_INSTALL=$HOME/dev/products
export PRODUCTS="${CETPKG_INSTALL}:${PRODUCTS}" 
export CETPKG_J=12
cd checkouts
git clone ssh://p-fhicl-cpp@cdcvs.fnal.gov/cvs/projects/fhicl-cpp
cd ../builds
source ../checkouts/fhicl-cpp/ups/setup_for_development -d
buildtool -tl
# edited files
buildtool -t1
cd $HOME/dev/checkouts/fhicl-cpp
vi CMakeList.txt # change version last number to 04
cd $HOME/dev/builds/fhicl-cpp
buildtool -t1
make install
make package
# CPack: - package: /home/jbk/dev/builds/fhiclcpp-2.16.04-slf6-x86_64-gcc46-a5-debug.tar.gz generated.

(part 2)

# added a member function in ParameterSet.h that calls through to RandFlat::shoot()
# add to the test in part 1 - a call to the getRand() member function
vi dev/checkouts/fhicl/ups/product_list
# add external product: setup -B clhep v2_1_2_0 -q $CETPKG_QUAL$extraqual
buildtool -t1
# error - connect find CLHEP product
vi dev/checkouts/fhicl/ups/product_list
# change external product: setup -B clhep v2_1_2_0 -q $hybridqual$extraqual
buildtool -t1
# error - connect find CLHEP product
source ../checkouts/fhicl-cpp/ups/setup_for_development -d
buildtool -tl
# lots of errors - cannot find CLHEP headers
vi dev/checkouts/fhicl/fhicl/CMakeList.txt 
# add the find_ups_product and find_library for CLEP
buildtool -t1
# still lots of the same errors
buildtool -c
# now headers found, but undefined reference to the shoot() function
# oops - see that I put the find* macros into the wrong level of CMakeList.txt
vi dev/checkouts/fhicl/CMakeList.txt 
# add the find_ups_product and find_library for CLEP, remove from the other CMakeList.txt
buildtool -c
# undefined reference for shoot in build of the test program PsetBoolStringTest
vi dev/checkouts/fhicl/CMakeList.txt 
# add $CLHEP to the library dependency list
buildtool -c
# undefined reference for shoot in build of the test program PsetBoolStringTest
vi dev/checkouts/fhicl/CMakeList.txt 
# change $CLHEP to ${CLHEP} after looking at an example in the art package
buildtool -t1
# works!
make install
# CPack: - package: /home/jbk/dev/builds/fhiclcpp-2.16.04-slf6-x86_64-gcc46-a5-debug.tar.gz generated.