Hello community, here is the log from the commit of package apache2-mod_python checked in at Mon Aug 21 11:26:22 CEST 2006. -------- --- apache2-mod_python/apache2-mod_python.changes 2006-03-04 07:22:18.000000000 +0100 +++ apache2-mod_python/apache2-mod_python.changes 2006-08-19 00:10:52.000000000 +0200 @@ -1,0 +2,94 @@ +Sat Aug 19 00:00:07 CEST 2006 - poeml@suse.de + +- update to 3.2.8 + |- New Features: + | - New apache.register_cleanup() method. + | - New apache.exists_config_define() method. + | - New file-based session manager class. + | - Session cookie name can be specified. + | - The maximum number of mutexes mod_python uses for session + | locking can now be specifed at compile time using configure + | --with-max-locks. + | - New a version attribute in mod_python module. + | - New test handler testhandler.py has been added. + |- Improvements + | - Autoreload of a module using apache.import_module() now works + | if modification time for the module is different from the + | file. Previously, the module was only reloaded if the the + | modification time of the file was more recent. This allows + | for a more graceful reload if a file with an older + | modification time needs to be restored from backup. + | - Fixed the publisher traversal security issue + | - Objects hierarchy a la CherryPy can now be published. + | - mod_python.c now logs reason for a 500 error + | - Calls to PyErr_Print in mod_python.c are now followed by + | fflush() + | - Using an empty value with PythonOption will unset a + | PythonOption key. + | - req.path_info is now a read/write member. + | - Improvements to FieldStorage allow uploading of large files. + | Uploaded files are now streamed to disk, not to memory. + | - Path to flex is now discovered at configuration time or can + | be specifed using configure --with-flex=/path/to/flex. + | - sys.argv is now initialized to ["mod_python"] so that modules + | like numarray and pychart can work properly. + |- Bug Fixes + | - Fixed memory leak which resulted from circular references + | starting from the request object. + | - Fixed memory leak resulting from multiple PythonOption + | directives. + | - Fixed Multiple/redundant interpreter creation problem. + | - Cookie attributes with attribute names prefixed with $ are + | now ignored. See Section 4.7 for more information. + | - Bug in setting up of config_dir from Handler directives + | fixed. + | - mod_python.publisher will now support modules with the same + | name but in different directories + | - Fixed continual reloading of modules problem + | - Fixed big marshalled cookies error. + | - Fixed mod_python.publisher extension handling + | - mod_python.publisher default index file traversal + | - mod_python.publisher loading wrong module and giving no + | warning/error + | - apply_fs_data() now works with "new style" objects + | - File descriptor fd closed after ap_send_fd() in + | req_sendfile() + | - Bug in mem_cleanup in MemorySession fixed. + | - Fixed bug in _apache._global_lock() which could cause a + | segfault if the lock index parameter is greater number of + | mutexes created at mod_python startup. + | - Fixed bug where local_ip and local_host in connection object + | were returning remote_ip and remote_host instead + | - Fixed install_dso Makefile rule so it only installs the dso, + | not the python files + | - Potential deadlock in psp cache handling fixed + | - Fixed bug where sessions are used outside <Directory> + | directive. + | - Fixed compile problem on IRIX. ln -s requires both TARGET and + | LINK_NAME on IRIX. ie. ln -s TARGET LINK_NAME + | - Fixed ./configure problem on SuSE Linux 9.2 (x86-64). Python + | libraries are in lib64/ for this platform. + | - Fixed req.sendfile() problem where sendfile(filename) sends + | the incorrect number of bytes when filename is a symlink. + | - Fixed problem where util.FieldStorage was not correctly + | checking the mime types of POSTed entities + | - Fixed conn.local_addr and conn.remote_addr for a better IPv6 + | support. + | - Fixed psp_parser.l to properly escape backslash-n, + | backslash-t and backslash-r character sequences. + | - Fixed segfault bug when accessing some request object members + | (allowed_methods, allowed_xmethods, content_languages) and + | some server object members (names, wild_names). + | - Fixed request.add_handler() segfault bug when adding a + | handler to an empty handler list. + | - Fixed PythonAutoReload directive so that AutoReload can be + | turned off. + | - Fixed connection object read() bug on FreeBSD. + | - Fixed potential buffer corruption bug in connection object + | read(). +- remove references to obsolete APR_STATUS_IS_SUCCESS and + apr_sockaddr_port_get() for libapr-1.2.7 +- drop obsolete mod_python-3.1.3-publisher.dif +- fix installation into the correct libdir, it didn't work anymore + +------------------------------------------------------------------- Old: ---- mod_python-3.1.3-apache-2.2.dif mod_python-3.1.3-publisher.dif mod_python-3.1.3.tar.bz2 New: ---- mod_python-3.2.8-libapr-1.2.7.dif mod_python-3.2.8.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ apache2-mod_python.spec ++++++ --- /var/tmp/diff_new_pack.Q5Eeme/_old 2006-08-21 11:26:11.000000000 +0200 +++ /var/tmp/diff_new_pack.Q5Eeme/_new 2006-08-21 11:26:11.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package apache2-mod_python (Version 3.1.3) +# spec file for package apache2-mod_python (Version 3.2.8) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -21,8 +21,8 @@ %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) -Version: 3.1.3 -Release: 51 +Version: 3.2.8 +Release: 1 Summary: A Python Module for the Apache 2 Web Server License: X11/MIT, Other License(s), see package Group: Productivity/Networking/Web/Servers @@ -32,8 +32,7 @@ Autoreqprov: on URL: http://www.modpython.org/ Source: %{modname}-%{version}.tar.bz2 -Patch1: mod_python-3.1.3-publisher.dif -Patch2: mod_python-3.1.3-apache-2.2.dif +Patch2: mod_python-3.2.8-libapr-1.2.7.dif Patch3: mod_python-3.1.3-configure.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -75,12 +74,7 @@ %prep %setup -n %{modname}-%{version} -%patch1 -p1 -# the following line is obsolete as soon as we have apache 2.2.0 in autobuild. -# it allows building with 2.0 until then. -if [ $(/usr/sbin/httpd2 -V | head -n 1 | cut -d/ -f2) = 2.2.0 ]; then %patch2 -p1 -fi %patch3 case %_lib in lib) ;; @@ -95,7 +89,7 @@
dist/Makefile.in mv dist/setup.py.in dist/setup.py.in.t sed -e "s@setup.py install@setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT@" \
- -e "s@/lib@/%{_lib}@" \
+ -e "s@'lib'@'%{_lib}'@" \ < dist/setup.py.in.t \
dist/setup.py.in
@@ -117,6 +111,97 @@ %{py_sitedir}/%{modname} %changelog -n apache2-mod_python +* Sat Aug 19 2006 - poeml@suse.de +- update to 3.2.8 + |- New Features: + | - New apache.register_cleanup() method. + | - New apache.exists_config_define() method. + | - New file-based session manager class. + | - Session cookie name can be specified. + | - The maximum number of mutexes mod_python uses for session + | locking can now be specifed at compile time using configure + | --with-max-locks. + | - New a version attribute in mod_python module. + | - New test handler testhandler.py has been added. + |- Improvements + | - Autoreload of a module using apache.import_module() now works + | if modification time for the module is different from the + | file. Previously, the module was only reloaded if the the + | modification time of the file was more recent. This allows + | for a more graceful reload if a file with an older + | modification time needs to be restored from backup. + | - Fixed the publisher traversal security issue + | - Objects hierarchy a la CherryPy can now be published. + | - mod_python.c now logs reason for a 500 error + | - Calls to PyErr_Print in mod_python.c are now followed by + | fflush() + | - Using an empty value with PythonOption will unset a + | PythonOption key. + | - req.path_info is now a read/write member. + | - Improvements to FieldStorage allow uploading of large files. + | Uploaded files are now streamed to disk, not to memory. + | - Path to flex is now discovered at configuration time or can + | be specifed using configure --with-flex=/path/to/flex. + | - sys.argv is now initialized to ["mod_python"] so that modules + | like numarray and pychart can work properly. + |- Bug Fixes + | - Fixed memory leak which resulted from circular references + | starting from the request object. + | - Fixed memory leak resulting from multiple PythonOption + | directives. + | - Fixed Multiple/redundant interpreter creation problem. + | - Cookie attributes with attribute names prefixed with $ are + | now ignored. See Section 4.7 for more information. + | - Bug in setting up of config_dir from Handler directives + | fixed. + | - mod_python.publisher will now support modules with the same + | name but in different directories + | - Fixed continual reloading of modules problem + | - Fixed big marshalled cookies error. + | - Fixed mod_python.publisher extension handling + | - mod_python.publisher default index file traversal + | - mod_python.publisher loading wrong module and giving no + | warning/error + | - apply_fs_data() now works with "new style" objects + | - File descriptor fd closed after ap_send_fd() in + | req_sendfile() + | - Bug in mem_cleanup in MemorySession fixed. + | - Fixed bug in _apache._global_lock() which could cause a + | segfault if the lock index parameter is greater number of + | mutexes created at mod_python startup. + | - Fixed bug where local_ip and local_host in connection object + | were returning remote_ip and remote_host instead + | - Fixed install_dso Makefile rule so it only installs the dso, + | not the python files + | - Potential deadlock in psp cache handling fixed + | - Fixed bug where sessions are used outside <Directory> + | directive. + | - Fixed compile problem on IRIX. ln -s requires both TARGET and + | LINK_NAME on IRIX. ie. ln -s TARGET LINK_NAME + | - Fixed ./configure problem on SuSE Linux 9.2 (x86-64). Python + | libraries are in lib64/ for this platform. + | - Fixed req.sendfile() problem where sendfile(filename) sends + | the incorrect number of bytes when filename is a symlink. + | - Fixed problem where util.FieldStorage was not correctly + | checking the mime types of POSTed entities + | - Fixed conn.local_addr and conn.remote_addr for a better IPv6 + | support. + | - Fixed psp_parser.l to properly escape backslash-n, + | backslash-t and backslash-r character sequences. + | - Fixed segfault bug when accessing some request object members + | (allowed_methods, allowed_xmethods, content_languages) and + | some server object members (names, wild_names). + | - Fixed request.add_handler() segfault bug when adding a + | handler to an empty handler list. + | - Fixed PythonAutoReload directive so that AutoReload can be + | turned off. + | - Fixed connection object read() bug on FreeBSD. + | - Fixed potential buffer corruption bug in connection object + | read(). +- remove references to obsolete APR_STATUS_IS_SUCCESS and + apr_sockaddr_port_get() for libapr-1.2.7 +- drop obsolete mod_python-3.1.3-publisher.dif +- fix installation into the correct libdir, it didn't work anymore * Sat Mar 04 2006 - aj@suse.de - updated to reflect python changes due to #149809 * Mon Jan 30 2006 - poeml@suse.de ++++++ mod_python-3.2.8-libapr-1.2.7.dif ++++++ diff -uNr mod_python-3.2.8.orig/src/connobject.c mod_python-3.2.8/src/connobject.c --- mod_python-3.2.8.orig/src/connobject.c 2006-02-02 22:30:55.000000000 +0100 +++ mod_python-3.2.8/src/connobject.c 2006-05-02 14:10:53.567611461 +0200 @@ -79,7 +79,7 @@ rc = ap_get_brigade(c->input_filters, bb, mode, APR_BLOCK_READ, bufsize); Py_END_ALLOW_THREADS; - if (! APR_STATUS_IS_SUCCESS(rc)) { + if (rc != APR_SUCCESS) { PyErr_SetObject(PyExc_IOError, PyString_FromString("Connection read error")); return NULL; diff -uNr mod_python-3.2.8.orig/src/filterobject.c mod_python-3.2.8/src/filterobject.c --- mod_python-3.2.8.orig/src/filterobject.c 2004-11-25 23:10:52.000000000 +0100 +++ mod_python-3.2.8/src/filterobject.c 2006-05-02 14:10:35.310792119 +0200 @@ -178,7 +178,7 @@ APR_BLOCK_READ, self->readbytes); Py_END_ALLOW_THREADS; - if (!APR_STATUS_IS_EAGAIN(self->rc) && !APR_STATUS_IS_SUCCESS(self->rc)) { + if (!APR_STATUS_IS_EAGAIN(self->rc) && self->rc != APR_SUCCESS) { PyErr_SetObject(PyExc_IOError, PyString_FromString("Input filter read error")); return NULL; diff -uNr mod_python-3.2.8.orig/src/connobject.c mod_python-3.2.8/src/connobject.c --- mod_python-3.2.8.orig/src/connobject.c 2006-02-02 22:30:55.000000000 +0100 +++ mod_python-3.2.8/src/connobject.c 2006-05-02 15:39:55.687268168 +0200 @@ -319,14 +319,14 @@ { PyObject *addrobj = makeipaddr(addr); PyObject *ret = NULL; + + /* apr_sockaddr_port_get was deprecated and removed in apr 1.x + * Access the port directly instead + */ if (addrobj) { apr_port_t port; - if(apr_sockaddr_port_get(&port, addr)==APR_SUCCESS) { - ret = Py_BuildValue("Oi", addrobj, port ); - } - else { - PyErr_SetString(PyExc_SystemError,"apr_sockaddr_port_get failure"); - } + port = addr->port; + ret = Py_BuildValue("Oi", addrobj, port ); Py_DECREF(addrobj); } return ret; ++++++ mod_python-3.1.3.tar.bz2 -> mod_python-3.2.8.tar.bz2 ++++++ ++++ 32458 lines of diff (skipped) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org