-
Notifications
You must be signed in to change notification settings - Fork 36
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
fix default prefix location for linux. #47
base: develop
Are you sure you want to change the base?
Conversation
Under linux every binary that are not provided by a package manager should be under a local/ folder. Default value should expect manual build As each Distro have it's own package builder that will launch the makefile from their own build procedure. it's in their role to define the prefix used in their respective distro.
This is a sensible update but has knock-on implications: the unit file / init file would also need to be changed although that should be done anyway given that make install could put the binary anywhere. I'd also need to update the documentation. I'm not sure I remember the original reasoning for this but it may have been /usr/local not being in the standard PATH for an earlier version of either ubuntu or raspbian though it's definitely there now. There's also a possible concern about an old version of kplex being left around in /usr after someone has manually make install-ed a version with a new version which puts everything under /usr/local. Would you like to turn this pull request into an "Issue" and I can try to address it all at once? Your thoughts on the issues here would be appreciated. |
Also...while not disagreeing with the notion that locally installed software should generally go under /usr/local and further noting the gnu make docs saying this should be the default, is there another document you're quoting regarding non-package-managed software locations? |
You are right, my PR was a bit naïve. Ill open an issue.
It's part of the linux FHS standards
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf (page 21) Also Unix standards says :
https://en.wikipedia.org/wiki/Unix_filesystem#Conventional_directory_layout |
Under linux every binary that are not provided by a package manager should be under a local/ folder.
Default value should expect manual build As each Distro have it's own package builder that will launch the makefile from their own build procedure. it's in their role to define the prefix used in their respective distro.