Project: datamanagement
Issue DM-1744: Fix SWIG_SWIG_LIB empty list default value
See Serge message to Qserv-l "xrootd premature death": {quote} However, there are bigger problems. First of all, master doesn’t build for me. I get this error: File "/home/lsstadm/qserv/SConstruct", line 104: env.Alias("dist-core", get_install_targets()) File "/home/lsstadm/qserv/SConstruct", line 90: exports=['env', 'ARGUMENTS']) File "/home/lsstadm/stack/Linux64/scons/2.3.0+1/lib/scons/SCons/Script/SConscript.py", line 609: return method(*args, **kw) File "/home/lsstadm/stack/Linux64/scons/2.3.0+1/lib/scons/SCons/Script/SConscript.py", line 546: return _SConscript(self.fs, *files, **subst_kw) File "/home/lsstadm/stack/Linux64/scons/2.3.0+1/lib/scons/SCons/Script/SConscript.py", line 260: exec _file_ in call_stack[-1].globals File "/home/lsstadm/qserv/build/SConscript", line 39: canBuild = detect.checkMySql(env) and detect.setXrootd(env) and detect.checkXrootdLink(env) File "/home/lsstadm/qserv/site_scons/detect.py", line 225: xrdLibPath = findXrootdLibPath("XrdCl", env["LIBPATH"]) File "/home/lsstadm/qserv/site_scons/detect.py", line 213: if os.access(os.path.join(path, fName), os.R_OK): File "/home/lsstadm/stack/Linux64/anaconda/2.1.0/lib/python2.7/posixpath.py", line 77: elif path == '' or path.endswith('/'): which is caused by the fact that env[“LIBPATH”] looks like: [[], '/home/lsstadm/stack/Linux64/antlr/2.7.7/lib', '/home/lsstadm/stack/Linux64/boost/1.55.0.1.lsst2/lib', '/home/lsstadm/stack/Linux64/log4cxx/0.10.0.lsst1+2/lib', '/home/lsstadm/stack/Linux64/xrootd/4.0.0rc4-qsClient2/lib', '/home/lsstadm/stack/Linux64/zookeeper/3.4.6/c-binding/lib', '/home/lsstadm/stack/Linux64/mysql/5.1.65.lsst1/lib', '/home/lsstadm/stack/Linux64/protobuf/2.4.1/lib', '/home/lsstadm/stack/Linux64/log/10.0+3/lib'] The first element is [], which comes from https://github.com/LSST/qserv/blob/master/site_scons/state.py#L173 where a PathVariable called SWIG_SWIG_LIB is given a default value of []. I can fix the build by changing the default to an empty string… but I don’t know enough scons to say whether that’s the right thing to do. Can one of the scons gurus confirm that’s the right fix? {quote}
Story points: 1