components/apache2-modules/mod_wsgi/patches/rename.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Thu, 19 Mar 2015 06:58:47 -0700
branchs11-update
changeset 4018 51079c09956d
child 4699 e05387dee068
permissions -rw-r--r--
19780770 Apache 2.4 needs some third party modules too 18605980 Update mod_security2 to 2.8.0 19780705 mod_jk upgrade to version 1.2.40 15812307 SUNBT7194162 upgrade mod_wsgi to version 4.3.0 19617430 mod_wsgi doesn't build if apache 2.4 is installed 20229478 mod_perl test suite wouldn't start/pass due number of reasons

Patch origin: in-house
Patch status: Solaris-specific; not suitable for upstream

Renames module to contain Python version in its name.

--- mod_wsgi-4.3.0/Makefile.in	2014-09-14 22:00:29.000000000 +0000
+++ mod_wsgi-4.3.0/Makefile.in	2014-09-18 13:32:39.390320209 +0000
@@ -23,6 +23,8 @@
 LDFLAGS = @LDFLAGS@
 LDLIBS = @LDLIBS@
 
+PYTHON_VERSION:=$(shell $(PYTHON) -V 2>&1 | sed -e 's/Python //' -e 's/..$$//')
+
 SRCFILES = src/server/mod_wsgi.c src/server/wsgi_*.c
 
 all : src/server/mod_wsgi.la
@@ -35,6 +37,7 @@
 
 install : all $(DESTDIR)$(LIBEXECDIR)
 	$(APXS) -i -S LIBEXECDIR=$(DESTDIR)$(LIBEXECDIR) -n 'mod_wsgi' src/server/mod_wsgi.la
+	mv $(DESTDIR)$(LIBEXECDIR)/mod_wsgi.so $(DESTDIR)$(LIBEXECDIR)/mod_wsgi-$(PYTHON_VERSION).so
 
 clean :
 	-rm -rf src/server/.libs