mod_python: API compatibility fix for apr

This commit is contained in:
Danny Rawlins 2008-07-01 16:57:46 +10:00
parent b32145a5cb
commit 7d6932f679
2 changed files with 17 additions and 3 deletions

View File

@ -6,13 +6,15 @@
name=mod_python
version=3.3.1
release=1
release=2
source=(http://www.apache.org/dist/httpd/modpython/mod_python-$version.tgz
configure.patch)
configure.patch
mod_python-$version-apr-fix.patch)
build() {
cd mod_python-$version
patch -p 1 -i ../configure.patch configure
patch -p 1 -i $SRC/configure.patch configure
patch -p 1 -i $SRC/mod_python-$version-apr-fix.patch
./configure \
--prefix=/usr \

View File

@ -0,0 +1,12 @@
diff -pruN mod_python-3.3.1.orig/src/connobject.c mod_python-3.3.1/src/connobject.c
--- mod_python-3.3.1.orig/src/connobject.c 2008-07-01 06:45:51.592845367 +0000
+++ mod_python-3.3.1/src/connobject.c 2008-07-01 06:47:56.513846039 +0000
@@ -139,7 +139,7 @@ static PyObject * _conn_read(conn_rec *c
bytes_read = 0;
while ((bytes_read < len || len == 0) &&
- !(b == APR_BRIGADE_SENTINEL(b) ||
+ !(b == APR_BRIGADE_SENTINEL(bb) ||
APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
const char *data;