Bug 186074 - net-mgmt/net-snmp: fix PYTHON build, watch out for easy-install.pth
Summary: net-mgmt/net-snmp: fix PYTHON build, watch out for easy-install.pth
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-24 12:50 UTC by Jimmy Olgeni
Modified: 2014-01-25 02:30 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (526 bytes, patch)
2014-01-24 12:50 UTC, Jimmy Olgeni
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy Olgeni freebsd_committer freebsd_triage 2014-01-24 12:50:00 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-24 12:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->zi

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-01-25 02:24:45 UTC
Author: zi
Date: Sat Jan 25 02:24:39 2014
New Revision: 340981
URL: http://svnweb.freebsd.org/changeset/ports/340981
QAT: https://qat.redports.org/buildarchive/r340981/

Log:
  - Fix python build
  
  PR:		ports/186074
  Submitted by:	Jimmy Olgeni <olgeni@FreeBSD.org>

Modified:
  head/net-mgmt/net-snmp/Makefile

Modified: head/net-mgmt/net-snmp/Makefile
==============================================================================
--- head/net-mgmt/net-snmp/Makefile	Sat Jan 25 02:08:02 2014	(r340980)
+++ head/net-mgmt/net-snmp/Makefile	Sat Jan 25 02:24:39 2014	(r340981)
@@ -72,6 +72,7 @@ USE_PYTHON=	yes
 RUN_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
 BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
 CONFIGURE_ARGS+=--with-python-modules
+CONFIGURE_ENV+=	PYTHONPROG="${LOCALBASE}/bin/${PYTHON_DEFAULT_VERSION}"
 PLIST_SUB+=	WITH_PYTHON="" PYTHON_VER=${PYTHON_VER}
 PLIST_SUB+=	PYDISTUTILS_PKGVERSION=${PYDISTUTILS_PKGVERSION}
 PLIST_SUB+=	PYINSTALL="@exec ${SETENV} PYTHONPATH=${PYEASYINSTALL_SITELIBDIR} ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_INSTALLARGS}"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Ryan Steinmetz freebsd_committer freebsd_triage 2014-01-25 02:24:46 UTC
State Changed
From-To: open->closed

Committed. Thanks!