Page MenuHomeFreeBSD

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

Authored by fuz on Wed, May 24, 7:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 28, 3:54 AM
Unknown Object (File)
Sat, May 27, 4:36 PM
Unknown Object (File)
Sat, May 27, 4:00 AM
Unknown Object (File)
Thu, May 25, 10:42 AM
Unknown Object (File)
Wed, May 24, 2:26 PM
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