Automatic conversion of the NetBSD pkgsrc CVS module, use with care
Find a file
gdt dd6a1653db Update to mod_wsgi 2.4. (Works with apache22 and trac.)
patch-aa was incorporated into a larger related change upstream:
  http://code.google.com/p/modwsgi/issues/detail?id=107

Changes as described at:
  http://code.google.com/p/modwsgi/wiki/ChangesInVersion0204

Bug Fixes

1. Compilation would fail on Windows due to daemon mode specific code
not being conditionally compiled out on that platform. This was a
problem introduced by changes in mod_wsgi 2.3.

2. Fix bug where wrong Apache memory pool used when processing
configuration directives at startup. This could later result in memory
corruption and may account for problems seen with 'fopen()'
errors. See:

    http://code.google.com/p/modwsgi/issues/detail?id=78

    http://code.google.com/p/modwsgi/issues/detail?id=108

3. Fix bug where Python interpreter not being destroyed correctly in
Apache parent process on an Apache restart. This was resulting in slow
memory leak into Apache parent process on each restart. This
additional memory usage would then be inherited by all child processes
forked from Apache parent process.

Note that this change does not help for case where mod_python is also
being loaded into Apache as in that case mod_python is responsible for
intialising Python and in all available versions of mod_python it
still doesn't properly destroy the Python interpreter either and so
causes memory leaks which mod_wsgi cannot work around.

Also, this doesn't solve problems with the Python interpreter itself
leaking memory when destroyed and reinitialised. Such memory leaks in
Python seem to occur for some versions of Python on particular
platforms.

For further details see:

    http://code.google.com/p/modwsgi/issues/detail?id=99

4. Fix bug whereby POST requests where 100-continue was expected by
client would see request content actually truncated and not be
available to WSGI application if application running in daemon
mode. See:

    http://code.google.com/p/modwsgi/issues/detail?id=121

5. Fix bug where Apache optimisation related to keep alive connections
can kick in when using wsgi.file_wrapper with result that if amount of
data is between 255 and aproximately 8000 bytes, that a completely
empty response will result. This occurs because Apache isn't flushing
out the file data straight away but holding it over in case subsequent
request on connection arrives. By then the file object used with
wsgi.file_wrapper can have been closed and underlying file descriptor
will not longer be valid. See:

    http://code.google.com/p/modwsgi/issues/detail?id=132

6. Modify how daemon process shutdown request is detected such that no
need to block signals in request threads. Doing this caused problems
in processes which were run from daemon mode process and which needed
to be able to receive signals. New mechanism uses a internal pipe to
which signal handler writes a character, with main thread performing a
poll on pipe waiting for that character to know when to shutdown. For
additional details see:

    http://code.google.com/p/modwsgi/issues/detail?id=87

9. Fix bug where excessive transient memory usage could occur when
calling read() or readline() on wsgi.input with no argument. See:

    http://code.google.com/p/modwsgi/issues/detail?id=126

Note that calling read() with no argument is actually a violation of
WSGI specification and any application doing that is not a WSGI
compliant application.

10. Fix bug where daemon process would crash if User/Group directives
were not specified prior to WSGIDaemonProcess in Apache configuration
file. See:

    http://code.google.com/p/modwsgi/issues/detail?id=40

11. Fix bug whereby Python exception state wasn't being cleared
correctly when error occurred in loading target of
WSGIImportScript. See:

    http://code.google.com/p/modwsgi/issues/detail?id=117

Features Changed

1. No longer populate 'error-notes' field in Apache request object
notes table, with details of why WSGI script failed. This has been
removed as information can be seen in default Apache multilanguage
error documents. Because errors may list paths or user/group
information, could be seen as a security risk.  Features Added

1. Added 'mod_wsgi.version' to WSGI environment passed to WSGI
application. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=93

2. Added 'process_group' and 'application_group' attributes to
mod_wsgi module that is created within each Python interpreter
instance. This allows code executed outside of the context of a
request handler to know whether it is running in a daemon process
group and what it may be called. Similarly, can determine if running
in first interpreter or some other sub interpreter. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=27

3. Added closed and isatty attributes to Log object as well as close()
method. For wsgi.errors these aren't required, but log object also
used for stderr and stdout (when enabled) and code may assume these
methods may exist for stderr and stdout. The closed and isatty
attributes always yield false and close() will raise a run time error
indicating that log cannot be closed. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=82

4. Apache scoreboard cleaned up when daemon processes first
initialised to prevent any user code interfering with operation of
Apache. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=104

5. When running configure script, can now supply additional options
for CPPFLAGS, LDFLAGS and LDLIBS through environment variables. For
details see:

    http://code.google.com/p/modwsgi/issues/detail?id=107

6. Better checking done on response headers and an explicit error will
now be produce if name or value of response header contains an
embedded newline. This is done as by allowing embedded newline would
cause daemon mode to fail when handing response in Apache child
process. In embedded mode, could allow application to pass back
malformed response headers to client. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=81

7: Ensure that SYSLIBS linker options from Python configuration used
when linking mod_wsgi Apache module. This is now prooving necessary as
some Apache distributions are no longer linking system maths library
and Python requires it. To avoid problem simply link against mod_wsgi
Apache module and system libraries that Python needs. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=115

8: Reorder sys.path after having called site.addsitedir() in
WSGIPythonPath and python-path option for WSGIDaemonProcess. This
ensures that newly added directories get moved to front of sys.path
and that they take precedence over standard directories. This in part
avoids need to ensure --no-site-packages option used when creating
virtual environments, as shouldn't have an issue with standard
directories still overriding additions. For details see:

    http://code.google.com/p/modwsgi/issues/detail?id=112

