#241: Thorns should be able to specify implementation versions, and other thorns should be able to depend on those --------------------------+------------------------------------------------- Reporter: knarf | Owner: Type: enhancement | Status: new Priority: minor | Milestone: Component: Cactus | Version: Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by knarf):
The attached patch introduces versions for capabilities. These can be specified in configuration.ccl as in this example: {{{ PROVIDES LORENE { VERSION 2014 SCRIPT src/detect.sh LANG bash OPTIONS LORENE_DIR LORENE_EXTRA_LIB_DIRS LORENE_EXTRA_LIBS LORENE_INSTALL_DIR } }}} and can be used in the same file, as in this example: {{{ REQUIRES LORENE (>=0.0.1) }}} (The version numbers here only serve as example. They are obviously not correlated here.)
Versions can contain alphanumeric characters, and ".+-:". Non-numeric and numeric parts are compared from left to right, lexically and numerically respectively. Valid operators for requirements are << <= = >= >>. < and > are avoided to make it clear that this is strict less or greater than.