|
[Rivet] auxiliary scripts in several generators.Andy Buckley andy.buckley at ed.ac.ukTue Apr 9 15:12:54 BST 2013
On 09/04/13 14:52, Pere Mato Vila wrote: > Hi Andy, > >> Hi Pere et al, >> >> I notice that ROOT has a root-config script: does that somehow survive >> Grid/CVMFS relocation? I have to admit that I've only used it locally. > > Yes it does. > >> >> In my local, privately made build of ROOT I see lines like >> bindir=/usr/local/bin > > I do not know which one you are looking. We never install ROOT at the system. In the installations on AFS (e.g. /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.04/x86_64-slc5-gcc43-opt/root/bin/root-config ) I see lines like > > fullpath1=$0 > ... > lpath=`dirname $0` > fullpath1=$lpath/$fullpath1 > .... > ROOTSYS=`dirname $fullpath1` > > So it gets the installation location relative from the location of root-config Interesting, that script seems to change in surprising ways based on how ROOT was installed... >> in this script, (I installed into prefix=/usr/local) so I suspect that >> it suffers from the same problem. If so, there are *-config script >> problems closer to the heart of SFT/LCG than the myriad external >> generator packages! > > Strange justification. Not a justification, and rather tongue-in-cheek. Just an observation (which anyway seems invalidated by the version you've pointed at) that there seemed to be other problematic config scripts around. >> But if there's a clever trick in the there that >> makes it "just work", then I'd be happy to try to put it into the >> packages that I have control over. >> > > Thanks. Another example code can be found at http://svnweb.cern.ch/world/wsvn/clhep/trunk/clhep-config.in I'll look into whether it would be reasonable to do a similar `dirname $0` approach with Rivet etc. It can't *exactly* work because of the possibility to install data, execs, and libs into different trees... but the simplest case of a homogeneous installation might be possible. Might need some trickery to fix the centrally generated -L, -I flag arguments, though, especially when they point at somewhere on AFS that doesn't trivially translate into a Grid/CVMFS location... we'll see. Cheers, Andy -- Dr Andy Buckley, Royal Society University Research Fellow Particle Physics Expt Group, University of Edinburgh The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
More information about the Rivet mailing list |