apache-php4.patch 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Index: apache_1.3.37/conf/mime.types
  2. --- apache_1.3.37/conf/mime.types.orig 2004-11-24 20:10:19 +0100
  3. +++ apache_1.3.37/conf/mime.types 2006-09-10 14:51:11 +0200
  4. @@ -265,6 +265,22 @@
  5. application/vnd.novadigm.edm
  6. application/vnd.novadigm.edx
  7. application/vnd.novadigm.ext
  8. +application/vnd.oasis.opendocument.text odt
  9. +application/vnd.oasis.opendocument.spreadsheet ods
  10. +application/vnd.oasis.opendocument.presentation odp
  11. +application/vnd.oasis.opendocument.graphics odg
  12. +application/vnd.oasis.opendocument.chart odc
  13. +application/vnd.oasis.opendocument.formula odf
  14. +application/vnd.oasis.opendocument.image odi
  15. +application/vnd.oasis.opendocument.text-template ott
  16. +application/vnd.oasis.opendocument.spreadsheet-template ots
  17. +application/vnd.oasis.opendocument.presentation-template otp
  18. +application/vnd.oasis.opendocument.graphics-template otg
  19. +application/vnd.oasis.opendocument.chart-template otc
  20. +application/vnd.oasis.opendocument.formula-template oft
  21. +application/vnd.oasis.opendocument.image-template oti
  22. +application/vnd.oasis.opendocument.text-master odm
  23. +application/vnd.oasis.opendocument.text-web oth
  24. application/vnd.obn
  25. application/vnd.osa.netdeploy
  26. application/vnd.palm
  27. Index: apache_1.3.37/configure
  28. --- apache_1.3.37/configure.orig 2006-07-12 10:16:05 +0200
  29. +++ apache_1.3.37/configure 2006-09-10 14:49:50 +0200
  30. @@ -1175,10 +1175,10 @@
  31. ## or we cannot support the case where the relative
  32. ## path is just the emtpy one, i.e. ""]
  33. ##
  34. -runtimedir_relative=`echo $runtimedir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  35. -logfiledir_relative=`echo $logfiledir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  36. -sysconfdir_relative=`echo $sysconfdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  37. -libexecdir_relative=`echo $libexecdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  38. +runtimedir_relative="$runtimedir/"
  39. +logfiledir_relative="$logfiledir/"
  40. +sysconfdir_relative="$sysconfdir/"
  41. +libexecdir_relative="$libexecdir/"
  42. ##
  43. ## check and debug
  44. Index: apache_1.3.37/src/Configure
  45. --- apache_1.3.37/src/Configure.orig 2006-07-12 10:16:05 +0200
  46. +++ apache_1.3.37/src/Configure 2006-09-10 14:49:50 +0200
  47. @@ -1158,14 +1158,20 @@
  48. SHLIB_SUFFIX_DEPTH=0
  49. ;;
  50. *-solaris2*)
  51. - if [ "x`$CC -v 2>&1 | grep gcc`" != "x" ]; then
  52. - CFLAGS_SHLIB="-fPIC"
  53. - else
  54. - CFLAGS_SHLIB="-KPIC"
  55. - fi
  56. + CFLAGS_SHLIB="-KPIC"
  57. LDFLAGS_SHLIB="-G"
  58. - LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  59. LDFLAGS_SHLIB_EXPORT=""
  60. + for word in `$CC -v 2>&1` ; do
  61. + case $word in
  62. + --with-gnu-ld)
  63. + LDFLAGS_SHLIB="-shared"
  64. + ;;
  65. + *gcc*)
  66. + CFLAGS_SHLIB="-fPIC"
  67. + ;;
  68. + esac
  69. + done
  70. + LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  71. SHLIB_SUFFIX_DEPTH=1
  72. ;;
  73. *-sunos4*)
  74. @@ -1874,27 +1880,12 @@
  75. # set the default, based on whether expat-lite is bundled. if it is present,
  76. # then we can always include expat.
  77. if [ "x$RULE_EXPAT" = "xdefault" ]; then
  78. - if [ -d ./lib/expat-lite/ ]; then
  79. - RULE_EXPAT=yes
  80. - else
  81. - RULE_EXPAT=no
  82. - fi
  83. + RULE_EXPAT=no
  84. fi
  85. if [ "x$RULE_EXPAT" = "xyes" ]; then
  86. - if ./helpers/TestCompile lib expat; then
  87. - echo " + using system Expat"
  88. - LIBS="$LIBS -lexpat"
  89. - else
  90. - if [ ! -d ./lib/expat-lite/ ]; then
  91. - echo "ERROR: RULE_EXPAT set to \"yes\" but is not available."
  92. - exit 1
  93. - fi
  94. - echo " + using builtin Expat"
  95. - EXPATLIB="lib/expat-lite/libexpat.a"
  96. - APLIBDIRS="expat-lite $APLIBDIRS"
  97. - CFLAGS="$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite"
  98. - fi
  99. + echo " + using system Expat"
  100. + LIBS="$LIBS -lexpat"
  101. fi
  102. ####################################################################
  103. Index: apache_1.3.37/src/main/util_script.c
  104. --- apache_1.3.37/src/main/util_script.c.orig 2006-07-12 10:16:05 +0200
  105. +++ apache_1.3.37/src/main/util_script.c 2006-09-10 14:49:50 +0200
  106. @@ -204,6 +204,7 @@
  107. }
  108. }
  109. + if (!(env_path = ap_pstrdup(r->pool, ap_table_get(r->subprocess_env, "PATH"))))
  110. if (!(env_path = ap_pstrdup(r->pool, getenv("PATH")))) {
  111. env_path = DEFAULT_PATH;
  112. }