Bug 275811 - www/py-aioquic fails port test
Summary: www/py-aioquic fails port test
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-17 20:27 UTC by Joel Rodriguez
Modified: 2024-03-23 16:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Rodriguez 2023-12-17 20:27:44 UTC
root@tahoestores:/usr/ports/www/py-aioquic # port test /usr/ports/www/py-aioquic
===> Using ports tree /usr/ports
===> Validating port with portlint
looks fine.
===> flags: PREFIX=/tmp/py39-aioquic-0.9.24 NO_DEPENDS=yes PKG_DBDIR=/tmp/pkg_db.Dd1VByjj PORTSDIR=/usr/ports -- /usr/ports/www/py\
-aioquic
===> Cleaning workspace before port test
===>  Cleaning for py39-aioquic-0.9.24
`/usr/ports/www/py-aioquic' is up to date.
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py39-aioquic-0.9.24 for building
===>  Extracting for py39-aioquic-0.9.24
=> SHA256 Checksum OK for aioquic-0.9.24.tar.gz.
===>  Patching for py39-aioquic-0.9.24
===>  Configuring for py39-aioquic-0.9.24
===>  Building for py39-aioquic-0.9.24
* Getting build dependencies for wheel...
/usr/local/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py:104: _BetaConfiguration: Support for `[tool.setuptools]`\
 in `pyproject.toml` is still *beta*.
  warnings.warn(msg, _BetaConfiguration)
running egg_info
writing src/aioquic.egg-info/PKG-INFO
writing dependency_links to src/aioquic.egg-info/dependency_links.txt
writing requirements to src/aioquic.egg-info/requires.txt
writing top-level names to src/aioquic.egg-info/top_level.txt
listing git files failed - pretending there aren't any
reading manifest file 'src/aioquic.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'src/aioquic.egg-info/SOURCES.txt'
* Building wheel...
/usr/local/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py:104: _BetaConfiguration: Support for `[tool.setuptools]`\
 in `pyproject.toml` is still *beta*.
  warnings.warn(msg, _BetaConfiguration)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/tls.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/buffer.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/__init__.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/configuration.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/packet_builder.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/events.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/packet.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/logger.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/crypto.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/__init__.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/connection.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/retry.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/rangeset.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/recovery.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
copying src/aioquic/quic/stream.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/quic
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/asyncio
copying src/aioquic/asyncio/client.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/asyncio
copying src/aioquic/asyncio/server.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/asyncio
copying src/aioquic/asyncio/__init__.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/asyncio
copying src/aioquic/asyncio/protocol.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/asyncio
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h0
copying src/aioquic/h0/connection.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h0
copying src/aioquic/h0/__init__.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h0
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h3
creating build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h3
copying src/aioquic/h3/__init__.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h3
copying src/aioquic/h3/exceptions.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h3
copying src/aioquic/h3/events.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h3
copying src/aioquic/h3/connection.py -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic/h3
running egg_info
writing src/aioquic.egg-info/PKG-INFO
writing dependency_links to src/aioquic.egg-info/dependency_links.txt
writing requirements to src/aioquic.egg-info/requires.txt
writing top-level names to src/aioquic.egg-info/top_level.txt
listing git files failed - pretending there aren't any
reading manifest file 'src/aioquic.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'src/aioquic.egg-info/SOURCES.txt'
copying src/aioquic/_buffer.c -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/_buffer.pyi -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/_crypto.c -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/_crypto.pyi -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
copying src/aioquic/py.typed -> build/lib.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/aioquic
running build_ext
building 'aioquic._buffer' extension
creating build/temp.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug
creating build/temp.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/src
creating build/temp.freebsd-12.4-RELEASE-p9-amd64-cpython-39-pydebug/src/aioquic
cc -Wno-unused-result -Wsign-compare -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -f\
no-strict-aliasing -fPIC -DPy_LIMITED_API=0x03080000 -I/usr/local/include/python3.9d -c src/aioquic/_buffer.c -o build/temp.freebs\
d-12.4-RELEASE-p9-amd64-cpython-39-pydebug/src/aioquic/_buffer.o -std=c99
In file included from src/aioquic/_buffer.c:3:
In file included from /usr/local/include/python3.9d/Python.h:84:
/usr/local/include/python3.9d/object.h:61:2: error: Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and Py_REF_DEBUG
#error Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and Py_REF_DEBUG
 ^
1 error generated.
error: command '/usr/bin/cc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

Stop.
make: stopped in /usr/ports/www/py-aioquic
===> Error running make build
===> Cleaning up

The error:
/usr/local/include/python3.9d/object.h:61:2: error: Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and Py_REF_DEBUG

is the same error preventing the building of the port.
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-12-25 16:36:19 UTC
Please disable Python debug and try again.
Comment 2 Joel Rodriguez 2023-12-26 14:14:04 UTC
Hi,

I am not sure how to do that?

Synopsis:

                 port test [-h] [-lLbipcC] [-- port knobs]

                 -h                 display usage summary for this command.

                 -l                 Run portlint(1) only.

                 -L                 Do not run portlint(1).

                 -b                 Stop after build phase.

                 -i                 Stop after install phase.

                 -p                 Stop after package phase.

                 -c                 Do NOT clean before port.

                 -C                 Do NOT clean after port.

                 --                 End of port options.  Port knobs may
                                    follow.
Comment 3 Joel Rodriguez 2023-12-26 14:53:41 UTC
Oh, you meant in the python3.9 build!

I disabled debugging support and the port built.

Thanks