]> git.pld-linux.org Git - packages/apache.git/commitdiff
- updated patches to 2.3.8, does not fully compile
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 1 Sep 2010 10:50:37 +0000 (10:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-apxs.patch -> 1.9
    apache-paths.patch -> 1.2
    apache.spec -> 1.602
    httpd-2.0.45-encode.patch -> 1.4
    httpd-2.0.46-sslmutex.patch -> 1.3
    httpd-2.0.48-corelimit.patch -> 1.2
    httpd-2.0.48-debuglog.patch -> 1.2
    httpd-2.2.x-mod_ssl-sessioncaching.patch -> 1.3

apache-apxs.patch
apache-paths.patch
apache.spec
httpd-2.0.45-encode.patch
httpd-2.0.46-sslmutex.patch
httpd-2.0.48-corelimit.patch
httpd-2.0.48-debuglog.patch
httpd-2.2.x-mod_ssl-sessioncaching.patch

index 7ee05ad5f39e894e694ab40a89bf2e82870cce7d..9cabf9c93c9efbae14b3b43165ac08839c9806b3 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;
- }
--
-+}
- sub get_config_vars{
-     my ($file, $rh_config) = @_;
 @@ -479,8 +480,8 @@
          $t =~ s|\.[^./\\]+$|\.so|;
          if ($opt_i) {
index 65bd1e052fc5b4092d6d0fd4661d7e66dd74737c..53f9db360f9999fd4be321cf93dbac525eaa77af 100644 (file)
@@ -1,8 +1,12 @@
---- 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
+--- httpd-2.3.8/docs/cgi-examples/printenv~    2008-09-06 23:26:15.000000000 +0300
++++ httpd-2.3.8/docs/cgi-examples/printenv     2010-09-01 13:14:05.820581537 +0300
+@@ -1,8 +1,4 @@
+-#
+-
+-# To permit this cgi, replace # on the first line above with the
+-# appropriate #!/path/to/perl shebang, and set this script executable
+-# with chmod 755.
 +#!/usr/bin/perl
- ##
- ##  printenv -- demo CGI program which just prints its environment
- ##
+ #
+ # Note that it is subject to cross site scripting attacks on MS IE
+ # and any other browser which fails to honor RFC2616, so never use
index 37d43caf023563985561079f8574f0b3254708dd..d259d01f25cb93b8f40deac1f92e8bcad42265aa 100644 (file)
@@ -1,4 +1,3 @@
-# # TODO:
 # - config examples for mod_*
 # - --with-suexec-uidmin=500 or =1000 ?
 # - subpackages for MPMs
 %bcond_without event           # event MPM
 %bcond_with    distcache       # distcache support
 %bcond_with    bucketeer       # debug one
-#
-%include       /usr/lib/rpm/macros.perl
+
 # this is internal macro, don't change to %%apache_modules_api
-%define                _apache_modules_api 20051115
+%define                _apache_modules_api 20100723
 
 %if "%{pld_release}" != "ac"
 %define                openssl_ver     0.9.8i
 %else
 %define                openssl_ver     0.9.7d
 %endif
+%include       /usr/lib/rpm/macros.perl
 Summary:       The most widely used Web server on the Internet
 Summary(de.UTF-8):     Leading World Wide Web-Server
 Summary(es.UTF-8):     Servidor HTTPD para proveer servicios WWW
@@ -40,12 +39,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.16
-Release:       1
+Version:       2.3.8
+Release:       0.1
 License:       Apache v2.0
 Group:         Networking/Daemons/HTTP
 Source0:       http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
-# Source0-md5: 7f33f2c8b213ad758c009ae46d2795ed
+# Source0-md5: 275b3dea795edb19f74470ff9b591ccd
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       %{name}.sysconfig
@@ -82,7 +81,7 @@ 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
+#Patch7:               %{name}-syslibs.patch
 Patch8:                httpd-2.0.45-encode.patch
 Patch9:                %{name}-paths.patch
 Patch10:       httpd-2.0.46-dav401dest.patch
@@ -1759,7 +1758,7 @@ Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch7 -p1
+#%patch7 -p1
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
@@ -1776,7 +1775,7 @@ Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 %patch26 -p1
 
 # using system apr, apr-util and pcre
-rm -rf srclib/{apr,apr-util,pcre}
+#rm -rf srclib/{apr,apr-util,pcre}
 
 # sanity check
 MODULES_API=`awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' include/ap_mmn.h`
index 82d9a0b5afba3f90944c4cf7ff02cdd7be6f6fd0..e875449e12022e997b63a520db2fa103b1337968 100644 (file)
@@ -3,23 +3,17 @@
 * 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 @@
+--- httpd-2.3.8/docs/error/include/bottom.html~        2007-07-31 22:49:08.000000000 +0300
++++ httpd-2.3.8/docs/error/include/bottom.html 2010-09-01 13:12:26.494207986 +0300
+@@ -5,7 +5,7 @@
  
  <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>
+   <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 @@
index dadc6e0050bfea5f590d9212ede3751a1a892c7d..28ca2b7d6f299819952bd6f824aee74892c13da1 100644 (file)
@@ -1,14 +1,12 @@
-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) {
+--- httpd-2.3.8/modules/ssl/ssl_engine_mutex.c~        2010-05-04 20:40:43.000000000 +0300
++++ httpd-2.3.8/modules/ssl/ssl_engine_mutex.c 2010-09-01 13:15:13.397109981 +0300
+@@ -47,6 +47,9 @@
          return TRUE;
      }
-+
 +    if (mc->szMutexFile)
-+          apr_file_remove(mc->szMutexFile, p);
++        apr_file_remove(mc->szMutexFile, p);
 +
-     if ((rv = apr_global_mutex_create(&mc->pMutex, mc->szMutexFile,
-                                       mc->nMutexMech, s->process->pool))
+     if ((rv = ap_global_mutex_create(&mc->pMutex, NULL, SSL_CACHE_MUTEX_TYPE,
+                                      NULL, s, s->process->pool, 0))
              != APR_SUCCESS) {
index 1496b4ba64eb2fb4bf4eaa51f46a900d95cc7cf4..b0c48776eb7f49c75b95da63da5a60d584e6bb4d 100644 (file)
@@ -2,11 +2,11 @@
 Automatically raise the core file size limit if CoreDumpDirectory
 is configured.
 
---- httpd-2.0.48/server/core.c.corelimit
-+++ httpd-2.0.48/server/core.c
-@@ -4233,6 +4233,25 @@
+--- httpd-2.3.8/server/core.c~ 2010-09-01 13:15:44.000000000 +0300
++++ httpd-2.3.8/server/core.c  2010-09-01 13:16:25.533795195 +0300
+@@ -3646,6 +3646,25 @@
  
-     ap_set_version(pconf);
+     set_banner(pconf);
      ap_setup_make_content_type(pconf);
 +
 +#ifdef RLIMIT_CORE
@@ -27,6 +27,6 @@ is configured.
 +    }
 +#endif
 +
-     return OK;
- }
+     ap_setup_auth_internal(ptemp);
+     if (!sys_privileges) {
+         ap_log_error(APLOG_MARK, APLOG_CRIT, 0, NULL,
index 6fac4e20f47abee3447efc02d9c3d80753347009..d2b7aa955fd046243e253a18e35bb5b059547cff 100644 (file)
@@ -9,16 +9,16 @@ go upstream.
 
 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 @@
+--- httpd-2.3.8/include/http_log.h~    2010-06-14 22:59:05.000000000 +0300
++++ httpd-2.3.8/include/http_log.h     2010-09-01 13:18:19.608547664 +0300
+@@ -213,7 +213,11 @@
  
  extern int AP_DECLARE_DATA ap_default_loglevel;
  
 +#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
  
  /**
index f0ee0a36a104789a0a548b8ee48a24c1466b61eb..c4441250f347bfeb4c3896580b907ff165e027b6 100644 (file)
@@ -1,17 +1,15 @@
-Index: httpd-2.2.x/modules/ssl/ssl_private.h
-===================================================================
---- httpd-2.2.x/modules/ssl/ssl_private.h      (revision 833672)
-+++ httpd-2.2.x/modules/ssl/ssl_private.h      (working copy)
-@@ -395,6 +395,9 @@ typedef struct {
+--- httpd-2.3.8/modules/ssl/ssl_private.h~     2010-09-01 13:21:44.000000000 +0300
++++ httpd-2.3.8/modules/ssl/ssl_private.h      2010-09-01 13:22:12.923733895 +0300
+@@ -394,6 +394,9 @@
  #if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)
      const char     *szCryptoDevice;
  #endif
 +#ifndef OPENSSL_NO_TLSEXT
 +    ssl_enabled_t  session_tickets_enabled;
 +#endif
-     struct {
-         void *pV1, *pV2, *pV3, *pV4, *pV5, *pV6, *pV7, *pV8, *pV9, *pV10;
-     } rCtx;
+ #ifdef HAVE_OCSP_STAPLING
+     const ap_socache_provider_t *stapling_cache;
 @@ -545,6 +548,7 @@ const char  *ssl_cmd_SSLRequire(cmd_parm
  const char  *ssl_cmd_SSLRenegBufferSize(cmd_parms *cmd, void *dcfg, const char *arg);
  const char  *ssl_cmd_SSLStrictSNIVHostCheck(cmd_parms *cmd, void *dcfg, int flag);
@@ -161,14 +159,12 @@ Index: httpd-2.2.x/modules/ssl/ssl_engine_kernel.c
  
          /*
           * Save the found server into our SSLConnRec for later
-Index: httpd-2.2.x/modules/ssl/mod_ssl.c
-===================================================================
---- httpd-2.2.x/modules/ssl/mod_ssl.c  (revision 833672)
-+++ httpd-2.2.x/modules/ssl/mod_ssl.c  (working copy)
-@@ -92,6 +92,8 @@ static const command_rec ssl_config_cmds
+--- httpd-2.3.8/modules/ssl/mod_ssl.c~ 2010-06-06 20:10:23.000000000 +0300
++++ httpd-2.3.8/modules/ssl/mod_ssl.c  2010-09-01 13:22:58.820804816 +0300
+@@ -69,6 +69,8 @@
      SSL_CMD_SRV(RandomSeed, TAKE23,
                  "SSL Pseudo Random Number Generator (PRNG) seeding source "
-                 "(`startup|connect builtin|file:/path|exec:/path [bytes]')")
+                 "('startup|connect builtin|file:/path|exec:/path [bytes]')")
 +    SSL_CMD_SRV(SessionTicketExtension, FLAG,
 +                "TLS Session Ticket extension support")
  
This page took 0.119822 seconds and 4 git commands to generate.