getting cpu info w/o parsing /var/run/dmesg.boot

John Marino dragonflybsd at marino.st
Fri Oct 9 05:43:19 PDT 2015


On 10/9/2015 2:36 PM, Hleb Valoshka wrote:
> On 10/9/15, Markus Pfeiffer <markus.pfeiffer at morphism.de> wrote:
> 
>> Just use the cpuid utility? It's available in dports...
> 
> Your suggestion may be good for end user but not for ruby library.
> 

You are re-inventing the wheel:

http://www.freshports.org/sysutils/rubygem-ohai/

You're efforts would be better served to fix whatever prevents that port
from building (on top of providing patches for it).

These types of ports are generally very low level, using C to check
kernel structures.  They are extremely system specific.  It's not even
the only ruby package that does this either.

John



More information about the Users mailing list