fs_violations for ports that build using python tools

Adriaan de Groot adridg at freebsd.org
Mon Apr 12 09:59:59 UTC 2021


I build many ports in poudriere with the `-t` (test port) flag. Ports that use 
Python-based tools tend to fail with a fs_violation. For instance, FreeCAD:

=>> Checking for filesystem violations... done
=>> Error: Filesystem touched during build:
extra: usr/local/lib/python3.7/site-packages/shiboken2/__pycache__
extra: usr/local/lib/python3.7/site-packages/shiboken2/files.dir/
shibokensupport/__pycache__
extra: usr/local/lib/python3.7/site-packages/shiboken2/files.dir/
shibokensupport/signature/lib/__pycache__

or nextpnr:

=>> Checking for filesystem violations... done
=>> Error: Filesystem touched during build:
extra: usr/local/share/trellis/util/common/__pycache__
extra: usr/local/share/trellis/timing/util/__pycache__

On the build cluster, these don't seem to cause problems. Note that these 
pycache files are **not** from the port being built, but from other, python-
based, tools that are run as part of the build: trellis is a BUILD_DEPENDS for 
nextpnr.

What can I do to resolve this kind of build failure? I'd like to avoid false-
failures because they mask and confuse local exp-runs for (say) CMake updates.

[ade]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20210412/bfa886ab/attachment.sig>


More information about the freebsd-ports mailing list