-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cross compiling for Solaris-like OS #289
Conversation
I'm not hugely in favour of adding a dependency to Logrus, being as it's a library included in a large amount of contexts. Will it really require vendoring very much code to get just this piece of functionality for Solaris derived OSes? |
Since an internal syscall package was frozen and there isn't SYS_IOCTL for Solaris, the package "gaoling.org/x/sys" seems to me is only way to get access to low-level function. If someone have a better idea I would be glad to hear it. Besides, extra dependency is actual only for Solaris platform and I suggest this pull-request because I need gorethink driver for RethinkDB working under Solaris. |
Cross compiling for Solaris-like OS
Thanks for your patch :) |
Cross compiling for Solaris-like OS
There are missing "io" import and unused variable Releated issues sirupsen#471 sirupsen#289
There are missing "io" import and unused variable Releated issues sirupsen#471 sirupsen#289
Cross compiling for Solaris-like OS
There are missing "io" import and unused variable Releated issues sirupsen#471 sirupsen#289
As described in issue #112 not all OS could be built. I've added support for Solaris OS (illumos kernel and SmartOs as well).
Since golang doesn't define SYS_IOCTL for Solaris, I've found nice extension "golang.org/x/sys" which has built-in IoctlGetTermios function.
I've seen projects who solve issue with absence of SYS_IOCTL by adding it manually, but for me using golang.org/x/sys seem more portable way.