From owner-freebsd-ports@FreeBSD.ORG Wed May 16 10:36:51 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA716106566B for ; Wed, 16 May 2012 10:36:51 +0000 (UTC) (envelope-from scheidell@FreeBSD.org) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id B8F698FC0A for ; Wed, 16 May 2012 10:36:51 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 3F6E4621C0F for ; Wed, 16 May 2012 06:36:51 -0400 (EDT) X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.18 at mx1.secnap.com.ionspam.net Received: from USBCTDC001.secnap.com (usbctdc001.secnap.com [10.70.1.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.secnap.com.ionspam.net (Postfix) with ESMTPS id 9105D621C09 for ; Wed, 16 May 2012 06:36:50 -0400 (EDT) Message-ID: <4FB38326.4000806@FreeBSD.org> Date: Wed, 16 May 2012 06:36:22 -0400 From: Michael Scheidell Organization: SECNAP Network Security Corp User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: References: <4FB36669.8060803@FreeBSD.org> <4FB37E61.5030500@gmail.com> In-Reply-To: <4FB37E61.5030500@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: how to find the number of processor cores X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 10:36:52 -0000 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@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@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