9. Update USER, USERNAME and LOGNAME environment variables if set in
daemon process to be the actual user that the process runs as rather
than what may be inherited from Apache root process, which would
typically be 'root' or the user that executed 'sudo' to start Apache,
if they hadn't used '-H' option to 'sudo'. See:

    http://code.google.com/p/modwsgi/issues/detail?id=129

10. Build process now inserts what is believed to be the directory
where Python shared library is installed, into the library search path
before the Python config directory. This should negate the need to
ensure that Python shared library is also symlink into the config
directory next to the static library as linkers would normally expect
it. See:

    http://code.google.com/p/modwsgi/issues/detail?id=136
2009-04-29 23:14:58 +00:00
archivers fix distinfo from previous commit 2009-04-25 23:50:58 +00:00
audio Update cdplayer to 0.5 -- notable changes include: 2009-04-19 11:43:16 +00:00
benchmarks Convert to user-destdir. From Aleksey Cheusov in PR 39982. 2009-04-29 09:20:40 +00:00
biology Add master site. Remove broken ones. OK'd by obache. 2009-04-28 19:07:31 +00:00
bootstrap Fix a square bracket mismatch. 2009-04-23 00:15:53 +00:00
cad Use META_PACKAGE 2009-04-09 00:41:53 +00:00
chat Add "# used by chat/irssi-icb/Makefile" as requested by pkglint in 2009-04-29 12:48:24 +00:00
comms Make it build on DragonFly master and recent versions of FreeBSD (probably). 2009-04-07 19:34:10 +00:00
converters Use variable to avoid hardcoding the package version all over the place. 2009-04-15 13:03:48 +00:00
cross Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
databases PkgSrc changes: 2009-04-29 08:56:14 +00:00
devel PkgSrc changes: 2009-04-29 23:06:24 +00:00
distfiles
doc Updated devel/p5-AnyEvent to 4.400 2009-04-29 23:07:11 +00:00
editors no distfile at phred.org. removed. ok'd by obache. 2009-04-28 21:07:20 +00:00
emulators remove dead mirror. ok'd by obache. 2009-04-28 21:22:01 +00:00
filesystems neon update to 0.28.x changed ABI, so do a recursive bump, PKGREVISION++. 2009-04-16 21:42:40 +00:00
finance Modify dependencies to perl-modules which are deployed with the perl-core, 2009-04-24 17:15:21 +00:00
fonts Add tex-tipa and tex-tiap-doc. 2009-04-29 18:40:57 +00:00
games remove dead mirrors. ok'd by obache. 2009-04-28 21:28:39 +00:00
geography Use META_PACKAGE. 2009-04-08 23:02:08 +00:00
graphics Convert to user-destdir. From Aleksey Cheusov in PR 40118. 2009-04-29 09:24:17 +00:00
ham Rename fls to cfls to avoid conflicts with fls function on FreeBSD and 2009-04-07 18:45:04 +00:00
inputmethod Use META_PACKAGE. 2009-04-08 23:05:45 +00:00
lang * Add some defines to get slightly more working mono on DragonFly (programs 2009-04-28 10:31:58 +00:00
licenses Fix pasto -- this is "original-bsd", not "modified-bsd". 2009-04-22 16:24:18 +00:00
mail Add gtk-doc build dependency for gtkdoc-rebase (fixes installation on 2009-04-27 16:05:19 +00:00
math Update to Maxima 5.18.1 2009-04-29 18:26:50 +00:00
mbone Leave over maintainership to pkgsrc-users 2009-03-22 04:53:38 +00:00
meta-pkgs update for gnome-2.26.1 2009-04-16 18:55:23 +00:00
misc drop references to firefox-gtk1 2009-04-21 16:47:48 +00:00
mk Revert last change for the moment as "/bin/ksh" fails to execute 2009-04-27 12:03:36 +00:00
multimedia Make it build on DragonFly. 2009-04-28 11:57:54 +00:00
net NetBSD GENERIC has IPFilter enabled and pf disabled by default. Therefore, 2009-04-29 12:34:42 +00:00
news Update to 1.11.7, provided by Aleksey Cheusov in PR 41291. 2009-04-29 10:54:10 +00:00
packages
parallel Remove the remaining NO_MTREE definitions, it has been a nop for a 2009-04-08 22:43:23 +00:00
pkgtools Removed unnecessary code. 2009-04-26 16:08:40 +00:00
print Add hyperref. 2009-04-29 22:09:34 +00:00
regress Remove redundant EXTRACT_ONLY and NO_CHECKSUM declarations. 2009-04-09 00:47:11 +00:00
security Add and enable netpgp 2009-04-29 04:55:29 +00:00
shells mksh R37c provides these follow-up fixes: 2009-04-13 19:48:34 +00:00
sysutils Make it build on DragonFly. 2009-04-28 13:01:39 +00:00
templates audit-packages is now in pkg_install on pkgsrc HEAD and stable so update 2008-12-10 22:06:48 +00:00
textproc Add tex-xmltex-doc. 2009-04-29 06:20:58 +00:00
time PkgSrc changes: 2009-04-29 07:46:22 +00:00
wm add a patch from upstream CVS to fix a possible bypass of screensaver 2009-04-17 16:14:56 +00:00
www Update to mod_wsgi 2.4. (Works with apache22 and trac.) 2009-04-29 23:14:58 +00:00
x11 Adding file pixman/solaris-hwcap.mapfile imported by Alan Coopersmith to 2009-04-28 11:31:39 +00:00
Makefile The crosspkgtools has not worked for a long time because of changes in 2008-06-23 20:34:20 +00:00
pkglocate
README

$NetBSD: README,v 1.18 2005/05/07 22:18:28 wiz Exp $

Please see doc/pkgsrc.txt for information.