Bug 243331 - net/samba410: build_fs_violation in poudriere
Summary: net/samba410: build_fs_violation in poudriere
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Timur I. Bakeyev
Depends on:
Reported: 2020-01-13 18:44 UTC by Sunpoet Po-Chuan Hsieh
Modified: 2020-04-09 21:36 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (timur)


Note You need to log in before you can comment on or make changes to this bug.
Description Sunpoet Po-Chuan Hsieh freebsd_committer 2020-01-13 18:44:04 UTC
build_fs_violation in poudriere

=>> Checking for filesystem violations... done
=>> Error: Filesystem touched during build:
extra: usr/local/lib/python3.7/site-packages/__pycache__/tevent.cpython-37.pyc
=>> Cleaning up wrkdir

Compile and install tevent.py to fix this problem.
Comment 1 Timur I. Bakeyev freebsd_committer 2020-01-14 01:29:01 UTC
Hi, Sunpoet!

Can you confirm that this is the latest (4.10.11) version of the port?

As it has:

USES+=                          python:3.4+
PLIST_SUB+=                     SAMBA4_PYTHON=""
SUB_LIST+=                      SAMBA4_PYTHON=""
CONFIGURE_ARGS+=                --nopycache

Which supposed not to generate any pycache files.
Comment 2 Sunpoet Po-Chuan Hsieh freebsd_committer 2020-01-18 11:30:59 UTC
Hi Timur, 

Yes, It's the latest verision. I put the log on https://people.FreeBSD.org/~sunpoet/temp/samba410-4.10.11.log
Comment 3 Andrew Fyfe 2020-02-02 14:37:44 UTC
I only have this issue when running poudriere bulk with the -t option (Add some testing to the specified ports), without the -t option the port builds without issue.
Comment 4 Sunpoet Po-Chuan Hsieh freebsd_committer 2020-02-28 16:35:06 UTC
(In reply to Timur I. Bakeyev from comment #1)
(In reply to Andrew Fyfe from comment #3)

It seems poudriere only checks filesystem violations when -t option is used.

I've prepared two log with/without poudriere -t option.

Comment 5 Timur I. Bakeyev freebsd_committer 2020-04-09 21:36:17 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #4)

I feel really dumb here, as I still can't get it reproduced... Maybe, I incidentally fixed it or that error requires some additional configuration to be spotted...

# # poudriere bulk -t -j FreeBSD-12_1-amd64 -p devel -z samba net/samba410

[4073/4073] Compiling pidl/lib/Parse/Pidl/Wireshark/NDR.pm
Waf: Leaving directory `/wrkdirs/usr/ports/net/samba410/work/samba-4.10.14/bin/default'
'build' finished successfully (2m53.597s)
=>> Checking for filesystem violations... done
=======================<phase: run-depends    >============================
===>   samba410-4.10.14 depends on package: jansson>=2.10 - found
===>   samba410-4.10.14 depends on package: libarchive>=3.1.2 - found
===>   samba410-4.10.14 depends on package: talloc>=2.2.0 - found
===>   samba410-4.10.14 depends on package: tevent>=0.10.0 - found
===>   samba410-4.10.14 depends on package: tdb>=1.4.0 - found
===>   samba410-4.10.14 depends on package: lmdb>=0.9.16 - found
===>   samba410-4.10.14 depends on package: py37-iso8601>=0.1.11 - found
===>   samba410-4.10.14 depends on file: /usr/local/bin/python3.7 - found

If it's still not fixed... Maybe you can find the solution in your setup, as I, seems, can't reproduce it.

Potential fix should be placing PYTHONDONTWRITEBYTECODE=1 in the environment on the appropriate stage(build, install, test).

At the moment I don't see where to look :(