21158157 mod_wsgi sed hackery breaks at Python version 2.7.10
authorJohn Beck <John.Beck@Oracle.COM>
Thu, 28 May 2015 13:37:21 -0700
changeset 4699 e05387dee068
parent 4698 4e27e549b58d
child 4700 3e0131debf7c
21158157 mod_wsgi sed hackery breaks at Python version 2.7.10
components/apache2-modules/mod_wsgi/patches/rename.patch
--- a/components/apache2-modules/mod_wsgi/patches/rename.patch	Fri Jul 24 09:56:22 2015 -0700
+++ b/components/apache2-modules/mod_wsgi/patches/rename.patch	Thu May 28 13:37:21 2015 -0700
@@ -9,7 +9,7 @@
  LDFLAGS = @LDFLAGS@
  LDLIBS = @LDLIBS@
  
-+PYTHON_VERSION:=$(shell $(PYTHON) -V 2>&1 | sed -e 's/Python //' -e 's/..$$//')
++PYTHON_VERSION:=$(shell $(PYTHON) -V 2>&1 | sed -e 's/Python //' | cut -f1,2 -d'.')
 +
  SRCFILES = src/server/mod_wsgi.c src/server/wsgi_*.c