acpi_spmc: Check AMD constraint packages
Also match behaviour with Intel constraint parsing by skipping malformed
constraints instead of failing hard.
Reviewed by: olce
Sponsored by: The FreeBSD Foundation
Event: EuroBSDCon Devsummit 2026
Differential Revision: https://reviews.freebsd.org/D59568
acpi_spmc: Check Intel constraint packages
Some firmware inexplicably decides to do non-standard and annoying stuff
here, e.g. the Fujitsu Futro S940 with an Intel Pentium J5005 sometimes
returns the following when calling the DEVICE_CONSTRAINTS function on
the Intel DSM:
Return (Package (0x01)
{
Zero
})
(Package elements here are supposed to be constraint packages, not just a
single value.)
First reported in the following forum post:
https://forum.netgate.com/topic/201090/2.9.0-beta-leads-to-kernel-panic-on-boot
[5 lines not shown]
math/py-numdifftools: Fix USE_PYTHON=pytest usage
- Use TEST_ARGS instead of PYTEST_ARGS
- While I'm here, add missing TEST_DEPENDS
=================================== ERRORS ====================================
___________ ERROR collecting src/numdifftools/tests/test_scripts.py ___________
ImportError while importing test module '/wrkdirs/usr/ports/math/py-numdifftools/work-py312/numdifftools-0.11.1/src/numdifftools/tests/test_scripts.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/numdifftools/tests/test_scripts.py:1: in <module>
from numdifftools import run_benchmark
src/numdifftools/run_benchmark.py:7: in <module>
import matplotlib.pyplot as plt
E ModuleNotFoundError: No module named 'matplotlib'
=========================== short test summary info ===========================
[7 lines not shown]
math/py-numdifftools: Fix USE_PYTHON=pytest usage
- Use TEST_ARGS instead of PYTEST_ARGS
- While I'm here, add missing TEST_DEPENDS
=================================== ERRORS ====================================
___________ ERROR collecting src/numdifftools/tests/test_scripts.py ___________
ImportError while importing test module '/wrkdirs/usr/ports/math/py-numdifftools/work-py312/numdifftools-0.11.1/src/numdifftools/tests/test_scripts.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/numdifftools/tests/test_scripts.py:1: in <module>
from numdifftools import run_benchmark
src/numdifftools/run_benchmark.py:7: in <module>
import matplotlib.pyplot as plt
E ModuleNotFoundError: No module named 'matplotlib'
=========================== short test summary info ===========================
[7 lines not shown]