ocfs2-tools-1.6.4-asneeded.patch 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --- a/configure.in 2011-01-19 20:43:35.000000000 +0100
  2. +++ b/configure.in 2012-02-21 11:14:51.047974999 +0100
  3. @@ -265,7 +265,6 @@
  4. cpg_package=openais
  5. fi
  6. TRY_PATH="$AIS_TRY_PATH"
  7. - AC_MSG_CHECKING([for cpg_initialize in -lcpg])
  8. while test "x$TRY_PATH" != "x"; do
  9. TRY="`echo $TRY_PATH | cut -f1 -d:`"
  10. NEW_TRY_PATH="`echo $TRY_PATH | cut -f2- -d:`"
  11. @@ -281,9 +280,8 @@
  12. # TRY="$TRY"
  13. saved_LDFLAGS="$LDFLAGS"
  14. - LDFLAGS="$LDFLAGS $TRY -lcpg"
  15. - AC_LINK_IFELSE([AC_LANG_CALL([], [cpg_initialize])],
  16. - cpg_found=yes)
  17. + LDFLAGS="$LDFLAGS $TRY"
  18. + AC_SEARCH_LIBS([cpg_initialize], [cpg], [cpg_found=yes], [], [])
  19. LDFLAGS="$saved_LDFLAGS"
  20. if test "x$cpg_found" = "xyes"; then
  21. @@ -292,10 +290,7 @@
  22. fi
  23. done
  24. fi
  25. -if test "x$cpg_found" = "xyes"; then
  26. - AC_MSG_RESULT(yes)
  27. -else
  28. - AC_MSG_RESULT(no)
  29. +if test "x$cpg_found" = "xno"; then
  30. AC_MSG_WARN([libcpg not found, ocfs2_controld will not be built])
  31. fi
  32. AC_SUBST(CPG_LDFLAGS)
  33. @@ -309,7 +304,6 @@
  34. if test "x$ckpt_found" = "xyes"; then
  35. ckpt_found=
  36. TRY_PATH="$AIS_TRY_PATH"
  37. - AC_MSG_CHECKING([for saCkptInitialize in -lSaCkpt])
  38. while test "x$TRY_PATH" != "x"; do
  39. TRY="`echo $TRY_PATH | cut -f1 -d:`"
  40. NEW_TRY_PATH="`echo $TRY_PATH | cut -f2- -d:`"
  41. @@ -325,9 +319,8 @@
  42. # TRY="$TRY"
  43. saved_LDFLAGS="$LDFLAGS"
  44. - LDFLAGS="$LDFLAGS $TRY -lSaCkpt"
  45. - AC_LINK_IFELSE([AC_LANG_CALL([], [saCkptInitialize])],
  46. - ckpt_found=yes)
  47. + LDFLAGS="$LDFLAGS $TRY"
  48. + AC_SEARCH_LIBS([saCkptInitialize], [SaCkpt], [ckpt_found=yes], [], [])
  49. LDFLAGS="$saved_LDFLAGS"
  50. if test "x$ckpt_found" = "xyes"; then
  51. @@ -336,10 +329,7 @@
  52. fi
  53. done
  54. fi
  55. -if test "x$ckpt_found" = "xyes"; then
  56. - AC_MSG_RESULT(yes)
  57. -else
  58. - AC_MSG_RESULT(no)
  59. +if test "x$ckpt_found" = "xno"; then
  60. AC_MSG_WARN([libSaCkpt not found, ocfs2_controld will not be built])
  61. fi
  62. AC_SUBST(AIS_LDFLAGS)
  63. --- a/ocfs2_controld/Makefile 2012-02-21 11:49:36.248974932 +0100
  64. +++ b/ocfs2_controld/Makefile 2012-02-21 11:49:47.943974980 +0100
  65. @@ -14,7 +14,7 @@
  66. ifneq ($(BUILD_PCMK_SUPPORT),)
  67. SBIN_PROGRAMS += ocfs2_controld.pcmk
  68. # Some pacemaker headers which pacemaker.c includes want this.
  69. -PCMK_INCLUDES = -I/usr/include/pacemaker -I/usr/include/heartbeat/ $(GLIB_CFLAGS)
  70. +PCMK_INCLUDES = -I/usr/include/pacemaker -I/usr/include/heartbeat/ `pkg-config --cflags libxml-2.0` $(GLIB_CFLAGS)
  71. endif
  72. INCLUDES = -I$(TOPDIR)/include -I. $(PCMK_INCLUDES)