Module: check_mk
Branch: master
Commit: 57db40decb5d275fb7a31d81c819098a40d87b92
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57db40decb5d27…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jan 12 11:50:24 2018 +0100
Get rid of a harmful site.py.
In the long run, we should install our own Python packages in a way that we
don't have to set PYTHONPATH for the site user. Everything else is a recipe
for blood, sweat and tears... :-/
Change-Id: I9751e75b8f32bf6122168e21633c2c8072b48c28
---
omd/packages/net-snmp/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/omd/packages/net-snmp/Makefile b/omd/packages/net-snmp/Makefile
index 07578be..3f57682 100644
--- a/omd/packages/net-snmp/Makefile
+++ b/omd/packages/net-snmp/Makefile
@@ -38,6 +38,12 @@ install:
--prefix='' \
--install-platlib=$(DESTDIR)$(OMD_ROOT)/lib/python \
--install-purelib=$(DESTDIR)$(OMD_ROOT)/lib/python
+# For some obscure reason beyond the mental capacities of mere humans, the
+# easy_install mechanism triggered by the setup call above results in the
+# creation of a lib/python/site.py, a copy of site-patch.py from setuptools.
+# Having this in the PYTHONPATH makes it impossible to run python3-based SW as a
+# site user, including gdb! So let's simply nuke it here...
+ $(RM) $(DESTDIR)$(OMD_ROOT)/lib/python/site.py
skel: