ports/148982: Update port: www/mod_wsgi www/mod_wsgi3 Fix conflicts and add warnings about daemon mode and thread support

Douglas William Thrift douglas at douglasthrift.net
Tue Jul 27 06:50:02 UTC 2010


>Number:         148982
>Category:       ports
>Synopsis:       Update port: www/mod_wsgi www/mod_wsgi3 Fix conflicts and add warnings about daemon mode and thread support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 06:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Douglas William Thrift
>Release:        FreeBSD 7.3-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD justonenight.douglasthrift.net 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #29: Tue Jul 13 04:25:48 PDT 2010 root at justonenight.douglasthrift.net:/usr/obj/usr/src/sys/FURTHERONUPTHEROAD amd64
>Description:
The addition of APACHE_PKGNAMEPREFIX was causing the CONFLICTS to be incorrect.
If mod_wsgi is build with an APR and Apache that does not have thread support,
daemon mode will not be available.
>How-To-Repeat:
>Fix:
--- mod_wsgix.patch begins here ---
diff -Nrux .svn -x work /usr/ports/www/mod_wsgi/Makefile mod_wsgi/Makefile
--- /usr/ports/www/mod_wsgi/Makefile	2010-05-25 13:43:04.000000000 -0700
+++ mod_wsgi/Makefile	2010-07-26 23:27:32.899321871 -0700
@@ -16,10 +16,12 @@
 MAINTAINER=	douglas at douglasthrift.net
 COMMENT=	Python WSGI adapter module for Apache
 
+LICENSE=	ASL
+
 MAKE_JOBS_SAFE=	yes
 
 LATEST_LINK=	mod_wsgi2
-CONFLICTS=	mod_wsgi-3.*
+CONFLICTS=	${PKGNAMEPREFIX}mod_wsgi-3.* mod_wsgi-3.*
 
 PROJECTHOST=	modwsgi
 
@@ -30,8 +32,17 @@
 CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}"
 
 SUB_FILES=	pkg-message
+
 PORTSCOUT=	limit:^2\.
 
+pre-everything::
+	@${ECHO_MSG} "======================= ATTENTION! ======================"
+	@${ECHO_MSG}
+	@${ECHO_MSG} "If you want to use daemon mode you will need to make sure"
+	@${ECHO_MSG} "Apache and APR include thread support."
+	@${ECHO_MSG}
+	@${ECHO_MSG} "========================================================="
+
 post-install:
 	@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/${MODULENAME}.so"
 	@${CAT} ${PKGMESSAGE}
diff -Nrux .svn -x work /usr/ports/www/mod_wsgi/files/pkg-message.in mod_wsgi/files/pkg-message.in
--- /usr/ports/www/mod_wsgi/files/pkg-message.in	2008-09-02 14:55:40.000000000 -0700
+++ mod_wsgi/files/pkg-message.in	2010-07-26 23:02:11.381633224 -0700
@@ -1,5 +1,8 @@
-================================================================================
+============================================================================
 
-For more information, see http://www.modwsgi.org/.
+If you want to use daemon mode you will need to make sure Apache and APR
+include thread support.
 
-================================================================================
+For more information, see http://www.modwsgi.org/wiki/InstallationOnFreeBSD.
+
+============================================================================
diff -Nrux .svn -x work /usr/ports/www/mod_wsgi3/Makefile mod_wsgi3/Makefile
--- /usr/ports/www/mod_wsgi3/Makefile	2010-07-15 15:29:46.000000000 -0700
+++ mod_wsgi3/Makefile	2010-07-26 23:27:31.110432943 -0700
@@ -17,10 +17,12 @@
 MAINTAINER=	douglas at douglasthrift.net
 COMMENT=	Python WSGI adapter module for Apache
 
+LICENSE=	ASL
+
 MAKE_JOBS_SAFE=	yes
 
 #LATEST_LINK=	mod_wsgi
-CONFLICTS=	mod_wsgi-2.*
+CONFLICTS=	${PKGNAMEPREFIX}mod_wsgi-2.* mod_wsgi-2.*
 
 PROJECTHOST=	modwsgi
 
@@ -38,6 +40,14 @@
 IGNORE=		is unsupported with Python 3.0
 .endif
 
+pre-everything::
+	@${ECHO_MSG} "======================= ATTENTION! ======================"
+	@${ECHO_MSG}
+	@${ECHO_MSG} "If you want to use daemon mode you will need to make sure"
+	@${ECHO_MSG} "Apache and APR include thread support."
+	@${ECHO_MSG}
+	@${ECHO_MSG} "========================================================="
+
 post-install:
 	@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/${MODULENAME}.so"
 	@${CAT} ${PKGMESSAGE}
diff -Nrux .svn -x work /usr/ports/www/mod_wsgi3/files/pkg-message.in mod_wsgi3/files/pkg-message.in
--- /usr/ports/www/mod_wsgi3/files/pkg-message.in	2008-09-02 14:55:40.000000000 -0700
+++ mod_wsgi3/files/pkg-message.in	2010-07-26 22:56:40.341168406 -0700
@@ -1,5 +1,8 @@
-================================================================================
+============================================================================
 
-For more information, see http://www.modwsgi.org/.
+If you want to use daemon mode you will need to make sure Apache and APR
+include thread support.
 
-================================================================================
+For more information, see http://www.modwsgi.org/wiki/InstallationOnFreeBSD.
+
+============================================================================
--- mod_wsgix.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list