boostorg / boost_install

8 stars 32 forks source link

staging-prefix not respected by cmake files #46

Open rossburton opened 3 years ago

rossburton commented 3 years ago

If I install Boost with b2 install --prefix=/usr staging-prefix=/tmp/stage/usr the libraries are installed to /tmp/stage/usr/lib/... but fails as the the cmake files are not relocated under the staging prefix:

common.mkdir /usr/lib/cmake
| mkdir: cannot create directory ‘/usr/lib/cmake’: Permission denied
pdimov commented 3 years ago

staging-prefix is a new feature, added in https://github.com/boostorg/build/commit/51ad47134a2791599b2ce5604fab7da1e877c5c1. It's not clear how these new features are supposed to interact with the old command-line options (--prefix, --libdir etc) used when installing Boost.

pdimov commented 3 years ago

Other than that, the functionality has already been requested in the form of DESTDIR support, which I was going to implement as a --destdir option, but --staging-prefix works too, I guess. https://github.com/boostorg/boost_install/issues/34

rossburton commented 3 years ago

My impression was that staging-prefix is basically DESTDIR, but if you're going to add proper DESTDIR semantics then that would be better.