[arch-commits] Commit in mod_wsgi/repos/community-x86_64 (5 files)

Antonio Rojas arojas at archlinux.org
Wed Dec 11 09:50:29 UTC 2019


    Date: Wednesday, December 11, 2019 @ 09:50:28
  Author: arojas
Revision: 536789

archrelease: copy trunk to community-x86_64

Added:
  mod_wsgi/repos/community-x86_64/PKGBUILD
    (from rev 536788, mod_wsgi/trunk/PKGBUILD)
  mod_wsgi/repos/community-x86_64/mod_wsgi.install
    (from rev 536788, mod_wsgi/trunk/mod_wsgi.install)
Deleted:
  mod_wsgi/repos/community-x86_64/PKGBUILD
  mod_wsgi/repos/community-x86_64/mod_wsgi.install
  mod_wsgi/repos/community-x86_64/python-3.8.patch

------------------+
 PKGBUILD         |   93 ++++++++++++++++----------------------------------
 mod_wsgi.install |   28 +++++++--------
 python-3.8.patch |   97 -----------------------------------------------------
 3 files changed, 45 insertions(+), 173 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-11 09:50:07 UTC (rev 536788)
+++ PKGBUILD	2019-12-11 09:50:28 UTC (rev 536789)
@@ -1,62 +0,0 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Ryan Coyner <rcoyner at gmail.com>
-
-pkgbase=mod_wsgi
-pkgname=($pkgbase 'mod_wsgi2')
-pkgver=4.5.24
-pkgrel=4
-pkgdesc='Python WSGI adapter module for Apache'
-arch=('x86_64')
-url='http://www.modwsgi.org/'
-license=('APACHE')
-makedepends=('apache' 'git' 'python' 'python2')
-install='mod_wsgi.install'
-source=("git+https://github.com/GrahamDumpleton/mod_wsgi#tag=$pkgver"
-        python-3.8.patch)
-md5sums=('SKIP'
-         '73ac9f44d14c04e4bd14eeb506313ec4')
-
-prepare() {
-  cp -r "$pkgbase" py2
-  patch -Np1 -d "$pkgbase" <python-3.8.patch
-}
-
-build() {
-  # Configure and build mod_wsgi for py2
-  cd py2
-  ./configure \
-    --prefix=/usr \
-    --with-apxs=/usr/bin/apxs \
-    --with-python=/usr/bin/python2
-
-  make
-
-  # Configure and build mod_wsgi for py3
-  cd "$srcdir/$pkgbase"
-  ./configure \
-    --prefix=/usr \
-    --with-apxs=/usr/bin/apxs \
-    --with-python=/usr/bin/python
-
-  make
-}
-
-package_mod_wsgi() {
-  pkgdesc='Python WSGI adapter module for Apache'
-  depends=('apache' 'python')
-  conflicts=('mod_wsgi2')
-
-  make -C "$pkgbase" DESTDIR="$pkgdir" install
-}
-
-package_mod_wsgi2() {
-  pkgdesc='Python2 WSGI adapter module for Apache'
-  depends=('apache' 'python2')
-  conflicts=('mod_wsgi')
-
-  make -C py2 DESTDIR="$pkgdir" install
-}
-
-# getver: github.com/GrahamDumpleton/mod_wsgi
-# vim: ts=2 sw=2 et:

Copied: mod_wsgi/repos/community-x86_64/PKGBUILD (from rev 536788, mod_wsgi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-11 09:50:28 UTC (rev 536789)
@@ -0,0 +1,31 @@
+# Maintainer:
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Ryan Coyner <rcoyner at gmail.com>
+
+pkgname=mod_wsgi
+pkgver=4.6.8
+pkgrel=1
+pkgdesc='Python WSGI adapter module for Apache'
+arch=('x86_64')
+url='http://www.modwsgi.org/'
+license=('APACHE')
+depends=('apache' 'python')
+conflicts=('mod_wsgi2')
+makedepends=('apache' 'python')
+install='mod_wsgi.install'
+source=($pkgname-$pkgver.tar.gz::"https://github.com/GrahamDumpleton/mod_wsgi/archive/$pkgver.tar.gz")
+sha256sums=('a22394cb4e8f9add252b94364a16eb74820829159b29afda10117715473cd577')
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --with-apxs=/usr/bin/apxs \
+    --with-python=/usr/bin/python
+  make
+}
+
+package() {
+  make -C $pkgbase-$pkgver DESTDIR="$pkgdir" install
+}

Deleted: mod_wsgi.install
===================================================================
--- mod_wsgi.install	2019-12-11 09:50:07 UTC (rev 536788)
+++ mod_wsgi.install	2019-12-11 09:50:28 UTC (rev 536789)
@@ -1,14 +0,0 @@
-post_install() {
-  cat<<meow
-==>
-==>
-==>  To install mod_wsgi, add the following line in
-==>  /etc/httpd/conf/httpd.conf file :
-==>
-==>  LoadModule wsgi_module modules/mod_wsgi.so
-==>
-==>  and restart/reload Apache.
-==>
-==>
-meow
-}

