apache.patch 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Index: apache_1.3.36/configure
  2. --- apache_1.3.36/configure.orig 2006-04-21 20:40:11 +0200
  3. +++ apache_1.3.36/configure 2006-04-30 19:30:09 +0200
  4. @@ -1174,10 +1174,10 @@
  5. ## or we cannot support the case where the relative
  6. ## path is just the emtpy one, i.e. ""]
  7. ##
  8. -runtimedir_relative=`echo $runtimedir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  9. -logfiledir_relative=`echo $logfiledir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  10. -sysconfdir_relative=`echo $sysconfdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  11. -libexecdir_relative=`echo $libexecdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  12. +runtimedir_relative="$runtimedir/"
  13. +logfiledir_relative="$logfiledir/"
  14. +sysconfdir_relative="$sysconfdir/"
  15. +libexecdir_relative="$libexecdir/"
  16. ##
  17. ## check and debug
  18. Index: apache_1.3.36/src/Configure
  19. --- apache_1.3.36/src/Configure.orig 2005-10-14 01:36:04 +0200
  20. +++ apache_1.3.36/src/Configure 2006-04-30 19:30:09 +0200
  21. @@ -1157,14 +1157,20 @@
  22. SHLIB_SUFFIX_DEPTH=0
  23. ;;
  24. *-solaris2*)
  25. - if [ "x`$CC -v 2>&1 | grep gcc`" != "x" ]; then
  26. - CFLAGS_SHLIB="-fPIC"
  27. - else
  28. - CFLAGS_SHLIB="-KPIC"
  29. - fi
  30. + CFLAGS_SHLIB="-KPIC"
  31. LDFLAGS_SHLIB="-G"
  32. - LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  33. LDFLAGS_SHLIB_EXPORT=""
  34. + for word in `$CC -v 2>&1` ; do
  35. + case $word in
  36. + --with-gnu-ld)
  37. + LDFLAGS_SHLIB="-shared"
  38. + ;;
  39. + *gcc*)
  40. + CFLAGS_SHLIB="-fPIC"
  41. + ;;
  42. + esac
  43. + done
  44. + LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  45. SHLIB_SUFFIX_DEPTH=1
  46. ;;
  47. *-sunos4*)
  48. @@ -1873,27 +1879,12 @@
  49. # set the default, based on whether expat-lite is bundled. if it is present,
  50. # then we can always include expat.
  51. if [ "x$RULE_EXPAT" = "xdefault" ]; then
  52. - if [ -d ./lib/expat-lite/ ]; then
  53. - RULE_EXPAT=yes
  54. - else
  55. - RULE_EXPAT=no
  56. - fi
  57. + RULE_EXPAT=no
  58. fi
  59. if [ "x$RULE_EXPAT" = "xyes" ]; then
  60. - if ./helpers/TestCompile lib expat; then
  61. - echo " + using system Expat"
  62. - LIBS="$LIBS -lexpat"
  63. - else
  64. - if [ ! -d ./lib/expat-lite/ ]; then
  65. - echo "ERROR: RULE_EXPAT set to \"yes\" but is not available."
  66. - exit 1
  67. - fi
  68. - echo " + using builtin Expat"
  69. - EXPATLIB="lib/expat-lite/libexpat.a"
  70. - APLIBDIRS="expat-lite $APLIBDIRS"
  71. - CFLAGS="$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite"
  72. - fi
  73. + echo " + using system Expat"
  74. + LIBS="$LIBS -lexpat"
  75. fi
  76. ####################################################################
  77. Index: apache_1.3.36/src/main/util_script.c
  78. --- apache_1.3.36/src/main/util_script.c.orig 2006-04-21 20:40:11 +0200
  79. +++ apache_1.3.36/src/main/util_script.c 2006-04-30 19:30:09 +0200
  80. @@ -203,6 +203,7 @@
  81. }
  82. }
  83. + if (!(env_path = ap_pstrdup(r->pool, ap_table_get(r->subprocess_env, "PATH"))))
  84. if (!(env_path = ap_pstrdup(r->pool, getenv("PATH")))) {
  85. env_path = DEFAULT_PATH;
  86. }