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

Adding support for FreeBSD and bash location discovery via env #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

plato79
Copy link

@plato79 plato79 commented Nov 1, 2019

OSX is FreeBSD based, so I added FreeBSD.

Instead of assuming bash is located in /bin folder, I changed it to autodetect via env command which exists in every linux/freebsd system in /usr/bin folder. This way even if it's installed later to /usr/local/bin etc.. this will correctly find where the bash is.

@@ -8,7 +8,7 @@ install_vitasdk () {
INSTALLDIR=$1

case "$(uname -s)" in
Darwin*)
Darwin*|FreeBSD*)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is *BSD* also fine (NetBSD, OpenBSD, PC-BSD) ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I tried in FreeNAS and FreeBSD, and it was exactly FreeBSD, so *BSD may be a better solution.

@d3m3vilurr
Copy link
Contributor

hm...after the patch, $(get_download_link master osx) part is little weird. maybe we should make(or rename) the built package name with bsd instead osx.

@plato79
Copy link
Author

plato79 commented Nov 10, 2019

Actually we need more than that.. The binaries downloaded with osx is not fully compatible with FreeBSD. While OSX is also FreeBSD based the it seems there is enough difference that binaries are not executable on FreeBSD systems.

@d3m3vilurr
Copy link
Contributor

yes, a best option is making the package for the bsd version :)

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.

3 participants