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
F160403005: D40252.id122403.diff
Wed, Jun 24, 4:00 AM
F160371794: D40252.id122350.diff
Tue, Jun 23, 8:09 PM
Unknown Object (File)
Thu, Jun 18, 1:55 PM
Unknown Object (File)
Thu, Jun 4, 6:58 PM
Unknown Object (File)
Thu, Jun 4, 1:39 PM
Unknown Object (File)
May 19 2026, 9:58 AM
Unknown Object (File)
May 18 2026, 2:49 AM
Unknown Object (File)
May 17 2026, 10:54 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