btop icon indicating copy to clipboard operation
btop copied to clipboard

Add NetBSD Support.

Open fraggerfox opened this issue 1 year ago • 7 comments

Add support for NetBSD. (Addresses #301)

A lot of the work has been taken from the PR to bring up OpenBSD support. #607

image

NOTE: Battery and Thermal stats are shown based on some guess work.

Thanks to @0-wiz-0 for helping test and debug the NetBSD specific changes.

NOTE: ~Once this is merged, a follow up PR will update the README.md with additional information for building / installing in NetBSD.~ The PR has the updated README.md.

Pending changes

  • [x] ~Verify the memory stats shown is correct.~
  • [x] ~Fixed the swap memory calculation.~
  • [x] ~Add support for querying battery stats.~
  • [x] ~Add support for querying thermal stats.~
  • [x] ~Fix utf issues when starting up in NetBSD.~
  • [x] ~Add CI for nebtsd based builds.~

fraggerfox avatar Jan 06 '24 07:01 fraggerfox

You should also update all other CI files to exclude the new netbsd path.

imwints avatar Mar 03 '24 11:03 imwints

You should also update all other CI files to exclude the new netbsd path.

Good point, let me do that update.

fraggerfox avatar Mar 03 '24 11:03 fraggerfox

You should also update all other CI files to exclude the new netbsd path.

Good point, let me do that update.

Should be done in the latest commit.

fraggerfox avatar Mar 03 '24 12:03 fraggerfox

@fraggerfox

Is this PR finished? If so, do you wanna note down in this thread if there are any specific dependencies or instructions for compiling on NetBSD.

Just to save me the trouble later when doing testing.

Any links to VM images of current NetBSD release would also be helpful.

aristocratos avatar Apr 30 '24 15:04 aristocratos

NOTE: Once this is merged, a follow up PR will update the README.md with additional information for building / installing in NetBSD.

I would recommend you include the README.md changes in this PR also if you don't mind, it would speed things along when I have time to look through everything and do testing. Since I will likely be pushing a new release once this is merged.

aristocratos avatar Apr 30 '24 15:04 aristocratos

@fraggerfox

Is this PR finished? If so, do you wanna note down in this thread if there are any specific dependencies or instructions for compiling on NetBSD.

Just to save me the trouble later when doing testing.

Any links to VM images of current NetBSD release would also be helpful.

I have added an updated README.md with the instructions for NetBSD.

You can find the VM image which I have used from here

  • https://github.com/vmactions

but if you want to load it up in a Virtualbox like environment, the ISO from NetBSD should help out

  • https://wiki.netbsd.org/ports/amd64/

fraggerfox avatar May 02 '24 07:05 fraggerfox