From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F38AA138262 for ; Mon, 23 May 2016 13:13:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6702C14275; Mon, 23 May 2016 13:13:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF22914275 for ; Mon, 23 May 2016 13:13:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC6AC340C6C for ; Mon, 23 May 2016 13:13:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EFBAAA2 for ; Mon, 23 May 2016 13:13:05 +0000 (UTC) From: "Michael Haubenwallner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Haubenwallner" Message-ID: <1463743103.24c8d94b431b33ab40719e6728dbd7dac5d86531.haubi@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/bootstrap-prefix.sh X-VCS-Directories: scripts/ X-VCS-Committer: haubi X-VCS-Committer-Name: Michael Haubenwallner X-VCS-Revision: 24c8d94b431b33ab40719e6728dbd7dac5d86531 X-VCS-Branch: master Date: Mon, 23 May 2016 13:13:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0b609e1c-ae05-4a4d-b5d5-f5f8e2bcc8e1 X-Archives-Hash: 3d46e9b0897bb785157c4d501ce194d7 commit: 24c8d94b431b33ab40719e6728dbd7dac5d86531 Author: Michael Haubenwallner ssi-schaefer com> AuthorDate: Fri May 20 11:18:23 2016 +0000 Commit: Michael Haubenwallner gentoo org> CommitDate: Fri May 20 11:18:23 2016 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=24c8d94b Cygwin: use cmd to gain NUMBER_OF_PROCESSORS, for env -i scripts/bootstrap-prefix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 3377cb7..74863d4 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1781,7 +1781,7 @@ EOF echo local ncpu= case "${CHOST}" in - *-cygwin*) ncpu=${NUMBER_OF_PROCESSORS} ;; + *-cygwin*) ncpu=$(cmd /D /Q /C 'echo %NUMBER_OF_PROCESSORS%') ;; *-darwin*) ncpu=$(/usr/sbin/sysctl -n hw.ncpu) ;; *-freebsd*) ncpu=$(/sbin/sysctl -n hw.ncpu) ;; *-solaris*) ncpu=$(/usr/sbin/psrinfo | wc -l) ;;