Problem 1387 - Bug in generated bin/setup.sh and .csh
Summary: Bug in generated bin/setup.sh and .csh
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: other
Hardware: All All
: P5 critical
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2012-11-14 17:27 CET by Gunter.Folger
Modified: 2012-11-14 20:02 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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