Page MenuHomeFreeBSD

sysutils/py-py-cpuinfo: fix on armv7, add lscpu dependency
ClosedPublic

Authored by fuz on May 24 2023, 7:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 6:13 AM
Unknown Object (File)
Sat, Apr 6, 3:28 PM
Unknown Object (File)
Mar 20 2024, 3:33 AM
Unknown Object (File)
Mar 17 2024, 10:14 PM
Unknown Object (File)
Mar 15 2024, 8:24 PM
Unknown Object (File)
Mar 13 2024, 8:33 PM
Unknown Object (File)
Mar 3 2024, 8:23 AM
Unknown Object (File)
Mar 3 2024, 8:23 AM
Subscribers

Details

Summary
sysutils/py-py-cpuinfo: fix on armv7, add lscpu dependency

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

Fixing this enables misc/py-numcodecs to build on armv7.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable