httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1092390 - in /httpd/httpd/branches/2.2.x: ./ include/ modules/generators/ os/win32/ server/ server/mpm/winnt/ support/
Date Thu, 14 Apr 2011 16:37:59 GMT
Author: trawick
Date: Thu Apr 14 16:37:58 2011
New Revision: 1092390

URL: http://svn.apache.org/viewvc?rev=1092390&view=rev
Log:
Grab these trunk fixes:

   r422306: gen_test_char doesn't need util_debug
  r1089950: don't build checkgid on MinGW
  r1089951: rework choice of CGI implementation
  r1089954: gcc compatibility of win32/os.h
  r1090417: include <stdlib.h> in win32/os.h before creating exit() macro
            a few other tiny bits of code and svn:ignore entries
 
Submitted by: John Vandenberg <jayvdb gmail.com>, others
Reviewed by: trawick, fuangk, wrowe

Added:
    httpd/httpd/branches/2.2.x/os/win32/Makefile.in
    httpd/httpd/branches/2.2.x/server/mpm/winnt/Makefile.in
    httpd/httpd/branches/2.2.x/server/mpm/winnt/config.m4
Modified:
    httpd/httpd/branches/2.2.x/   (props changed)
    httpd/httpd/branches/2.2.x/CHANGES
    httpd/httpd/branches/2.2.x/STATUS
    httpd/httpd/branches/2.2.x/include/ap_config.h
    httpd/httpd/branches/2.2.x/modules/generators/config5.m4
    httpd/httpd/branches/2.2.x/os/win32/   (props changed)
    httpd/httpd/branches/2.2.x/os/win32/os.h
    httpd/httpd/branches/2.2.x/server/Makefile.in
    httpd/httpd/branches/2.2.x/server/mpm/winnt/   (props changed)
    httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
    httpd/httpd/branches/2.2.x/support/   (props changed)
    httpd/httpd/branches/2.2.x/support/Makefile.in
    httpd/httpd/branches/2.2.x/support/config.m4

Propchange: httpd/httpd/branches/2.2.x/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Apr 14 16:37:58 2011
@@ -16,6 +16,7 @@ modules.c
 config.cache
 .libs
 httpd
+httpd.exe
 modules.lo
 Debug
 Release

Modified: httpd/httpd/branches/2.2.x/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/CHANGES?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/CHANGES [utf-8] (original)
+++ httpd/httpd/branches/2.2.x/CHANGES [utf-8] Thu Apr 14 16:37:58 2011
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.18
 
+  *) MinGW build improvements.  PR 49535.  [John Vandenberg 
+     <jayvdb gmail.com>, Jeff Trawick]
+
   *) mod_ssl, ab: Support OpenSSL compiled without SSLv2 support.
      [Stefan Fritsch]
 

Modified: httpd/httpd/branches/2.2.x/STATUS
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/STATUS?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/STATUS (original)
+++ httpd/httpd/branches/2.2.x/STATUS Thu Apr 14 16:37:58 2011
@@ -96,18 +96,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
      2.2.x patch: Trunk version of patch works with fuzz
      +1: sf, trawick, wrowe
 
-  * Critical MinGW build issues, svn:ignore
-     This serves pages and doesn't have junk in "svn status" output ;)
-     Trunk:
-          r422306: gen_test_char doesn't need util_debug
-         r1089950: don't build checkgid on MinGW
-         r1089951: rework choice of CGI implementation
-         r1089954: gcc compatibility of win32/os.h
-         r1090417: include <stdlib.h> in win32/os.h before creating exit() macro
-          a few other tiny bits of code and svn:ignore entries
-     2.2.x patch: http://people.apache.org/~trawick/mingw_april_10.txt
-     +1: trawick, wrowe, fuankg
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
 

Modified: httpd/httpd/branches/2.2.x/include/ap_config.h
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/include/ap_config.h?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/include/ap_config.h (original)
+++ httpd/httpd/branches/2.2.x/include/ap_config.h Thu Apr 14 16:37:58 2011
@@ -230,7 +230,7 @@
         APR_OPTIONAL_HOOK(ap,name,fn,pre,succ,order)
 
 #include "os.h"
-#if !defined(WIN32) && !defined(NETWARE)
+#if (!defined(WIN32) && !defined(NETWARE)) || defined(__MINGW32__)
 #include "ap_config_auto.h"
 #include "ap_config_layout.h"
 #endif

Modified: httpd/httpd/branches/2.2.x/modules/generators/config5.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/generators/config5.m4?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/generators/config5.m4 (original)
+++ httpd/httpd/branches/2.2.x/modules/generators/config5.m4 Thu Apr 14 16:37:58 2011
@@ -11,15 +11,30 @@ APACHE_MODULE(info, server information, 
 APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [
               other_targets=suexec ] )
 
-if ap_mpm_is_threaded; then
-# if we are using a threaded MPM, we will get better performance with
-# mod_cgid, so make it the default.
+# Is mod_cgid needed?
+case $host in
+    *mingw*)
+        dnl No fork+thread+fd issues, and cgid doesn't work anyway.
+        cgid_needed="no"
+        ;;
+    *)
+        if ap_mpm_is_threaded; then
+            dnl if we are using a threaded MPM on Unix, we can get better
+            dnl performance with mod_cgid, and also avoid potential issues
+            dnl with forking from a threaded process.
+            cgid_needed="yes"
+        else
+            dnl if we are using a non-threaded MPM, it makes little sense to
+            dnl use mod_cgid, and it just opens up holes we don't need.
+            cgid_needed="no"
+        fi
+        ;;
+esac
+
+if test $cgid_needed = "yes"; then
     APACHE_MODULE(cgid, CGI scripts, , , yes)
     APACHE_MODULE(cgi, CGI scripts, , , no)
 else
-# if we are using a non-threaded MPM, it makes little sense to use
-# mod_cgid, and it just opens up holes we don't need.  Make mod_cgi the
-# default
     APACHE_MODULE(cgi, CGI scripts, , , yes)
     APACHE_MODULE(cgid, CGI scripts, , , no)
 fi

Propchange: httpd/httpd/branches/2.2.x/os/win32/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Apr 14 16:37:58 2011
@@ -6,3 +6,6 @@
 *.mak
 mod_*D
 mod_*R
+.deps
+.libs
+Makefile

Added: httpd/httpd/branches/2.2.x/os/win32/Makefile.in
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/os/win32/Makefile.in?rev=1092390&view=auto
==============================================================================
--- httpd/httpd/branches/2.2.x/os/win32/Makefile.in (added)
+++ httpd/httpd/branches/2.2.x/os/win32/Makefile.in Thu Apr 14 16:37:58 2011
@@ -0,0 +1,5 @@
+
+LTLIBRARY_NAME    = libos.la
+LTLIBRARY_SOURCES = util_win32.c ap_regkey.c modules.c
+
+include $(top_srcdir)/build/ltlib.mk

Modified: httpd/httpd/branches/2.2.x/os/win32/os.h
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/os/win32/os.h?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/os/win32/os.h (original)
+++ httpd/httpd/branches/2.2.x/os/win32/os.h Thu Apr 14 16:37:58 2011
@@ -48,6 +48,7 @@
 #define APACHE_MPM_DIR  "server/mpm/winnt" /* generated on unix */
 
 #include <stddef.h>
