-
Notifications
You must be signed in to change notification settings - Fork 79
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
Use better defaults for installation directories #574
Conversation
Changed defaults for installation locations * SYSCONFDIR is /etc by default now * LOCALSTATEDIR is /var by default now * Introduced GVM_RUN_DIR that uses /run/gvm by default * GVM_PID_DIR is /run/gvm by default now
Use better defaults for installation directories (backport #574)
Use better defaults for installation directories (backport #574)
Seems like this patch broke useage of GVM_INSTALL_PREFIX variable. Whatever you put in that variable, this is now completely ignored by cmake at compile time, and the new defaults are systematically used. |
That's not correct. We just follow another scheme. CMAKE_INSTALL_PREFIX is still used for the application data (the files that are normally installed somewhere into /usr). state or config data is installed into root directories by default for example into /etc, /var or /run because it doesn't really make sense to install them into a different location by default. The aim of the new install locations is to provide and easy system wide installation by default. |
If you don't use a system wide installation you need to adjust the cmake parameters listed above in the PR description. |
I understand the logic but why ignoring GVM_INSTALL_PREFIX ? Wouldn't it be more simple to provide those defaults in case GVM_INSTALL_PREFIX is unset, which would apply to most users not wanting a particular root installation path by default without breaking those who wants ? Now you're forcing users to use this new default, unless they change every single state or config data manually. |
Just to be clear there is no GVM_INSTALL_PREFIX it is CMAKE_INSTALL_PREFIX. CMAKE_INSTALL_PREFIX is never empty. It's default is /usr/local. Therefore there is no possibility to check if it is set or not. |
Yes, typo erro. I meant CMAKE_INSTALL_PREFIX |
So if we used CMAKE_INSTALL_PREFIX before and we want to keep using same structure, now we need to manually set
is that correct? |
There is no GVM_PID_DIR in gvm-libs anymore. And I have GVM_RUN_DIR set to |
What:
Changed defaults for installation locations
Why:
Use same defaults in every component and use defaults that make sense on a normal system.
How:
Checklist: