how to find the number of processor cores
Michael Scheidell
scheidell at FreeBSD.org
Wed May 16 10:36:52 UTC 2012
On 5/16/12 6:16 AM, Vitaly Magerya wrote:
> Svyatoslav Lempert wrote:
>>> Try to describe why/ and why you want to do this.
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=167953
>>
miwi has this pr, I suggest you make sure you work this out with him,
and/or the ports maintainer. ports at mcdermottroe.com
miwi is not only a ports committer, but a senior developer working deep
in the heat of FreeBSD.
also, don't be surprised if the maintainer of that port
ports at mcdermottroe.com rejects your patch.
>>> Try:
>>>
>>> CPUS!= ${SYSCTL} -n kern.smp.cpus
> What if the package was built on one machine, but is installed on
> another one? The number of CPUs during the build is meaningless; you
> need to test for those at runtime (or find another workaround).
Like Vitaly said.
you need to find a better way to fix the problem. maybe some runtime
test. it looks like the upstream needs fixing as well.
Not only is this broken for so many reasons, but puts an undue burden on
make index.
(you did run portlint -abt and read the warning, didn't you?)
--
Michael Scheidell, CTO
>*| * SECNAP Network Security Corporation
d: +1.561.948.2259
w: http://people.freebsd.org/~scheidell
More information about the freebsd-ports
mailing list