brettviren / worch

Let the orchestration waf through the suite.
5 stars 3 forks source link

Wip/destdir support #21

Closed sbinet closed 11 years ago

sbinet commented 11 years ago

enable support for staging installs.

e.g.: $ waf configure --prefix=/opt/sw --destdir=/tmp/builds --orch-config=my.cfg build install -j32

brettviren commented 11 years ago

Hi Sebastien. I'm a little confused why this is needed. How does it differ from an install_dir which includes PREFIX in its definition? In the "makemake" feature if DESTDIR is left as the empty string will that mess up its use with "make"?

sbinet commented 11 years ago

it's needed so one can produce relocate-friendly binaries, so, e.g. root-config --prefix will give the correct /opt/sw/... path and not /tmp/builds/opt/sw/...

I tested that if DESTDIR='' it still works.