]> git.pld-linux.org Git - packages/apache.git/commitdiff
- initial 2.4.x fun
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 21 Feb 2012 18:02:42 +0000 (18:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-apxs.patch -> 1.11
    apache-layout.patch -> 1.7
    apache-paths.patch -> 1.4
    apache-suexec_fcgi.patch -> 1.4
    apache-syslibs.patch -> 1.2
    apache-v6only-ENOPROTOOPT.patch -> 1.2
    apache.spec -> 1.644
    httpd-2.0.45-encode.patch -> 1.6
    httpd-2.0.46-sslmutex.patch -> 1.5
    httpd-2.0.48-corelimit.patch -> 1.4
    httpd-2.0.48-debuglog.patch -> 1.4

apache-apxs.patch
apache-layout.patch
apache-paths.patch [deleted file]
apache-suexec_fcgi.patch
apache-syslibs.patch
apache-v6only-ENOPROTOOPT.patch
apache.spec
httpd-2.0.45-encode.patch [deleted file]
httpd-2.0.46-sslmutex.patch [deleted file]
httpd-2.0.48-corelimit.patch
httpd-2.0.48-debuglog.patch

index 7ee05ad5f39e894e694ab40a89bf2e82870cce7d..802a2916241be98710ada1eb3bedd084be17e5bf 100644 (file)
                print STDERR "apxs:Error: no config variable $var\n";
                &usage;
            }
