Closed ingrinder closed 3 years ago
Yes, definitely looking forward these supports ! I've allowed myself to edit your OP in order to add check-lists, to track down the different items requiring us to work on. I don't think an unique (huge) WIP PR will suit the development (mostly if we keep changing things due to others matters), so what about bringing BSD-support chunk-by-chunk across multiple ones ? Also, I'm reworking the project board(s) now that we are looking to many improvements related to various different purposes. Thus, this issue has landed to OS, Distributions & Hardware.
Ah, I didn't realise you could make checklists in GH issues. Thanks π
Most of the work has been done on the develop
branch, closing here as BSD should be supported in the next release :tada:
Is your feature request related to a problem? Please describe. Add official support for the BSDs (e.g. OpenBSD, FreeBSD, and maybe macOS since it's a BSD descendant and acts similar to the BSDs).
This pretty much means:
will befixed by #78).I think starting with OpenBSD/FreeBSD support is a good baseline since these OSes and their derivatives make up the majority of BSD users.
Describe the solution you'd like Currently, the following modules access
/proc
filesystems and cause Archey to crash running on a BSD-based OS:Uptime
-maywill befixed by #66.Model
- due to use of/proc/cpuinfo
to check for a Raspberry Pi (fixed by a089b80d).CPU
- due to use of/proc/cpuinfo
for CPU info (fixed by aab40469)RAM
- due to fallback to/proc/meminfo
sincefree
is missing (fixed by a1d0f27c).These entries access information which is all contained within the
sysctl
command on BSD, therefore hopefully the fixes for these crashes are fairly easy.These entries currently fail gracefully:
CPU
- Undetected, we'll have to go throughsysctl
(fixed by a3b6d36)Disk
- occurs due to--args
being an invalid format for thedf
implementation in BSD. Linked to #62,may befixed by #67.RAM
-free
is still... missing here π (fixed by 2047505)Packages
- the BSD package managers aren't present in the module π (fixed by #77).GPU
(FreeBSD) - FreeBSD haspciconf
but nopci-utils
(so nolspci
) (fixed by 162e608).Temperature
- need to usesysctl
(and enable temperature driver on FreeBSD) (fixed by 93de654).I haven't got a DE or WM running under BSD, so the
DesktopEnvironment
andWindowManager
entries may or may not work.And, of course, we could do with some nice art to go with this support π. Of course, FreeBSD already has some suitable looking art on its boot screen:
Additional context
I'll do some experimentation with OpenBSD and FreeBSD and provide some more information on
distro
module output andsysctl
values we will need.