Date: Wed, 23 Apr 2025 01:10:14 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 286298] x11-toolkits/py-tkinter: python3.12. Something in ports doesn't include header file sub-directory Message-ID: <bug-286298-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286298 Bug ID: 286298 Summary: x11-toolkits/py-tkinter: python3.12. Something in ports doesn't include header file sub-directory 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: mail_of_sergey@mail.ru Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org I recently switched to python 3.12 and I can't build the x11-toolkits/py-tkinter port because the pycore_long.h file not found. The pycore_long.h file location is /usr/local/include/python3.12/internal/pycore_long.h But the compiler calls with including only /usr/local/include/python3.12 directory and not includes its sub-directories where the pycore_long.h file locates: cc -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -march=3Dcore2 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -march=3Dcore2 -fstack-protector-strong -fno-strict-aliasing -fPIC -DWITH_APPINIT=3D1 -I/usr/local/include -I/usr/local/include/tcl8.6 -I/usr/local/include/tk8.6 -I/usr/local/include -I/usr/local/include/python= 3.12 -c _tkinter.c -o build/temp.freebsd-14.2-RELEASE-p3-amd64-cpython-312/_tkinter.o so its falls with an fatal error: pycore_long.h' file not found Build log: Script started on Wed Apr 23 03:50:53 2025 Command: make =3D=3D=3D> License PSFL accepted by the user =3D=3D=3D> py312-tkinter-3.12.10_10 depends on file: /usr/local/sbin/pkg = - found =3D=3D=3D> Fetching all distfiles required by py312-tkinter-3.12.10_10 for = building =3D=3D=3D> Extracting for py312-tkinter-3.12.10_10 =3D> SHA256 Checksum OK for python/Python-3.12.10.tar.xz. =3D=3D=3D> Patching for py312-tkinter-3.12.10_10 =3D=3D=3D> py312-tkinter-3.12.10_10 depends on package: py312-setuptools>= 0 - found =3D=3D=3D> py312-tkinter-3.12.10_10 depends on package: py312-wheel>0 - f= ound =3D=3D=3D> py312-tkinter-3.12.10_10 depends on file: /usr/local/bin/pytho= n3.12 - found =3D=3D=3D> py312-tkinter-3.12.10_10 depends on package: py312-build>=3D0 = - found =3D=3D=3D> py312-tkinter-3.12.10_10 depends on package: py312-installer>= =3D0 - found =3D=3D=3D> py312-tkinter-3.12.10_10 depends on shared library: libtk86.so= - found (/usr/local/lib/libtk86.so) =3D=3D=3D> py312-tkinter-3.12.10_10 depends on shared library: libtcl86.s= o - found (/usr/local/lib/libtcl86.so) =3D=3D=3D> Configuring for py312-tkinter-3.12.10_10 =3D=3D=3D> Building for py312-tkinter-3.12.10_10 [1m* Getting build dependencies for wheel...[0m [2;36m[04/23/25 03:51:19][0m[2;36m [0m[33mWARNING [0m pyproject.toml does not contain a tool.setuptools_scm section=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 ]8;id=3D730801;file:///usr/local/lib/python3.12/site-packages/setuptools_sc= m/_integration/setuptools.py\[2msetuptools.py[0m]8;;\[2m:[0m]8;id=3D886370;= file:///usr/local/lib/python3.12/site-packages/setuptools_scm/_integration/= setuptools.py#119\[2m119[0m]8;;\ /usr/local/lib/python3.12/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 creating tkinter.egg-info writing tkinter.egg-info/PKG-INFO writing dependency_links to tkinter.egg-info/dependency_links.txt writing top-level names to tkinter.egg-info/top_level.txt writing manifest file 'tkinter.egg-info/SOURCES.txt' reading manifest file 'tkinter.egg-info/SOURCES.txt' writing manifest file 'tkinter.egg-info/SOURCES.txt' [1m* Building wheel...[0m [2;36m[04/23/25 03:52:28][0m[2;36m [0m[33mWARNING [0m pyproject.toml does not contain a tool.setuptools_scm section=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 ]8;id=3D501441;file:///usr/local/lib/python3.12/site-packages/setuptools_sc= m/_integration/setuptools.py\[2msetuptools.py[0m]8;;\[2m:[0m]8;id=3D251536;= file:///usr/local/lib/python3.12/site-packages/setuptools_scm/_integration/= setuptools.py#119\[2m119[0m]8;;\ /usr/local/lib/python3.12/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_ext building '_tkinter' extension creating build creating build/temp.freebsd-14.2-RELEASE-p3-amd64-cpython-312 cc -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -march=3Dcore2 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -march=3Dcore2 -fstack-protector-strong -fno-strict-aliasing -fPIC -DWITH_APPINIT=3D1 -I/usr/local/include -I/usr/local/include/tcl8.6 -I/usr/local/include/tk8.6 -I/usr/local/include -I/usr/local/include/python= 3.12 -c _tkinter.c -o build/temp.freebsd-14.2-RELEASE-p3-amd64-cpython-312/_tkinter.o [1m_tkinter.c:35:10: [0m[0;1;31mfatal error: [0m[1m'pycore_long.h' file not found[0m 35 | #include "pycore_long.h"[0m | [0;1;32m ^~~~~~~~~~~~~~~ [0m1 error generated. error: command '/usr/bin/cc' failed with exit code 1 [91mERROR[0m Backend subprocess exited when trying to invoke build_wheel *** Error code 1 Stop. make: stopped in /usr/ports/x11-toolkits/py-tkinter Command exit status: 1 Script done on Wed Apr 23 03:52:37 2025 /etc/make.conf: KERNCONF=3DZ # # <CB><CF><CD><D0><C9><CC><D1><C3><C9><D1> # CPUTYPE?=3D core2 #<D1><DA><D9><CB><C9> <C4><CF><CB><D5><CD><C5><CE><D4><C1><C3><C9><C9> DOC_LANG=3D en en_US.ISO8859-1 ru_RU.KOI8-R OPTIONS_SET+=3DJADETEX # #<C2><C5><DA> XOrg # OPTIONS_UNSET+=3D X11 # <D7><D3><C5> <C4><CC><D1> CUPS OPTIONS_SET+=3D CUPS OPTIONS_SET+=3D CUPS_OVERWRITE_BASE OPTIONS_UNSET+=3D LPR # <C4><CC><D1> <D0><CF><D2><D4><CF><D7> SU_CMD=3D /usr/local/bin/sudo /bin/sh -c EDITOR=3D joe # <D3><C9><D3><D4><C5><CD><C1> <D0><CF><D2><D4><CF><D7> OPTIONS_SET+=3DPKGNG # GLPI #GLPIDIR?=3D ../../home/export/web/glpi/docs #GLPIPLUGINDIR?=3D ../../home/export/web/glpi/docs/plugins #WWWDIR?=3D /home/export/web # Perl DEFAULT_VERSIONS+=3D perl5=3D5.36 #DEFAULT_VERSIONS+=3D linux=3Dr19 DEFAULT_VERSIONS+=3D ssl=3Dopenssl security_p5-GSSAPI_SET =3D GSSAPI_MIT OPTIONS_UNSET +=3D GSSAPI_BASE OPTIONS_SET +=3D GSSAPI_NONE # iPXE # https://svnweb.freebsd.org/ports/head/net/ipxe/Makefile?view=3Dlog&pathrev= =3D463161 # https://forums.freebsd.org/threads/ipxe.64266/ IPXE_MAKE_ARGS=3D EMBED=3D/home/export/web/ipxe/docs/web/ipxe/boot.ipxe # IPXE_MAKE_ARGS=3D EMBED=3D/home/export/web/ipxe/docs/web/ipxe/boot.= ipxe DEBUG=3Ddevice,pci IPXE_BUILDCFG=3D general:PCI_CMD # snponly.efi # DEBUG=3Ddevice,pci,undiload,undinet https://forum.ipxe.org/showthread.php?tid=3D7228 # Begin portconf settings # Do not touch these lines .if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf) _PORTCONF!=3D/usr/local/libexec/portconf .if ${_PORTCONF} !=3D "|" .for i in ${_PORTCONF:S/^|//:S/|/ /g} ${i:C/^([^=3D]*)=3D.*/\1/}=3D${i:C/^[^=3D]*=3D//:S/%/ /g} .endfor .endif .endif # End portconf settings DEFAULT_VERSIONS+=3D python=3D3.12 python3=3D3.12 --=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-286298-21822>