Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2024 08:21:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276744] converters/py-rencode: Sync with main, restore build with cython
Message-ID:  <bug-276744-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276744

            Bug ID: 276744
           Summary: converters/py-rencode: Sync with main, restore build
                    with cython
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: agh@riseup.net
          Assignee: python@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)

Created attachment 248088
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D248088&action=
=3Dedit
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/572ff74586d9b1daab904c6f7f7009ce01=
43bb75.

The build error I was getting:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<pha=
se: stage          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0
> =3D=3D=3D>  Staging for py311-rencode-1.0.6_1
> =3D=3D=3D>   Generating temporary packing list
> /usr/local/lib/python3.11/site-packages/setuptools/__init__.py:80: _Depre=
catedInstaller: 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 bui=
ld/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/lo=
cal/lib/python3.11
> creating /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/lo=
cal/lib/python3.11/site-packages
> creating /wrkdirs/usr/ports/converters/py-rencode/work-py311/stage/usr/lo=
cal/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/lo=
cal/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_o=
rig.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__.cpyt=
hon-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.eg=
g-info
> running install_scripts
> writing list of installed files to '/wrkdirs/usr/ports/converters/py-renc=
ode/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 fi=
le or directory
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/converters/py-rencode
> =3D>> Cleaning up wrkdir
> =3D=3D=3D>  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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276744-7788>