Problem 1387

Summary: Bug in generated bin/setup.sh and .csh
Product: Geant4 Reporter: Gunter.Folger
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: CLOSED FIXED    
Severity: critical    
Priority: P5    
Version: other   
Hardware: All   
OS: All   

Description Gunter.Folger 2012-11-14 17:27:21 CET
There is a typo when setting the PATH to Geant4 data, when cmake was given the absolute path to data already installed. It uses  $geant_envbindir instead of  $geant4_envbindir, ie. missing a 4. A snippet from a generated file:


...
if test "x$LD_LIBRARY_PATH" = "x" ; then
  export LD_LIBRARY_PATH="`cd $geant4_envbindir/../lib64 > /dev/null ; pwd`"
else
  export LD_LIBRARY_PATH="`cd $geant4_envbindir/../lib64 > /dev/null ; pwd`":${LD_LIBRARY_PATH}
fi


#-----------------------------------------------------------------------
# Resource file paths
#
export G4NEUTRONHPDATA="`cd $geant_envbindir/../../../../share/data/G4NDL4.2 > /dev/null ; pwd`"
export G4LEDATA="`cd $geant_envbindir/../../../../share/data/G4EMLOW6.32 > /dev/null ; pwd`"
...
Comment 1 Ben Morgan 2012-11-14 20:01:55 CET
Fixed in tag cmake-V09-05-71