Skip Menu |

This queue is for tickets about the App-OS-Detect-MachineCores CPAN distribution.

Report information
The Basics
Id: 118938
Status: new
Priority: 0/
Queue: App-OS-Detect-MachineCores

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.2.3
Fixed in: (no value)



Subject: Wrong SC_NPROCESSORS_ONLN value for FreeBSD
The tests fail on FreeBSD systems: isa check for "cores" failed: 200112 is not a reasonable number of cores! at /home/cpansand/.cpan/build/2016112406/App-OS-Detect-MachineCores-1.2.3-P9Wpin/t/../lib/App/OS/Detect/MachineCores.pm line 24. It seems that SC_NPROCESSORS_ONLN is wrong: it should be 58 for $^O eq 'freebsd': $ grep SC_NPROCESSORS_ONLN /usr/include/unistd.h #define _SC_NPROCESSORS_ONLN 58 This looks reasonable: $ perl -MPOSIX=sysconf -E 'say sysconf 58' 4