Solved Checksum errors with pyc files

Since python39 upgrade to 3.9.16_1, I receive for each jail with python installed big daily security reports (300-600 Ko) full of checksum errors for each pyc files in cpython cache. I read some pages on this subject:
But I can't figure how to solve the problem for the moment. Most of these jails use portmaster to build packages, but I have also problem with a jail using precompiled packages installed with pkg.

Edit
As I prefer, for my usage, security over speed, I would like to disable cpython compilation for portmaster installed packages, but I don't understand how to do this.
 
Last edited:
Upgrading to python39-3.9.16_2, which reverts this bytecode problem, and recompiling all the packages with checksum problems solved the issue.
 
In such cases pkg check -r helps:

# pkg check -sa
py39-pycparser-2.21: checksum mismatch for /usr/local/lib/python3.9/site-packages/pycparser/__pycache__/c_ast.cpython-39.pyc
# pkg check -r
Checking all packages: 100%
# pkg check -sa
#
 
Back
Top