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

Cross compiling for Solaris-like OS #289

Merged
merged 1 commit into from
Nov 17, 2015

Conversation

0xE0F
Copy link
Contributor

@0xE0F 0xE0F commented Nov 3, 2015

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.

@sirupsen
Copy link
Owner

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?

@0xE0F
Copy link
Contributor Author

0xE0F commented Nov 16, 2015

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.

sirupsen added a commit that referenced this pull request Nov 17, 2015
Cross compiling for Solaris-like OS
@sirupsen sirupsen merged commit a22723f into sirupsen:master Nov 17, 2015
@sirupsen
Copy link
Owner

Thanks for your patch :)

devopstaku pushed a commit to devopstaku/logrus that referenced this pull request Aug 9, 2016
0xE0F pushed a commit to 0xE0F/logrus that referenced this pull request Feb 23, 2017
There are missing "io" import and unused variable
Releated issues sirupsen#471 sirupsen#289
Paddy-Truck pushed a commit to Paddy-Truck/logrus that referenced this pull request Sep 8, 2017
There are missing "io" import and unused variable
Releated issues sirupsen#471 sirupsen#289
cgxxv pushed a commit to cgxxv/logrus that referenced this pull request Mar 25, 2022
cgxxv pushed a commit to cgxxv/logrus that referenced this pull request Mar 25, 2022
There are missing "io" import and unused variable
Releated issues sirupsen#471 sirupsen#289
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.

None yet

2 participants