Date: Mon, 14 Sep 2020 15:00:23 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 249298] net-mgmt/net-snmp: 'make check-plist' fails with PYTHON on (5.9) Message-ID: <bug-249298-21822-qqFU0RlL0t@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-249298-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-249298-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249298 John Hein <jcfyecrayz@liamekaens.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zi@FreeBSD.org Attachment #217958| |maintainer-approval?(zi@Fre Flags| |eBSD.org) --- Comment #2 from John Hein <jcfyecrayz@liamekaens.com> --- Created attachment 217958 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217958&action= =3Dedit [patch] fix missing .pyo and support python3 Note that importing the netsnmp python support fails when using python2.7 (= and there's a warning during the build that hints at the problem as well): % python2.7 -c 'import netsnmp' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/netsnmp/__init__.py", line 1= , in <module> from .client import * File "/usr/local/lib/python2.7/site-packages/netsnmp/client.py", line 5, = in <module> import netsnmp.client_intf ImportError: /usr/local/lib/python2.7/site-packages/netsnmp/client_intf.so: Undefined symbol "PyUnicode_AsUTF8AndSize" Patch attached: - add back PYDISTUTILS_INSTALL_ARGS (see patch-Makefile.in) - remove python 2.7 support (see above run-time failure and changes to Makefile) - add python3 support (3.5+) QA: - poudriere build with default python (3.7) (ok) - portlint (no errors, no new warnings) - basic run test: python -c 'import netsnmp' --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249298-21822-qqFU0RlL0t>