[Bug 262823] textproc/py-libxml2: Include bytecode files in package

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 07 Apr 2022 16:47:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262823

John Hein <jcfyecrayz@liamekaens.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jcfyecrayz@liamekaens.com

--- Comment #5 from John Hein <jcfyecrayz@liamekaens.com> ---
After this commit (ports 25c952626c32a1830793a770b8f401a7d5370905), the port is
broken with default python version set to 3.7.

make check-plist fails:


===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned:
%%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2.cpython-37.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2.cpython-37.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/__pycache__/libxml2.cpython-37.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/__pycache__/libxml2.cpython-37.pyc
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2.opt-1.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/__pycache__/libxml2.opt-1.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/__pycache__/libxml2.pyc
===> Error: Plist issues found.



make install fails for the same reason (.pyc files have an unexpected name
based on the new PLIST changes):


===>   Registering installation for py37-libxml2-2.9.13_2
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/py-libxml2/work-py37/stage/usr/local/lib/python3.7/site-packages/__pycache__/drv_libxml2.opt-1.pyc:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/py-libxml2/work-py37/stage/usr/local/lib/python3.7/site-packages/__pycache__/drv_libxml2.pyc:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/py-libxml2/work-py37/stage/usr/local/lib/python3.7/site-packages/__pycache__/libxml2.opt-1.pyc:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/py-libxml2/work-py37/stage/usr/local/lib/python3.7/site-packages/__pycache__/libxml2.pyc:No
such file or directory


If no one wants to re-open this, I will create a new bug.

The issue is that the .pyc fileas are created as *.cpython-37.*.pyc (similar to
*.cpython-38.*.pyc for py38 builds) and PYTHON_EXT_SUFFIX is empty for < py38.

-- 
You are receiving this mail because:
You are the assignee for the bug.