-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: add NetBSD as a supported platform, use case for PLATFORM test #434
Conversation
Hi. Thanks a lot. Can you confirm that dinit works when building it with |
It builds and works with CPPFLAGS="-DDASYNQ_HAVE_KQUEUE=1", I booted a virtual machine with it. Would you suggest to build with this defined as default? |
Probably, Based on https://man.netbsd.org/kqueue.2#HISTORY. Also it would be great if you send a patch (after testing) to https://github.com/davmac314/dasynq and change the default "if" (https://github.com/davmac314/dasynq/blob/7cf74df6b758fa11876d26b5173c382a976a7917/include/dasynq/config.h#L56) to include NetBSD. |
NetBSD patch submitted for dasynq |
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.
Except the mentioned thing, This PR is
Reviewed-by: Mobin Aydinfar <[email protected]>
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.
Reviewed-by: Mobin Aydinfar <[email protected]>
Pleas fix commit messages (we don't use "feat:"; "Update configure" should be more specific and not duplicated. Since shutdown works, should building it be enabled by default on NetBSD (as it is for Linux)? |
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.
(Please respond to earlier comment).
Done.
I think so, I've been using it for a couple of days with no issues. |
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.
Accepting as is, change to build shutdown by default on NetBSD can be made later if appropriate.
Thanks for the contribution!
I tested dinit on NetBSD as far as replacing /sbin/init with it and it works! FYI I packaged it for pkgsrc in sysutils/dinit