Copied: mod_wsgi/repos/community-x86_64/mod_wsgi.install (from rev 536788, mod_wsgi/trunk/mod_wsgi.install)
===================================================================
--- mod_wsgi.install	                        (rev 0)
+++ mod_wsgi.install	2019-12-11 09:50:28 UTC (rev 536789)
@@ -0,0 +1,14 @@
+post_install() {
+  cat<<meow
+==>
+==>
+==>  To install mod_wsgi, add the following line in
+==>  /etc/httpd/conf/httpd.conf file :
+==>
+==>  LoadModule wsgi_module modules/mod_wsgi.so
+==>
+==>  and restart/reload Apache.
+==>
+==>
+meow
+}

Deleted: python-3.8.patch
===================================================================
--- python-3.8.patch	2019-12-11 09:50:07 UTC (rev 536788)
+++ python-3.8.patch	2019-12-11 09:50:28 UTC (rev 536789)
@@ -1,97 +0,0 @@
-From 0f34844009075391c55419a3afb90e469facf35e Mon Sep 17 00:00:00 2001
-From: Graham Dumpleton <Graham.Dumpleton at gmail.com>
-Date: Tue, 14 May 2019 16:14:07 +1000
-Subject: [PATCH] Changed functions to pre/post actions when forking.
-
----
- src/server/mod_wsgi.c | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/src/server/mod_wsgi.c b/src/server/mod_wsgi.c
-index 2e4bb24d..bf55945a 100644
---- a/src/server/mod_wsgi.c
-+++ b/src/server/mod_wsgi.c
-@@ -4345,8 +4345,13 @@ static void wsgi_python_child_init(apr_pool_t *p)
-      * do it if Python was initialised in parent process.
-      */
- 
--    if (wsgi_python_initialized && !wsgi_python_after_fork)
-+    if (wsgi_python_initialized && !wsgi_python_after_fork) {
-+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 7)
-+        PyOS_AfterFork_Child();
-+#else
-         PyOS_AfterFork();
-+#endif
-+    }
- 
-     /* Finalise any Python objects required by child process. */
- 
-@@ -10422,6 +10427,12 @@ static int wsgi_start_process(apr_pool_t *p, WSGIDaemonProcess *daemon)
-         wsgi_exit_daemon_process(0);
-     }
- 
-+    if (wsgi_python_initialized) {
-+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 7)
-+        PyOS_AfterFork_Parent();
-+#endif
-+    }
-+
-     apr_pool_note_subprocess(p, &daemon->process, APR_KILL_AFTER_TIMEOUT);
-     apr_proc_other_child_register(&daemon->process, wsgi_manage_process,
-                                   daemon, NULL, p);
-
-From b03b02df6318afe26052db5b0365732152cacea2 Mon Sep 17 00:00:00 2001
-From: Graham Dumpleton <Graham.Dumpleton at gmail.com>
-Date: Tue, 14 May 2019 16:14:42 +1000
-Subject: [PATCH] Use official APIs for accessing interpreter list.
-
----
- src/server/wsgi_interp.c | 18 ++++++++++++------
- 1 file changed, 12 insertions(+), 6 deletions(-)
-
-diff --git a/src/server/wsgi_interp.c b/src/server/wsgi_interp.c
-index 4a948509..3fbca04b 100644
---- a/src/server/wsgi_interp.c
-+++ b/src/server/wsgi_interp.c
-@@ -338,9 +338,10 @@ static PyObject *ShutdownInterpreter_call(
- 
-         PyThreadState_Swap(NULL);
- 
--        tstate = tstate->interp->tstate_head;
-+        tstate = PyInterpreterState_ThreadHead(tstate->interp);
-+
-         while (tstate) {
--            tstate_next = tstate->next;
-+            tstate_next = PyThreadState_Next(tstate);
-             if (tstate != tstate_save) {
-                 PyThreadState_Swap(tstate);
-                 PyThreadState_Clear(tstate);
-@@ -436,9 +437,13 @@ InterpreterObject *newInterpreterObject(const char *name)
-      */
- 
-     if (!name) {
-+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 7)
-+        interp = PyInterpreterState_Main();
-+#else
-         interp = PyInterpreterState_Head();
--        while (interp->next)
--            interp = interp->next;
-+        while (PyInterpreterState_Next(interp))
-+            interp = PyInterpreterState_Next(interp);
-+#endif
- 
-         name = "";
-     }
-@@ -1883,9 +1888,10 @@ static void Interpreter_dealloc(InterpreterObject *self)
- 
-         PyThreadState_Swap(NULL);
- 
--        tstate = tstate->interp->tstate_head;
-+        tstate = PyInterpreterState_ThreadHead(tstate->interp);
-+
-         while (tstate) {
--            tstate_next = tstate->next;
-+            tstate_next = PyThreadState_Next(tstate);
-             if (tstate != tstate_save) {
-                 PyThreadState_Swap(tstate);
-                 PyThreadState_Clear(tstate);



More information about the arch-commits mailing list