Created attachment 248088 [details] Sync with main, restore build with cython Hello, converters/py-rencode stopped building on my host with 15-CURRENT. I noticed that the PYPI distribution for 1.0.6 lacked the fixed for cython, I also noticed that a number of commits upstream includes some local patches in the Ports. Attached is patch that switchs the build to PEP517 and fetches https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75. The build error I was getting: > =========================================================================== > =======================<phase: stage >============================ > ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 > ===> Staging for py311-rencode-1.0.6_1 > ===> Generating temporary packing list > /usr/local/lib/python3.11/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. > !! > > ******************************************************************************** > Requirements should be satisfied by a PEP 517 installer. > If you are using pip, you can try `pip install --use-pep517`. > ******************************************************************************** > > !! > dist.fetch_build_eggs(dist.setup_requires) > running install > /usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > ******************************************************************************** > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. > ******************************************************************************** > > !! > self.initialize_options() > running build > running build_py > running build_ext > building 'rencode._rencode' extension > cc -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.11 -c rencode/rencode.c -o build/temp.freebsd-15.0-CURRENT-amd64-cpython-311/rencode/rencode.o > rencode/rencode.c:212:12: fatal error: 'longintrepr.h' file not found > 212 | #include "longintrepr.h" > | ^~~~~~~~~~~~~~~ > 1 error generated. > ********************************************************************** > WARNING: > The C extension could not be compiled, speedups will not be > available. > ********************************************************************** > command '/ccache/libexec/ccache/cc' failed with exit code 1 > running install_lib > creating /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11 > creating /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages > creating /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode > copying build/lib.freebsd-15.0-CURRENT-amd64-cpython-311/rencode/rencode_orig.py -> /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode > copying build/lib.freebsd-15.0-CURRENT-amd64-cpython-311/rencode/__init__.py -> /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode > byte-compiling /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode/rencode_orig.py to rencode_orig.cpython-311.pyc > byte-compiling /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode/__init__.py to __init__.cpython-311.pyc > writing byte-compilation script '/tmp/tmpz9mb5ni9.py' > /usr/local/bin/python3.11 /tmp/tmpz9mb5ni9.py > removing /tmp/tmpz9mb5ni9.py > running install_egg_info > running egg_info > writing rencode.egg-info/PKG-INFO > writing dependency_links to rencode.egg-info/dependency_links.txt > writing top-level names to rencode.egg-info/top_level.txt > reading manifest file 'rencode.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > adding license file 'COPYING' > writing manifest file 'rencode.egg-info/SOURCES.txt' > Copying rencode.egg-info to /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode-1.0.6-py3.11.egg-info > running install_scripts > writing list of installed files to '/wrkdirs/usr/ports/converters/py-rencode/work-py311/.PLIST.pymodtmp' > /usr/bin/strip /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode/_rencode*.so > strip: open /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/local/lib/python3.11/site-packages/rencode/_rencode*.so failed: No such file or directory > *** Error code 1 > > Stop. > make: stopped in /usr/ports/converters/py-rencode > =>> Cleaning up wrkdir > ===> Cleaning for py311-rencode-1.0.6_1 > build of converters/py-rencode@py311 | py311-rencode-1.0.6_1 ended at Wed Jan 31 02:29:42 UTC 2024 > build time: 00:00:05 > !!! build failure encountered !!! poudriere-testport 13_2-{amd64,i386}-release : OK 14_0-{amd64,i386}-release : OK main-{amd64,i386} : OK
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a02b73e321dc3fcb2c29b83af532452a13c19409 commit a02b73e321dc3fcb2c29b83af532452a13c19409 Author: Wen Heping <wen@FreeBSD.org> AuthorDate: 2024-02-01 13:49:22 +0000 Commit: Wen Heping <wen@FreeBSD.org> CommitDate: 2024-02-01 13:51:15 +0000 converters/py-rencode: Sync with main, restore build with cython PR: 276744 Reported by: agh@riseup.net converters/py-rencode/Makefile | 13 ++++++++--- converters/py-rencode/distinfo | 6 ++--- converters/py-rencode/files/patch-setup.py | 37 ++++++++---------------------- 3 files changed, 23 insertions(+), 33 deletions(-)
Thanks.