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

Destdir install #172

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

dagbrown
Copy link
Member

Install modules by first using the (quite-common) DESTDIR to install the module into a staging directory, creating the cache from that, and then resurrecting the cache, rather than just installing directly onto the main filesystem.

DESTDIR builds create a cache file with relative paths, not absolute
paths (which is probably safer in general). Ensure this isn't a problem
by changing to the root directory before expanding them.
Basically, you can say `lvu set DESTDIR_BUILD on` and Lunar
will default to doing a DESTDIR build. You can also put the line
"DESTDIR_BUILD=off" or "DESTDIR_BUILD=on" in modules' DETAILS files to
force it to work one way or another.
Basically, do everything that uses installwatch twice: once using
installwatch, and once using DESTDIR.

Also the actual installation of finished packages is moved into
create_destdir_install_cache which is almost certainly the wrong place
for it, but there it is for now.
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

Successfully merging this pull request may close these issues.

1 participant