On 2013-01-09 10:53:03, ETHER wrote:
Show quoted text> I noticed your caveat in the pod, that the plugin used in the build will
> have no version if the code itself has no version (e.g. if [PkgVersion]
> is being used). One way to solve this is to build twice:
>
> - build once using -Ilib, as is currently done
> - use that build product to build again: -I.build/deadbeef
>
> Is this totally insane? :) I think I'm going to try it out...
I said on IRC, but rehashing it here for newcommers:
./.build/* is offlimits for this purpose really, because things only exist in ./build/* when
a) during test
b) after a test fails
a) is obviously useless to us
b) and using a broken and failing dist is probably a bad idea too
so if some approach is to be used, it will need to use $ROOT->built_in dir.
However, there's a catch22 problem, that if you require it to be built somewhere other than $ROOT ( ie: $ROOT/somesubdir ) in order to build the code, then you will *never* build the code, because you won't be able to build $ROOT/somedir in the first place, in order to include it to build self.
Though I guess this can work:
1. Install previous version of X
2. Build X with previous version of X ( creating $ROOT/built-X )
3. Build X with $ROOT/built-X
Its just the real purpose of Boostrap::lib is to avoid 1 & 2, by using path manglement to build something with itself *without* needing it installed first.