mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 16:51:52 -04:00
On FreeBSD, armv[67] both report "arm" in "uname -m", but this package expected the string armv6 or armv7. Fix the port by adding an extra case for just "arm" to the architecture detection logic. While we are at it, optionally depend on sysutils/lscpu as an additional data source for architecture features. See also: https://github.com/workhorsy/py-cpuinfo/issues/197 Approved by: yuri (maintainer) Differential Revision: https://reviews.freebsd.org/D40252
11 lines
504 B
Python
11 lines
504 B
Python
--- cpuinfo/cpuinfo.py.orig 2023-05-24 07:26:57 UTC
|
|
+++ cpuinfo/cpuinfo.py
|
|
@@ -797,7 +797,7 @@ def _parse_arch(arch_string_raw):
|
|
elif re.match(r'^armv8-a|aarch64|arm64$', arch_string_raw):
|
|
arch = 'ARM_8'
|
|
bits = 64
|
|
- elif re.match(r'^armv7$|^armv7[a-z]$|^armv7-[a-z]$|^armv6[a-z]$', arch_string_raw):
|
|
+ elif re.match(r'^armv7$|^armv7[a-z]$|^armv7-[a-z]$|^armv6[a-z]$|^arm$', arch_string_raw):
|
|
arch = 'ARM_7'
|
|
bits = 32
|
|
elif re.match(r'^armv8$|^armv8[a-z]$|^armv8-[a-z]$', arch_string_raw):
|