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

[RFE] add --destdir option #37

Closed
ignatenkobrain opened this issue Feb 24, 2015 · 4 comments
Closed

[RFE] add --destdir option #37

ignatenkobrain opened this issue Feb 24, 2015 · 4 comments

Comments

@ignatenkobrain
Copy link
Member

when we're packaging software we want to install it to %{buildroot}/%{_prefix}/.... and we can't set prefix to %{buildroot}/%{_prefix}/, because it can break auto-config files and etc.

P.S. %{buildroot} in RPM == $(DESTDIR) in automake

@jpakkane
Copy link
Member

Meson already supports DESTDIR and it works exactly the same as with CMake and Autotools. Just do this:

DESTDIR=/your/staging/area ninja install

The installer for Meson itself takes a --destdir argument. I should probably make it behave the same.

@jpakkane
Copy link
Member

So in your case roughly the following:

meson --prefix=%{_prefix}
ninja
ninja test
DESTDIR=%{buildroot} ninja install

@ignatenkobrain
Copy link
Member Author

really, it works. Thanks!

can you add this to documentation?

@jpakkane
Copy link
Member

Fixed.

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