ports/186074: net-mgmt/net-snmp: fix PYTHON build, watch out for easy-install.pth
Jimmy Olgeni
olgeni at FreeBSD.org
Fri Jan 24 12:50:01 UTC 2014
>Number: 186074
>Category: ports
>Synopsis: net-mgmt/net-snmp: fix PYTHON build, watch out for easy-install.pth
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 24 12:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Jimmy Olgeni
>Release: FreeBSD 9.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD olgeni 9.2-STABLE FreeBSD 9.2-STABLE #0 r256529: Tue Oct 15 18:29:59 CEST 2013 root at olgeni:/usr/obj/usr/src/sys/KERNEL amd64
>Description:
If you enable the PYTHON option you will get the following error:
===
rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
LD_RUN_PATH="/usr/local/lib:/usr/local/lib/perl5/5.16/mach/CORE" cc -shared -L/usr/local/lib -fstack-protector -L/usr/lib -lm -lkvm -ldevstat TrapReceiver.o -o ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so -L/work/a/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/perl/TrapReceiver/../../apps/.libs -L/work/a/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/perl/TrapReceiver/../../apps -L/work/a/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/perl/TrapReceiver/../../agent/.libs -L/work/a/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/perl/TrapReceiver/../../agent -L/work/a/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/perl/TrapReceiver/../../snmplib/.libs -L/work/a/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/perl/TrapReceiver/../../snmplib -lnetsnmptrapd -lnetsnmpmibs -lnetsnmpagent -lnetsnmp
chmod 755 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
cp TrapReceiver.bs ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
chmod 644 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
Manifying ../blib/man3/NetSNMP::TrapReceiver.3
setup.py: not found
*** [pythonmodules] Error code 127
===
PYTHONPROG must be added to CONFIGURE_ENV, else the port will not
be able to find the Python runtime.
=== WARNING ===
Once this is fixed, there is one more poudriere warning which looks kind of
dangerous and should be investigated:
=== Checking filesystem state
list of files present before this port was installed but missing after it was deinstalled)
./usr/local/lib/python2.7/site-packages/easy-install.pth missing
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
--- Makefile (revision 340889)
+++ Makefile (working copy)
@@ -71,6 +71,7 @@
USE_PYTHON= yes
RUN_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
+CONFIGURE_ENV+= PYTHONPROG="${LOCALBASE}/bin/${PYTHON_DEFAULT_VERSION}"
CONFIGURE_ARGS+=--with-python-modules
PLIST_SUB+= WITH_PYTHON="" PYTHON_VER=${PYTHON_VER}
PLIST_SUB+= PYDISTUTILS_PKGVERSION=${PYDISTUTILS_PKGVERSION}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list