[Bug 271568] print/py-fonttools: fix cython extension handling

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 May 2023 15:40:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271568

            Bug ID: 271568
           Summary: print/py-fonttools: fix cython extension handling
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: amdmi3@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

Created attachment 242331
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242331&action=edit
Patch

With python 3.11, py-fonttools fails:

====> Running Q/A tests (stage-qa)
Warning: 'lib/python3.11/site-packages/fontTools/varLib/iup.cpython-311.so' is
not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'lib/python3.11/site-packages/fontTools/qu2cu/qu2cu.cpython-311.so' is
not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning:
'lib/python3.11/site-packages/fontTools/misc/bezierTools.cpython-311.so' is not
stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'lib/python3.11/site-packages/fontTools/cu2qu/cu2qu.cpython-311.so' is
not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning:
'lib/python3.11/site-packages/fontTools/pens/momentsPen.cpython-311.so' is not
stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: 'lib/python3.11/site-packages/fontTools/feaLib/lexer.cpython-311.so'
is not stripped consider trying INSTALL_TARGET=install-strip or using
${STRIP_CMD}
Error:
'/usr/local/lib/python3.11/site-packages/fontTools/cu2qu/cu2qu.cpython-311.so'
is a architecture specific binary file and you have set NO_ARCH.  Either remove
NO_ARCH or add 'cu2qu.cpython-311.so' to NO_ARCH_IGNORE.
Error:
'/usr/local/lib/python3.11/site-packages/fontTools/feaLib/lexer.cpython-311.so'
is a architecture specific binary file and you have set NO_ARCH.  Either remove
NO_ARCH or add 'lexer.cpython-311.so' to NO_ARCH_IGNORE.
Error:
'/usr/local/lib/python3.11/site-packages/fontTools/misc/bezierTools.cpython-311.so'
is a architecture specific binary file and you have set NO_ARCH.  Either remove
NO_ARCH or add 'bezierTools.cpython-311.so' to NO_ARCH_IGNORE.
Error:
'/usr/local/lib/python3.11/site-packages/fontTools/pens/momentsPen.cpython-311.so'
is a architecture specific binary file and you have set NO_ARCH.  Either remove
NO_ARCH or add 'momentsPen.cpython-311.so' to NO_ARCH_IGNORE.
Error:
'/usr/local/lib/python3.11/site-packages/fontTools/qu2cu/qu2cu.cpython-311.so'
is a architecture specific binary file and you have set NO_ARCH.  Either remove
NO_ARCH or add 'qu2cu.cpython-311.so' to NO_ARCH_IGNORE.
Error:
'/usr/local/lib/python3.11/site-packages/fontTools/varLib/iup.cpython-311.so'
is a architecture specific binary file and you have set NO_ARCH.  Either remove
NO_ARCH or add 'iup.cpython-311.so' to NO_ARCH_IGNORE.
*** Error code 1

The cause of this is that cython extensions are build with python3.11, but the
real problem would likely by that cython extensions are not built with python
3.9.

The attached patch makes cython extensions handling consistent, and built on
all python versions.

- adds dependency on cython
- force cython file regeneration to avoid compatibility problems
- remove NOARCH for cython extensions are no always installed
- while here, fix manpage path, for (default) share/man is not the correct one.

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