Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on armv7 FreeBSD #197

Open
clausecker opened this issue May 24, 2023 · 0 comments
Open

Fails on armv7 FreeBSD #197

clausecker opened this issue May 24, 2023 · 0 comments

Comments

@clausecker
Copy link

Running py-cpuinfo 8.0.0 on armv7 FreeBSD, the program fails to detect the architecture. This is because uname -m says arm instead of armv7 on armv7 FreeBSD. Please fix the architecture detection code to also check for just arm in the ARM_7 case.

freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue May 25, 2023
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:	workhorsy/py-cpuinfo#197
Approved by:	yuri (maintainer)
Differential Revision: https://reviews.freebsd.org/D40252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant