pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56612: pkgsrc/lang/python3{9,10} broken if setuptools installed on NetBSD



>Number:         56612
>Category:       pkg
>Synopsis:       pkgsrc/lang/python3{9,10} broken if setuptools installed on NetBSD
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 10 19:25:00 +0000 2022
>Originator:     John Klos
>Release:        NetBSD 9.0_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD daisy.zia.io 9.0_STABLE NetBSD 9.0_STABLE (DAISY) #0: Tue Jul 28 04:48:43 UTC 2020 john%daisy.zia.io@localhost:/usr/obj-amd64/sys/arch/amd64/compile/DAISY amd64
Architecture: x86_64
Machine: amd64
>Description:
	
pkgsrc/lang/python39 & 310 fail on NetBSD if corresponding py-setuptools is already installed.

python39 on aarch64/current:

LD_LIBRARY_PATH=/usr/pkgsrc/lang/python39/work/Python-3.9.9 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib  ' OPT='-DNDEBUG -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/local/include'  _TCLTK_INCLUDES='' _TCLTK_LIBS=''  ./python -E ./setup.py  build
Traceback (most recent call last):
  File "/usr/pkgsrc/lang/python39/work/Python-3.9.9/./setup.py", line 33, in <module>
    from distutils import log, text_file
  File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 16, in <module>
    import setuptools.version
  File "/usr/local/lib/python3.9/site-packages/setuptools/version.py", line 1, in <module>
    import pkg_resources
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 23, in <module>
    import zipfile
  File "/usr/pkgsrc/lang/python39/work/Python-3.9.9/Lib/zipfile.py", line 6, in <module>
    import binascii
ModuleNotFoundError: No module named 'binascii'
*** [sharedmods] Error code 1

make: stopped in /usr/pkgsrc/lang/python39/work/Python-3.9.9


Same error (different line numbers) for python310:

LD_LIBRARY_PATH=/home/pkgsrc/lang/python310/work/Python-3.10.1 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib  ' OPT='-DNDEBUG -O2 -mieee -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/local/include'  _TCLTK_INCLUDES='' _TCLTK_LIBS=''  ./python -E ./setup.py  build
Traceback (most recent call last):
  File "/home/pkgsrc/lang/python310/work/Python-3.10.1/./setup.py", line 48, in <module>
    from distutils import text_file
  File "/usr/local/lib/python3.10/site-packages/setuptools/__init__.py", line 16, in <module>
    import setuptools.version
  File "/usr/local/lib/python3.10/site-packages/setuptools/version.py", line 1, in <module>
    import pkg_resources
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 23, in <module>
    import zipfile
  File "/home/pkgsrc/lang/python310/work/Python-3.10.1/Lib/zipfile.py", line 6, in <module>
    import binascii
ModuleNotFoundError: No module named 'binascii'
*** [sharedmods] Error code 1

make: stopped in /home/pkgsrc/lang/python310/work/Python-3.10.1


python39 fails if py39-setuptools-60.3.1 is installed.
python310 fails if py310-setuptools-60.3.1 is installed.



>How-To-Repeat:
	
>Fix:
	

pkg_delete -f py39-setuptools
or
pkg_delete -f py310-setuptools

then build lang/python.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index