From owner-freebsd-ports@FreeBSD.ORG Wed May 16 10:16:58 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30B71106566B; Wed, 16 May 2012 10:16:58 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 623848FC08; Wed, 16 May 2012 10:16:56 +0000 (UTC) Received: by laai10 with SMTP id i10so526992laa.13 for ; Wed, 16 May 2012 03:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kDq3SC5I+GhOqkZAfCEmlH5IUouoaMAx4l4UOJ/cfGA=; b=L8IANqyNftNigP6bW71a8PCeIcApUzppTVVhxKoopb03gxvMz1WZNRnRx4d3zO4DBy S37sI8NNE5NFjB27ere2V8kguIkmfx7V38ynTzPcrGcQK6QSHxz+64EZjLf2TJdtqidt oJ6hMM/0LsHdduLeY3QRTSpNQoAhCRcYwnu6T+goATokeHSLojzw3SQo2Bz4JZkIZrAh bAeEGfUmEcomZUggFf0QQtJFJ/yck8BaqR4sNMDc/y/djX9wCm+vxx+Oi35bdNxEPT3b TAn2b3zJsKIs4KGHGfzaNucIUR7Kl7pJSQDKYuWbI0SMw5Anl5L3kVAZeUrrJBo8+/xo /RXA== Received: by 10.152.104.44 with SMTP id gb12mr2350400lab.29.1337163416002; Wed, 16 May 2012 03:16:56 -0700 (PDT) Received: from [172.29.1.142] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPS id o2sm2955186lbd.7.2012.05.16.03.16.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 May 2012 03:16:54 -0700 (PDT) Message-ID: <4FB37E61.5030500@gmail.com> Date: Wed, 16 May 2012 13:16:01 +0300 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: Svyatoslav Lempert References: <4FB36669.8060803@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Michael Scheidell , freebsd-ports@freebsd.org 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:16:58 -0000 Svyatoslav Lempert wrote: >> Try to describe why/ and why you want to do this. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=167953 > >> 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).