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

Change default prefix location for linux. #48

Open
FredericGuilbault opened this issue Oct 22, 2020 · 1 comment
Open

Change default prefix location for linux. #48

FredericGuilbault opened this issue Oct 22, 2020 · 1 comment

Comments

@FredericGuilbault
Copy link

This issue open the convo around the Pull Request #47

The original issue raised was about changing the default install location in the makefile.

The correct install location for handbuild binaries under linux (And probably OSX) should be /usr/local/bin/

For reference:
The linux FHS standards says:

Purpose of The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr.
Locally  installed  software  must  be  placed  within  /usr/local  rather  than  /usr  unless  it  is  being installed to replace or upgrade software in /usr.

https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf (page 21)

Also Unix standards says :

/usr/local | Resembles /usr in structure, but its subdirectories are  used for additions not part of the operating system distribution, such  as custom programs or files from a BSD Ports collection. Usually has subdirectories such as /usr/local/lib or /usr/local/bin.

https://en.wikipedia.org/wiki/Unix_filesystem#Conventional_directory_layout


This said, the challenge now is to figure all the implications and changes required.

@FredericGuilbault
Copy link
Author

I made a quick review:

Last comment here, suggest editing the service file withing the make file to make sure they both are coherent in all case.
https://bbs.archlinux.org/viewtopic.php?id=214576

Here, they suggest to hardcode some $PATH variable. and this could support both path.
https://askubuntu.com/questions/1014480/how-do-i-add-bin-to-path-for-a-systemd-service

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

1 participant