+#include <stdlib.h> /* for exit() */
 
 #ifdef __cplusplus
 extern "C" {
@@ -93,7 +94,7 @@ int set_listeners_noninheritable(apr_poo
 #define AP_DECLARE_LATE_DLL_FUNC(lib, rettype, calltype, fn, ord, args, names) \
     typedef rettype (calltype *ap_winapi_fpt_##fn) args; \
     static ap_winapi_fpt_##fn ap_winapi_pfn_##fn = NULL; \
-    __inline rettype ap_winapi_##fn args \
+    static APR_INLINE rettype ap_winapi_##fn args \
     {   if (!ap_winapi_pfn_##fn) \
             ap_winapi_pfn_##fn = (ap_winapi_fpt_##fn) ap_load_dll_func(lib, #fn, ord); \
         return (*(ap_winapi_pfn_##fn)) names; }; \

Modified: httpd/httpd/branches/2.2.x/server/Makefile.in
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/Makefile.in?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/server/Makefile.in (original)
+++ httpd/httpd/branches/2.2.x/server/Makefile.in Thu Apr 14 16:37:58 2011
@@ -21,7 +21,7 @@ TARGETS = delete-exports $(LTLIBRARY_NAM
 include $(top_builddir)/build/rules.mk
 include $(top_srcdir)/build/library.mk
 
-gen_test_char_OBJECTS = gen_test_char.lo util_debug.lo
+gen_test_char_OBJECTS = gen_test_char.lo
 gen_test_char: $(gen_test_char_OBJECTS)
 	$(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS)
 

Propchange: httpd/httpd/branches/2.2.x/server/mpm/winnt/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Apr 14 16:37:58 2011
@@ -0,0 +1,5 @@
+.deps
+.libs
+modules.mk
+Makefile
+

Added: httpd/httpd/branches/2.2.x/server/mpm/winnt/Makefile.in
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/mpm/winnt/Makefile.in?rev=1092390&view=auto
==============================================================================
--- httpd/httpd/branches/2.2.x/server/mpm/winnt/Makefile.in (added)
+++ httpd/httpd/branches/2.2.x/server/mpm/winnt/Makefile.in Thu Apr 14 16:37:58 2011
@@ -0,0 +1,5 @@
+
+LTLIBRARY_NAME    = libwinnt.la
+LTLIBRARY_SOURCES = mpm_winnt.c child.c nt_eventlog.c service.c
+
+include $(top_srcdir)/build/ltlib.mk

Added: httpd/httpd/branches/2.2.x/server/mpm/winnt/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/mpm/winnt/config.m4?rev=1092390&view=auto
==============================================================================
--- httpd/httpd/branches/2.2.x/server/mpm/winnt/config.m4 (added)
+++ httpd/httpd/branches/2.2.x/server/mpm/winnt/config.m4 Thu Apr 14 16:37:58 2011
@@ -0,0 +1,3 @@
+if test "$MPM_NAME" = "winnt" ; then
+    APACHE_FAST_OUTPUT(server/mpm/$MPM_NAME/Makefile)
+fi

Modified: httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c (original)
+++ httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c Thu Apr 14 16:37:58 2011
@@ -59,7 +59,7 @@ server_rec *ap_server_conf;
 static HANDLE shutdown_event;  /* used to signal the parent to shutdown */
 static HANDLE restart_event;   /* used to signal the parent to restart */
 
-static char ap_coredump_dir[MAX_STRING_LEN];
+char ap_coredump_dir[MAX_STRING_LEN];
 
 static int one_process = 0;
 static char const* signal_arg = NULL;

Propchange: httpd/httpd/branches/2.2.x/support/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Apr 14 16:37:58 2011
@@ -36,3 +36,4 @@ BuildLog.htm
 *.sto
 *.vcproj
 httxt2dbm
+*.exe

Modified: httpd/httpd/branches/2.2.x/support/Makefile.in
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/support/Makefile.in?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/support/Makefile.in (original)
+++ httpd/httpd/branches/2.2.x/support/Makefile.in Thu Apr 14 16:37:58 2011
@@ -3,7 +3,7 @@ DISTCLEAN_TARGETS = apxs apachectl dbmma
 
 CLEAN_TARGETS = suexec
 
-PROGRAMS = htpasswd htdigest rotatelogs logresolve ab checkgid htdbm htcacheclean httxt2dbm
+PROGRAMS = htpasswd htdigest rotatelogs logresolve ab htdbm htcacheclean httxt2dbm $(NONPORTABLE_SUPPORT)
 TARGETS  = $(PROGRAMS)
 
 PROGRAM_LDADD        = $(UTIL_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS)

Modified: httpd/httpd/branches/2.2.x/support/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/support/config.m4?rev=1092390&r1=1092389&r2=1092390&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/support/config.m4 (original)
+++ httpd/httpd/branches/2.2.x/support/config.m4 Thu Apr 14 16:37:58 2011
@@ -103,6 +103,20 @@ fi
 ])
 APACHE_SUBST(httxt2dbm_LTFLAGS)
 
+# Configure or check which of the non-portable support programs can be enabled.
+
+NONPORTABLE_SUPPORT=""
+case $host in
+    *mingw*)
+        ;;
+    *)
+        NONPORTABLE_SUPPORT="checkgid"
+        ;;
+esac
+APACHE_SUBST(NONPORTABLE_SUPPORT)
+
+# Configure the ulimit -n command used by apachectl.
+
 case $host in
     *aix*)
         # this works in any locale, unlike the default command below, which



Mime
View raw message