Page MenuHomeFreeBSD

textproc/py-qt5-xml: Install Python bytecode
ClosedPublic

Authored by jhale on Mar 5 2018, 4:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 18, 6:27 PM
Unknown Object (File)
Mon, Mar 4, 5:03 AM
Unknown Object (File)
Mon, Mar 4, 5:03 AM
Unknown Object (File)
Mon, Mar 4, 5:02 AM
Unknown Object (File)
Mon, Mar 4, 5:02 AM
Unknown Object (File)
Sun, Mar 3, 2:49 AM
Unknown Object (File)
Feb 24 2024, 9:48 PM
Unknown Object (File)
Feb 24 2024, 1:28 PM

Details

Reviewers
tcberner
Group Reviewers
kde
Commits
rP463772: textproc/py-qt5-xml:
Summary

py-qt5-xml does not currently install pre-compiled Python bytecode
which can cause build errors in poudriere for ports depending on it. If
the bytecode is not pre-installed, when the module is loaded Python creates
the bytecode on the fly causing the filesystem to be touched during the
build. For example:

http://package21.nyi.freebsd.org/data/111amd64-default-qat/463452/logs/errors/Carla-1.9.8.log

Test Plan

Standard poudriere test builds completed with py27 and py36 flavor on 11.0 amd64

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 15372
Build 15423: arc lint + arc unit

Event Timeline

antoine added inline comments.
textproc/py-qt5-xml/Makefile
31

The backtraces will be wrong.

It should be

${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
  -f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt5 \
  ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5
textproc/py-qt5-xml/Makefile
31

In that case, we need to fix destdir on devel/py-qt4-core and devel/py-qt5-core as well.

tcberner added a subscriber: tcberner.

Looks sensible. Thanks.

This revision is now accepted and ready to land.Mar 6 2018, 6:41 PM
This revision was automatically updated to reflect the committed changes.