Added support for SL 6.

This commit is contained in:
The Coriolis Project 2011-06-28 10:49:59 +00:00
parent 23d80412d5
commit c2d8a58124
3 changed files with 32 additions and 14 deletions

View File

@ -618,6 +618,7 @@ if __name__ == "__main__":
, "amsCore"
, "opSim"
, "scribe"
, "graph"
, "pharos"
, "schematic"
, "autoDTR"

View File

@ -103,7 +103,7 @@
#
macro(print_cmake_module_path)
message("-- Components of CMAKE_MODULE_PATH:")
foreach(PATH IN LISTS CMAKE_MODULE_PATH)
foreach(PATH IN LISTS ${CMAKE_MODULE_PATH})
message("-- ${PATH}")
endforeach(PATH)
endmacro(print_cmake_module_path)
@ -190,7 +190,7 @@
endif(NOT Boost_FOUND)
endif(ARGC LESS 1)
message(STATUS "Found Boost libraries ${Boost_LIB_VERSION} in ${Boost_INCLUDE_DIR}")
foreach(LIBRARY IN LISTS Boost_LIBRARIES)
foreach(LIBRARY IN LISTS ${Boost_LIBRARIES})
message(STATUS " ${LIBRARY}")
endforeach(LIBRARY)
endmacro(setup_boost)

View File

@ -89,6 +89,7 @@ if __name__ == "__main__":
parser = optparse.OptionParser ()
# Build relateds.
parser.add_option ( "--csh" , action="store_true" , dest="csh" )
parser.add_option ( "--v1" , action="store_true" , dest="v1" )
parser.add_option ( "--v2" , action="store_true" , dest="v2" )
parser.add_option ( "--release", action="store_true" , dest="release" )
@ -139,15 +140,15 @@ fi
buildDir = buildType + "." + linkType
scriptDir = os.path.dirname ( os.path.abspath(__file__) )
print "echo %s;" % scriptDir
#print "echo %s;" % scriptDir
if scriptDir == "/etc/coriolis2":
coriolisTop = "/usr"
sysconfDir = scriptDir
shellMessage = "Using system-wide Coriolis 2 (/usr)"
elif scriptDir[:35] == "/users/outil/coriolis/coriolis-2.x/":
coriolisTop = "/asim/coriolis2"
sysconfDir = scriptDir
shellMessage = "Using SoC network-wide Coriolis 2 (/asim/coriolis2)"
elif scriptDir.startswith("/users/outil/coriolis/coriolis-2.x/"):
coriolisTop = "/soc/coriolis2"
sysconfDir = coriolisTop + "/etc/coriolis2"
shellMessage = "Using SoC network-wide Coriolis 2 (/soc/coriolis2)"
else:
if not rootDir:
rootDir = os.getenv("HOME") + "/coriolis-2.x"
@ -171,21 +172,37 @@ fi
strippedPythonPath = "%s/cumulus:" % (sitePackagesDir) + strippedPythonPath
strippedPythonPath = "%s/stratus:" % (sitePackagesDir) + strippedPythonPath
shellScript = \
shellScriptSh = \
"""
echo "%(MESSAGE)s";
echo "Switching to Coriolis 2.x (%(buildDir)s)";
PATH=%(PATH)s;
LD_LIBRARY_PATH=%(LD_LIBRARY_PATH)s;
PYTHONPATH=%(PYTHONPATH)s;
BOOTSTRAP_TOP=%(BOOTSTRAP_TOP)s;
CORIOLIS_TOP=%(CORIOLIS_TOP)s;
STRATUS_MAPPING_NAME=%(SYSCONF_DIR)s/stratus2sxlib.xml;
PATH="%(PATH)s";
LD_LIBRARY_PATH="%(LD_LIBRARY_PATH)s";
PYTHONPATH="%(PYTHONPATH)s";
BOOTSTRAP_TOP="%(BOOTSTRAP_TOP)s";
CORIOLIS_TOP="%(CORIOLIS_TOP)s";
STRATUS_MAPPING_NAME="%(SYSCONF_DIR)s/stratus2sxlib.xml";
export PATH LD_LIBRARY_PATH PYTHONPATH BOOTSTRAP_TOP CORIOLIS_TOP STRATUS_MAPPING_NAME;
hash -r
"""
shellScriptCsh = \
"""
echo "%(MESSAGE)s";
echo "Switching to Coriolis 2.x (%(buildDir)s)";
setenv PATH "%(PATH)s";
setenv LD_LIBRARY_PATH "%(LD_LIBRARY_PATH)s";
setenv PYTHONPATH "%(PYTHONPATH)s";
setenv BOOTSTRAP_TOP "%(BOOTSTRAP_TOP)s";
setenv CORIOLIS_TOP "%(CORIOLIS_TOP)s";
setenv STRATUS_MAPPING_NAME "%(SYSCONF_DIR)s/stratus2sxlib.xml";
rehash
"""
if coriolisVersion:
if options.csh: shellScript = shellScriptCsh
else: shellScript = shellScriptSh
print shellScript % { "PATH" : strippedPath
, "LD_LIBRARY_PATH" : strippedLibraryPath
, "PYTHONPATH" : strippedPythonPath