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, Apr 22, 12:09 AM
Unknown Object (File)
Fri, Apr 19, 7:06 PM
Unknown Object (File)
Fri, Apr 19, 2:49 PM
Unknown Object (File)
Mar 18 2024, 6:27 PM
Unknown Object (File)
Mar 4 2024, 5:03 AM
Unknown Object (File)
Mar 4 2024, 5:03 AM
Unknown Object (File)
Mar 4 2024, 5:02 AM
Unknown Object (File)
Mar 4 2024, 5:02 AM

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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

antoine added inline comments.
textproc/py-qt5-xml/Makefile
31 ↗(On Diff #39959)

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 ↗(On Diff #39959)

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.