-@@ -199,11 +201,10 @@
-     ($httpd = $0) =~ s:support/apxs$::;
- }
--unless (-x "$httpd") {
--      error("$httpd not found or not executable");
--      exit 1;
-+if (not -x "$httpd") {
-+      print STDERR "Note: $httpd not found or not executable.\n";
- }
--
-+else {
- unless (grep /mod_so/, `. $envvars && $httpd -l`) {
-     error("Sorry, no shared object support for Apache");
-     error("available under your platform. Make sure");
 @@ -211,7 +212,7 @@
      error("your server binary `$httpd'.");
      exit 1;
index 91d96dff2c4851e676c96802007676112a348f27..2a434dcc7e62870a1cc4d4a414f410a96448edc6 100644 (file)
@@ -1,11 +1,10 @@
 diff -urN httpd-2.0.45.org/config.layout httpd-2.0.45/config.layout
 --- httpd-2.0.45.org/config.layout     Thu Apr  3 09:27:42 2003
 +++ httpd-2.0.45/config.layout Thu Apr  3 09:27:59 2003
-@@ -298,3 +298,28 @@
-     installbuilddir: ${prefix}/etc/apache2/build
-     errordir:      ${datadir}/error
+@@ -347,3 +347,27 @@
+     proxycachedir: ${localstatedir}/proxy
  </Layout>
-+
 +# PLD layout
 +<Layout PLD>
 +    prefix:        /usr
@@ -30,3 +29,4 @@ diff -urN httpd-2.0.45.org/config.layout httpd-2.0.45/config.layout
 +    proxycachedir: /var/cache/httpd
 +    installbuilddir: ${libexecdir}/build
 +</Layout>
+
diff --git a/apache-paths.patch b/apache-paths.patch
deleted file mode 100644 (file)
index 65bd1e0..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
---- httpd-2.2.0/docs/cgi-examples/printenv.save        2005-12-26 23:09:55.000000000 +0200
-+++ httpd-2.2.0/docs/cgi-examples/printenv     2005-12-26 23:09:55.000000000 +0200
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#!/usr/bin/perl
- ##
- ##  printenv -- demo CGI program which just prints its environment
- ##
index d50b484f0a86707f89b3fd18389a99511ab7c452..9e68c45cc58784ce4e70bea86e614a64bfabf3ed 100644 (file)
@@ -31,14 +31,6 @@ diff -urNp httpd-2.2.8.orig/support/suexec.c httpd-2.2.8/support/suexec.c
      struct stat dir_info;   /* directory info holder     */
      struct stat prg_info;   /* program info holder       */
  
-@@ -270,6 +286,7 @@ int main(int argc, char *argv[])
-     clean_env();
-     prog = argv[0];
-+
-     /*
-      * Check existence/validity of the UID of the user
-      * running this program.  Error out if invalid.
 @@ -382,8 +399,23 @@ int main(int argc, char *argv[])
      }
      else {
index 21aa0309e95a53bc818cc2bd6219cbf79735f359..e99879e5b9f6562a3461b366298ace4d761e67c7 100644 (file)
@@ -1,17 +1,14 @@
 --- httpd-2.2.0/configure.in~  2005-12-18 02:38:31.000000000 +0200
 +++ httpd-2.2.0/configure.in   2005-12-18 02:40:04.000000000 +0200
-@@ -584,9 +584,9 @@
-               [Listening sockets are non-blocking when there are more than 1])
+@@ -751,7 +751,7 @@
+               [Allow IPv4 connections on IPv6 listening sockets])
  fi
  
 -APACHE_FAST_OUTPUT(Makefile modules/Makefile srclib/Makefile) 
-+APACHE_FAST_OUTPUT(Makefile modules/Makefile)
++APACHE_FAST_OUTPUT(Makefile modules/Makefile) 
  APACHE_FAST_OUTPUT(os/Makefile server/Makefile)
--APACHE_FAST_OUTPUT(support/Makefile srclib/pcre/Makefile)
-+APACHE_FAST_OUTPUT(support/Makefile)
+ APACHE_FAST_OUTPUT(support/Makefile)
  
- if test -d ./test; then
-     APACHE_FAST_OUTPUT(test/Makefile)
 --- httpd-2.2.0/Makefile.in    2005-12-18 02:41:25.000000000 +0200
 +++ httpd-2.2.0/Makefile.in    2005-12-18 02:38:31.000000000 +0200
 @@ -1,5 +1,5 @@
index 887911d30517f0e97fc47833f1b843e1f11af7b3..ba6da25284ad6e5ec91fbb7a00d1df5af53f57dc 100644 (file)
@@ -1,11 +1,12 @@
 --- httpd-2.0.48/server/listen.c.orig  Mon Mar 31 06:30:52 2003
 +++ httpd-2.0.48/server/listen.c       Wed Mar  3 12:05:09 2004
-@@ -120,7 +120,7 @@
+@@ -76,7 +76,7 @@
  #if APR_HAVE_IPV6
      if (server->bind_addr->family == APR_INET6) {
          stat = apr_socket_opt_set(s, APR_IPV6_V6ONLY, v6only_setting);
 -        if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) {
 +        if (stat != APR_SUCCESS && stat != APR_ENOTIMPL && stat != ENOPROTOOPT) {
-             ap_log_perror(APLOG_MARK, APLOG_CRIT, stat, p,
+             ap_log_perror(APLOG_MARK, APLOG_CRIT, stat, p, APLOGNO(00069)
                            "make_sock: for address %pI, apr_socket_opt_set: "
                            "(IPV6_V6ONLY)",
+
index bdbd177a8a0e179440893982c504d4e560762f59..576071062883f8f794af8ff852e93331da64fa05 100644 (file)
@@ -24,7 +24,7 @@
 %bcond_with    bucketeer       # debug one
 
 # this is internal macro, don't change to %%apache_modules_api
-%define                _apache_modules_api 20051115
+%define                _apache_modules_api 20120211
 
 %if "%{pld_release}" == "ac"
 %define                openssl_ver     0.9.7d
@@ -43,12 +43,12 @@ Summary(pt_BR.UTF-8):       Servidor HTTPD para prover serviços WWW
 Summary(ru.UTF-8):     Самый популярный веб-сервер
 Summary(tr.UTF-8):     Lider WWW tarayıcı
 Name:          apache
-Version:       2.2.22
-Release:       4
+Version:       2.4.1
+Release:       0.1
 License:       Apache v2.0
 Group:         Networking/Daemons/HTTP
 Source0:       http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
-# Source0-md5: d77fa5af23df96a8af68ea8114fa6ce1
+# Source0-md5: 4366afbea8149ca125af01fd59a2f8a2
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       %{name}.sysconfig
@@ -85,13 +85,10 @@ Patch1:             %{name}-layout.patch
 Patch2:                %{name}-suexec.patch
 Patch3:                %{name}-branding.patch
 Patch4:                %{name}-apr.patch
-# what about this? it isn't applied...
-Patch6:                httpd-2.0.40-xfsz.patch
+
 Patch7:                %{name}-syslibs.patch
-Patch8:                httpd-2.0.45-encode.patch
-Patch9:                %{name}-paths.patch
+
 Patch10:       httpd-2.0.46-dav401dest.patch
-Patch12:       httpd-2.0.46-sslmutex.patch
 Patch14:       httpd-2.0.48-corelimit.patch
 Patch15:       httpd-2.0.48-debuglog.patch
 Patch18:       %{name}-v6only-ENOPROTOOPT.patch
@@ -1780,10 +1777,9 @@ Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 %patch3 -p1
 %patch4 -p1
 %patch7 -p1
-%patch8 -p1
-%patch9 -p1
+
 %patch10 -p1
-%patch12 -p1
+
 %patch14 -p1
 %patch15 -p1
 %patch18 -p1
@@ -1791,14 +1787,14 @@ Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 %patch20 -p1
 %patch23 -p1
 %patch24 -p1
-%patch25 -p1
-%patch26 -p1
-%patch28 -p1
+# ?
+#%patch25 -p1
+# ?
+#%patch26 -p1
+# probably drop
+#%patch28 -p1
 %patch29 -p1
 
-# using system apr, apr-util and pcre
-%{__rm} -r srclib/{apr,apr-util,pcre}
-
 # sanity check
 MODULES_API=`awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' include/ap_mmn.h`
 if [ "$MODULES_API" != "%_apache_modules_api" ]; then
diff --git a/httpd-2.0.45-encode.patch b/httpd-2.0.45-encode.patch
deleted file mode 100644 (file)
index 82d9a0b..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-* don't HTML-escape the SERVER_NAME variable
-* do escape SERVER_NAME in error docs
-* remove dates from error pages (#86474), since they won't be in the right
-language
-
-diff -ur httpd-2.2.0.org/docs/error/include/bottom.html httpd-2.2.0/docs/error/include/bottom.html
---- httpd-2.2.0.org/docs/error/include/bottom.html     2004-11-20 21:16:24.000000000 +0100
-+++ httpd-2.2.0/docs/error/include/bottom.html 2005-12-02 23:04:57.540690250 +0100
-@@ -5,10 +5,8 @@
- <h2>Error <!--#echo encoding="none" var="REDIRECT_STATUS" --></h2>
- <address>
--  <a href="/"><!--#echo var="SERVER_NAME" --></a><br />
--  <!--#config timefmt="%c" -->
--  <span><!--#echo var="DATE_LOCAL" --><br />
--  <!--#echo var="SERVER_SOFTWARE" --></span>
-+  <a href="/"><!--#echo encoding="entity" var="SERVER_NAME" --></a><br />
-+  <span><!--#echo var="SERVER_SOFTWARE" --></span>
- </address>
- </body>
- </html>
-diff -ur httpd-2.2.0.org/server/util_script.c httpd-2.2.0/server/util_script.c
---- httpd-2.2.0.org/server/util_script.c       2005-11-10 16:20:05.000000000 +0100
-+++ httpd-2.2.0/server/util_script.c   2005-12-02 23:04:50.848272000 +0100
-@@ -224,8 +224,7 @@
-     apr_table_addn(e, "SERVER_SIGNATURE", ap_psignature("", r));
-     apr_table_addn(e, "SERVER_SOFTWARE", ap_get_server_banner());
--    apr_table_addn(e, "SERVER_NAME",
--                   ap_escape_html(r->pool, ap_get_server_name(r)));
-+    apr_table_addn(e, "SERVER_NAME", ap_get_server_name(r));
-     apr_table_addn(e, "SERVER_ADDR", r->connection->local_ip);  /* Apache */
-     apr_table_addn(e, "SERVER_PORT",
-                   apr_psprintf(r->pool, "%u", ap_get_server_port(r)));
diff --git a/httpd-2.0.46-sslmutex.patch b/httpd-2.0.46-sslmutex.patch
deleted file mode 100644 (file)
index dadc6e0..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -urbB httpd-2.2.0.org/modules/ssl/ssl_engine_mutex.c httpd-2.2.0/modules/ssl/ssl_engine_mutex.c
---- httpd-2.2.0.org/modules/ssl/ssl_engine_mutex.c     2005-11-10 16:20:05.000000000 +0100
-+++ httpd-2.2.0/modules/ssl/ssl_engine_mutex.c 2005-12-02 23:11:09.183916500 +0100
-@@ -45,6 +45,10 @@
-     if (mc->pMutex) {
-         return TRUE;
-     }
-+
-+    if (mc->szMutexFile)
-+          apr_file_remove(mc->szMutexFile, p);
-+
-     if ((rv = apr_global_mutex_create(&mc->pMutex, mc->szMutexFile,
-                                       mc->nMutexMech, s->process->pool))
-             != APR_SUCCESS) {
index 1496b4ba64eb2fb4bf4eaa51f46a900d95cc7cf4..9c7c368f0f6106ec45f5e80c4b45dc28f1f2c070 100644 (file)
@@ -4,10 +4,10 @@ is configured.
 
 --- httpd-2.0.48/server/core.c.corelimit
 +++ httpd-2.0.48/server/core.c
-@@ -4233,6 +4233,25 @@
-     ap_set_version(pconf);
+@@ -4424,6 +4424,25 @@
+     set_banner(pconf);
      ap_setup_make_content_type(pconf);
+     ap_setup_auth_internal(ptemp);
 +
 +#ifdef RLIMIT_CORE
 +    if (ap_coredumpdir_configured) {
@@ -27,6 +27,7 @@ is configured.
 +    }
 +#endif
 +
-     return OK;
- }
+     if (!sys_privileges) {
+         ap_log_error(APLOG_MARK, APLOG_CRIT, 0, NULL, APLOGNO(00136)
+                      "Server MUST relinquish startup privileges before "
+
index 6fac4e20f47abee3447efc02d9c3d80753347009..06c55a165f6a23951dbda022438b5a847d3f8cd0 100644 (file)
@@ -11,15 +11,16 @@ Note this patch depends on the pie patch.
 
 --- httpd-2.0.48/include/http_log.h.debuglog
 +++ httpd-2.0.48/include/http_log.h
-@@ -130,7 +130,11 @@
- extern int AP_DECLARE_DATA ap_default_loglevel;
+@@ -280,7 +280,11 @@
+  * @see ap_log_rerror
+  * @see ap_log_cserror
+  */
 +#ifdef AP_FNAME
-+#define APLOG_MARK      AP_FNAME,__LINE__
++#define APLOG_MARK     AP_FNAME,__LINE__,APLOG_MODULE_INDEX
 +#else
- #define APLOG_MARK    __FILE__,__LINE__
+ #define APLOG_MARK     __FILE__,__LINE__,APLOG_MODULE_INDEX
 +#endif
  
  /**
   * Set up for logging to stderr.
+
This page took 2.651342 seconds and 4 git commands to generate.