-
Notifications
You must be signed in to change notification settings - Fork 427
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
Add support for FreeBSD #4872
Add support for FreeBSD #4872
Conversation
This requires the changes to conda in conda/conda#12647. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with comments
conda_build/environ.py
Outdated
elif host_platform.startswith("linux"): | ||
return ".so" | ||
elif host_platform.startswith("freebsd"): | ||
return ".so" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elif host_platform.startswith("linux"): | |
return ".so" | |
elif host_platform.startswith("freebsd"): | |
return ".so" | |
elif host_platform.startswith(("freebsd", "linux")): | |
return ".so" |
07093c0
to
683d26b
Compare
* Add support for the FreeBSD platform and the freebsd-64 subdir. * The platform uses .so extensions, elffiles, and defaults to a clang toolchain. * Add a freebsd selector and include the freebsd platform in the unix selector.
Use the portable and POSIX-standard '.' to execute commands in scripts on non-Windows platforms rather than the non-portable 'source' command. Note that on FreeBSD, source is not provided by the default install or shell.
Use the --posix argument to prevent patch from making backup files rather than the --no-backup-if-mismatch argument which is specific to GNU patch and not supported by various *BSD implementations.
Many conda recipe build files use shell syntax and commands that are specific to bash and not POSIX shells. Given the large number of these that occur it is easier run the build script in bash than convert them. On Linux and macOS, bash is already used explicitly. On FreeBSD, bash is not part of the base system and must be installed via ports. The install location is /usr/local/bin/bash.
If there is interest in this it might be worth reverting the patch changes in ca1cbdd and requiring GNU patch when running conda-build. When I was building packages on FreeBSD I ran into a number of problem applying patches with the |
Isn't GNU |
Hi there, thank you for your contribution! This pull request has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this pull request to remain open please:
NOTE: If this pull request was closed prematurely, please leave a comment. Thanks! |
Description
source
and a patch argument which are not supported on FreeBSD.freebsd
selector and clarify thatunix
includes the FreeBSD platform.Checklist - did you ...
news
directory (using the template) for the next release's release notes?