From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A81AD1396D1 for ; Wed, 9 Aug 2017 06:21:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C5FD1FC047; Wed, 9 Aug 2017 06:21:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF8DB1FC047 for ; Wed, 9 Aug 2017 06:21:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6768341A58 for ; Wed, 9 Aug 2017 06:21:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF6CB75F7 for ; Wed, 9 Aug 2017 06:21:25 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1502259676.384f21cbf2a1bc7a7d30fd443085d27185d305fc.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/concurrent-ruby/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/concurrent-ruby/files/concurrent-ruby-1.0.2-alpha.patch X-VCS-Directories: dev-ruby/concurrent-ruby/files/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 384f21cbf2a1bc7a7d30fd443085d27185d305fc X-VCS-Branch: master Date: Wed, 9 Aug 2017 06:21:25 +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: 3ca0c3e8-d09a-461b-84c3-a20314474db3 X-Archives-Hash: 5f84b49a4d209d299cec10f9e7b4fbe4 commit: 384f21cbf2a1bc7a7d30fd443085d27185d305fc Author: Michael Mair-Keimberger (asterix) gmail com> AuthorDate: Mon Aug 7 15:56:56 2017 +0000 Commit: Patrice Clement gentoo org> CommitDate: Wed Aug 9 06:21:16 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=384f21cb dev-ruby/concurrent-ruby: remove unused patch. .../files/concurrent-ruby-1.0.2-alpha.patch | 50 ---------------------- 1 file changed, 50 deletions(-) diff --git a/dev-ruby/concurrent-ruby/files/concurrent-ruby-1.0.2-alpha.patch b/dev-ruby/concurrent-ruby/files/concurrent-ruby-1.0.2-alpha.patch deleted file mode 100644 index a1a97ece2b1..00000000000 --- a/dev-ruby/concurrent-ruby/files/concurrent-ruby-1.0.2-alpha.patch +++ /dev/null @@ -1,50 +0,0 @@ -commit af059a7ac7815d1edac67b21e5c1bd6b805d4493 -Author: Hans de Graaff -Date: Mon Jul 4 20:09:25 2016 +0200 - - Support Alpha architecture for processor_count - - Alpha machines with Linux do have /proc/cpuinfo but its format is - different from normal Linux machines, and most specifically the - processor entry is missing. Moreover, Alpha machines can be configured - to compartimentalize their CPUs into different machines leading to - further confusion when reading /proc/cpuinfo. - - Using /usr/bin/nproc seems to be the most reliable method of determining - the number of processors on Alpha. Since reading /proc/cpuinfo is not - reliable this patch places the nproc method before trying /proc/cpuinfo. - - For futher reference see our downstream bug report at - https://bugs.gentoo.org/show_bug.cgi?id=587986 - -diff --git a/CHANGELOG.md b/CHANGELOG.md -index e84c683..18dd8cc 100644 ---- a/CHANGELOG.md -+++ b/CHANGELOG.md -@@ -1,3 +1,5 @@ -+* Support Alpha with `Concurrent::processor_count` -+ - ## Current Release v1.0.2 (2 May 2016) - - * Fix bug with `Concurrent::Map` MRI backend `#inspect` method -diff --git a/lib/concurrent/utility/processor_counter.rb b/lib/concurrent/utility/processor_counter.rb -index d18b0bb..e82c0a6 100644 ---- a/lib/concurrent/utility/processor_counter.rb -+++ b/lib/concurrent/utility/processor_counter.rb -@@ -28,6 +28,7 @@ module Concurrent - # processor", which taked into account hyperthreading. - # - # * AIX: /usr/sbin/pmcycles (AIX 5+), /usr/sbin/lsdev -+ # * Alpha: /usr/bin/nproc (/proc/cpuinfo exists but cannot be used) - # * BSD: /sbin/sysctl - # * Cygwin: /proc/cpuinfo - # * Darwin: /usr/bin/hwprefs, /usr/sbin/sysctl -@@ -84,6 +85,8 @@ module Concurrent - result = WIN32OLE.connect("winmgmts://").ExecQuery( - "select NumberOfLogicalProcessors from Win32_Processor") - result.to_enum.collect(&:NumberOfLogicalProcessors).reduce(:+) -+ elsif File.executable?("/usr/bin/nproc") -+ IO.popen("/usr/bin/nproc --all").read.to_i - elsif File.readable?("/proc/cpuinfo") - IO.read("/proc/cpuinfo").scan(/^processor/).size - elsif File.executable?("/usr/bin/hwprefs")