Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staging-prefix not respected by cmake files #46

Open
rossburton opened this issue Sep 29, 2020 · 3 comments
Open

staging-prefix not respected by cmake files #46

rossburton opened this issue Sep 29, 2020 · 3 comments

Comments

@rossburton
Copy link

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
@mclow mclow transferred this issue from boostorg/boost Sep 29, 2020
@pdimov
Copy link
Member

pdimov commented Sep 29, 2020

staging-prefix is a new feature, added in boostorg/build@51ad471. 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 pdimov transferred this issue from boostorg/cmake Sep 29, 2020
@pdimov
Copy link
Member

pdimov commented Sep 29, 2020

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. #34

@rossburton
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants