Skip to content

Support illumos and Solaris.#7135

Closed
jperkin wants to merge 1 commit intonats-io:mainfrom
jperkin:main
Closed

Support illumos and Solaris.#7135
jperkin wants to merge 1 commit intonats-io:mainfrom
jperkin:main

Conversation

@jperkin
Copy link
Copy Markdown

@jperkin jperkin commented Aug 1, 2025

This fixes the build on illumos (and probably Solaris). While this may be useful for nats-server itself, this is more for other software such as telegraf that depends on this and which is currently unbuildable on illumos due to this problem. Whether you have any interest in supporting these platforms natively, we'd really appreciate this or a similar patch be applied so that other software is not adversely affected.

Previous iterations of this patch supported sysmem but used cgo (jperkin@7d43c51), so this newer version simply uses the unsupported routine the same as wasm/zos (which is now combined into a single file).

Many thanks.

Signed-off-by: Jonathan Perkin jonathan@perkin.org.uk

@jperkin jperkin requested a review from a team as a code owner August 1, 2025 14:34
@neilalexander
Copy link
Copy Markdown
Member

Principally happy with this but the CI is red because the commit message doesn't include the sign-off too. Any chance you can rebase & fix the commit message?

Signed-off-by: Jonathan Perkin <jonathan@perkin.org.uk>
@jperkin
Copy link
Copy Markdown
Author

jperkin commented Aug 1, 2025

Sorry, yes! I missed that the first time. Pushed.

@jwntree
Copy link
Copy Markdown
Contributor

jwntree commented Aug 2, 2025

#7122

Sorry to interrupt, but wouldn’t this be a better approach?
I think you can just take it as is, if you'd like.

Also, I can't understand why you should handle irrelevant zos codes...

@jperkin
Copy link
Copy Markdown
Author

jperkin commented Aug 7, 2025

Happy for this to be closed in lieu of #7122 once that PR supports illumos. Thanks!

@neilalexander
Copy link
Copy Markdown
Member

Have merged #7122, thanks!

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