- build with apache 2.4 auto/th/apache-mod_python-3.3.1-17 auto/ti/apache-mod_python-3.3.1-17
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 5 May 2013 21:58:49 +0000 (23:58 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 5 May 2013 21:58:49 +0000 (23:58 +0200)
- rel 17

apache-mod_python-apache24.patch [new file with mode: 0644]
apache-mod_python.spec

diff --git a/apache-mod_python-apache24.patch b/apache-mod_python-apache24.patch
new file mode 100644 (file)
index 0000000..565f9e3
--- /dev/null
@@ -0,0 +1,62 @@
+--- mod_python-3.3.1/src/mod_python.c~ 2006-11-09 07:21:23.000000000 +0100
++++ mod_python-3.3.1/src/mod_python.c  2013-05-05 21:57:30.378136612 +0200
+@@ -561,8 +561,8 @@
+ #if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+             if  (!geteuid()) {
+-                chown(fname, unixd_config.user_id, -1);
+-                unixd_set_global_mutex_perms(mutex[n]);
++                chown(fname, ap_unixd_config.user_id, -1);
++                ap_unixd_set_global_mutex_perms(mutex[n]);
+             }
+ #endif
+         }
+--- mod_python-3.3.1/src/serverobject.c~       2006-12-03 05:36:37.000000000 +0100
++++ mod_python-3.3.1/src/serverobject.c        2013-05-05 22:53:26.721477649 +0200
+@@ -191,7 +191,7 @@
+     {"server_hostname",    T_STRING,  OFF(server_hostname)},
+     {"port",               T_SHORT,   OFF(port)},
+     {"error_fname",        T_STRING,  OFF(error_fname)},
+-    {"loglevel",           T_INT,     OFF(loglevel)},
++    {"loglevel",           T_INT,     OFF(log.level)},
+     {"is_virtual",         T_INT,     OFF(is_virtual)},
+     /* XXX implement module_config ? */
+     /* XXX implement lookup_defaults ? */
+@@ -288,7 +288,9 @@
+ static PyObject *my_generation(serverobject *self, void *objname)
+ {
+-    return PyInt_FromLong((long)ap_my_generation);
++    ap_generation_t mpm_generation;
++    ap_mpm_query(AP_MPMQ_GENERATION, &mpm_generation);
++    return PyInt_FromLong((long)mpm_generation);
+ }
+ static PyObject *restart_time(serverobject *self, void *objname)
+--- mod_python-3.3.1/src/connobject.c.orig     2013-05-05 23:03:40.876114437 +0200
++++ mod_python-3.3.1/src/connobject.c  2013-05-05 23:10:10.889444946 +0200
+@@ -286,8 +286,10 @@
+     /* XXX vhost_lookup_data? */
+     /* XXX client_socket? */
+     {"local_addr",         T_OBJECT,    0,                       RO},
++    {"client_addr",        T_OBJECT,    0,                       RO},
+     {"remote_addr",        T_OBJECT,    0,                       RO},
+-    {"remote_ip",          T_STRING,    OFF(remote_ip),          RO},
++    {"client_ip",          T_STRING,    OFF(client_ip),          RO},
++    {"remote_ip",          T_STRING,    OFF(client_ip),          RO},
+     {"remote_host",        T_STRING,    OFF(remote_host),        RO},
+     {"remote_logname",     T_STRING,    OFF(remote_logname),     RO},
+     {"aborted",            T_INT,       0,                       RO},
+@@ -414,8 +416,11 @@
+     else if (strcmp(name, "local_addr") == 0) {
+         return makesockaddr(self->conn->local_addr);
+     }
++    else if (strcmp(name, "client_addr") == 0) {
++        return makesockaddr(self->conn->client_addr);
++    }
+     else if (strcmp(name, "remote_addr") == 0) {
+-        return makesockaddr(self->conn->remote_addr);
++        return makesockaddr(self->conn->client_addr);
+     }
+     else if (strcmp(name, "notes") == 0) {
+         Py_INCREF(self->notes);
index 99a3f6159e300c279ac46d9561374467e5076d5d..2ae416cb1920bbb86d1594680df7a8099601b24a 100644 (file)
@@ -19,7 +19,7 @@ Summary(sl.UTF-8):    Vključeni pythonski tolmač za spletni strežnik Apache
 Summary(sv.UTF-8):     En inbyggd Python-interpretator för webbservern Apache
 Name:          apache-mod_%{mod_name}
 Version:       3.3.1
-Release:       16
+Release:       17
 License:       Apache
 Group:         Networking/Daemons/HTTP
 Source0:       http://www.apache.org/dist/httpd/modpython/mod_%{mod_name}-%{version}.tgz
@@ -28,6 +28,7 @@ Source1:      %{name}.conf
 Patch0:                %{name}-httpd-not-needed.patch
 Patch1:                %{name}-ldflags.patch
 Patch2:                %{name}-apr_brigade_sentinel.patch
+Patch3:                %{name}-apache24.patch
 URL:           http://www.modpython.org/
 BuildRequires: apache-devel >= 2.0.52-7
 BuildRequires: apr-devel >= 1:1.0.0
@@ -128,6 +129,7 @@ prestandan jämfört med den traditionella CGI-metoden.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__aclocal}
This page took 0.276427 seconds and 4 git commands to generate.