Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,9 +1,12 @@
$NetBSD: patch-ab,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
$NetBSD: patch-ab,v 1.3 2016/07/15 07:21:36 wiz Exp $
--- numexpr/cpuinfo.py.orig 2009-06-23 08:39:40.000000000 +0000
Add NetBSD support in CPU detection.
https://github.com/pydata/numexpr/pull/223
--- numexpr/cpuinfo.py.orig 2016-06-01 11:55:58.000000000 +0000
+++ numexpr/cpuinfo.py
@@ -390,6 +390,30 @@ class DarwinCPUInfo(CPUInfoBase):
def _is_ppc823(self): return self.__machine(823)
@@ -498,6 +498,32 @@ class DarwinCPUInfo(CPUInfoBase):
def _is_ppc860(self): return self.__machine(860)
+class NetBSDCPUInfo(CPUInfoBase):
@@ -12,8 +15,10 @@ $NetBSD: patch-ab,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
+ def __init__(self):
+ if self.info is not None:
+ return
+ info = command_info(arch='arch', machine='machine')
+ info['sysctl_hw'] = key_value_from_command('sysctl hw', sep='=')
+ info = {}
+ info['sysctl_hw'] = key_value_from_command(['sysctl', 'hw'], sep='=')
+ info['arch'] = info['sysctl_hw'].get('hw.machine_arch', 1)
+ info['machine'] = info['sysctl_hw'].get('hw.machine', 1)
+ self.__class__.info = info
+
+ def _not_impl(self): pass
@@ -32,8 +37,8 @@ $NetBSD: patch-ab,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
+ return False
class SunOSCPUInfo(CPUInfoBase):
@@ -648,6 +672,8 @@ elif sys.platform.startswith('irix'):
info = None
@@ -781,6 +807,8 @@ elif sys.platform.startswith('irix'):
cpuinfo = IRIXCPUInfo
elif sys.platform == 'darwin':
cpuinfo = DarwinCPUInfo