Dear EasyBuilders,
Question: I have a Package Foo that provides a wrapper for a software package
Bar. Thus, in the EasyConfig for Foo, I list Bar as a dependency.
Now, Foo requires an environment variable BAR_BIN to be set that points to the
Bar binary. Thus, what I would like to do in the Foo EasyConfig is something
like:
modextravars = {‘BAR_BIN’: ‘$EBROOTBAR/bin’}
This doesn’t work: I get an error (something like ‘no variable EBROOTBAR’). I
presume the reason is that in the modextravars step for 'Foo', the 'Bar' module
isn’t actually loaded - thus EBROOTBAR is not set.
I could use $root (which points to the FOO root, and does exist when
modextravars is executed) and peal off the …/Foo/(version)-(toolchain), then
add .../Bar/(version)-(toolchain), but this feels like a very dirty solution.
Does anyone know of an elegant way to achieve this? And just to check: is it
correct that the dependencies are not loaded when modextravars is executed?
Best regards,
Caspar van Leeuwen