Hi Mike, On Dec 18, 2014, at 7:02 AM, Mike Hanby <[email protected]> wrote: > So, the question, is this an issue that's only present on CentOS 5.x and > similar older distributions? If so, is there a way to configure the eb file > so that it conditionally sets the CFLAGS option?
You are not alone; the need to conditionally tune certain aspects of the build processes has appeared again in the past: https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/c/CUDA/CUDA-5.0.35-1.eb Sometimes, you just are lucky and a conditional is convertible to an expression (I’m referring to DOLFIN-1.0.0-goolf-1.4.10-Python-2.7.3.eb), some other times you need to take cases (btw. OpenMPI already has that, ref. libibverbs-dev*) Related, I also considered conditional patching of ncurses sources for a certain occasion: https://github.com/fgeorgatos/easybuild-easyconfigs/blob/contrib_macosx_buildable_Lmod/easybuild/easyconfigs/n/ncurses/ncurses-5.9-GCC-4.8.2.eb#L11 (there is suggestion to get rid of that conditional altogether, in that case). IMHO, at some point it may prove inevitable to introduce a concept such as "classes" (or whatever other predicate) alike more traditional configuration management systems: http://docs.cfengine.com/docs/3.5/manuals-language-concepts-classes.html Unless somebody comes up with an alternative idea on how to go about it; any offers? cheers, Fotis ps. eliminating need for conditionals is a major step in allowing easyconfigs to become "yaml-able", which opens up many possibilities for feeding the builds from, say, a DB. I am not lobbying for YAML as such, rather any other format that can compete is fine. We’ve considered also key-value pairs, but I think it can’t cover well nested clauses. I am with the impression that Ken/Stijn may have an idea in relation to upcoming EB v2.0? -- echo "sysadmin know better bash than english" | sed s/min/mins/ \ | sed 's/better bash/bash better/' # signal detected in a CERN forum

