percona-xtrabackup-2.4.6-fix-gcc6-isystem.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Do not use -isystem to add headers, as they break GCC 6's header wrapping.
  2. See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
  3. --- a/client/base/CMakeLists.txt
  4. +++ b/client/base/CMakeLists.txt
  5. @@ -49,7 +49,7 @@
  6. mutex.cc
  7. mysql_query_runner.cc
  8. show_variable_query_extractor.cc
  9. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  10. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  11. )
  12. TARGET_LINK_LIBRARIES(client_base mysqlclient)
  13. --- a/client/CMakeLists.txt
  14. +++ b/client/CMakeLists.txt
  15. @@ -52,7 +52,7 @@
  16. upgrade/program.cc
  17. )
  18. ADD_COMPILE_FLAGS(
  19. - upgrade/program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  20. + upgrade/program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  21. )
  22. TARGET_LINK_LIBRARIES(mysql_upgrade mysqlclient client_base mysqlcheck_core)
  23. ADD_DEPENDENCIES(mysql_upgrade GenFixPrivs GenSysSchema)
  24. --- a/client/dump/CMakeLists.txt
  25. +++ b/client/dump/CMakeLists.txt
  26. @@ -68,7 +68,7 @@
  27. ADD_COMPILE_FLAGS(
  28. ${BOOST_LIB_SOURCES}
  29. ${BOOST_THREAD_SOURCES}
  30. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  31. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  32. )
  33. IF(HAVE_clock_gettime_IN_rt)
  34. @@ -163,7 +163,7 @@
  35. ADD_COMPILE_FLAGS(
  36. ${MYSQLPUMP_LIB_SOURCES}
  37. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  38. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  39. )
  40. # Files that use Boost sources that trigger compilation warnings
  41. @@ -199,7 +199,7 @@
  42. )
  43. MYSQL_ADD_EXECUTABLE(mysqlpump program.cc)
  44. ADD_COMPILE_FLAGS(
  45. - program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  46. + program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  47. )
  48. TARGET_LINK_LIBRARIES(mysqlpump mysqlpump_lib ${LOCAL_BOOST_LIB})
  49. --- a/libmysqld/CMakeLists.txt
  50. +++ b/libmysqld/CMakeLists.txt
  51. @@ -115,7 +115,7 @@
  52. ../sql/item_geofunc_setops.cc
  53. ../sql/item_json_func.cc
  54. ../sql/spatial.cc
  55. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  56. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  57. )
  58. # Fixes "C1128: number of sections exceeded object file format limit" in MSVC /MD
  59. --- a/sql/CMakeLists.txt
  60. +++ b/sql/CMakeLists.txt
  61. @@ -309,7 +309,7 @@
  62. item_geofunc_setops.cc
  63. item_json_func.cc
  64. spatial.cc
  65. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  66. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  67. )
  68. # Fixes "C1128: number of sections exceeded object file format limit" in MSVC /MD
  69. --- a/storage/innobase/xtrabackup/src/CMakeLists.txt
  70. +++ b/storage/innobase/xtrabackup/src/CMakeLists.txt
  71. @@ -68,7 +68,7 @@
  72. ../../../../plugin/keyring/keyring_key.cc
  73. ../../../../plugin/keyring/buffered_file_io.cc
  74. ../../../../plugin/keyring/keys_container.cc
  75. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  76. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  77. )
  78. ADD_COMPILE_FLAGS(
  79. --- a/unittest/gunit/CMakeLists.txt
  80. +++ b/unittest/gunit/CMakeLists.txt
  81. @@ -378,7 +378,7 @@
  82. ENDIF()
  83. ADD_COMPILE_FLAGS(
  84. ${MERGE_SMALL_TESTS}
  85. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  86. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  87. )
  88. INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
  89. @@ -453,11 +453,11 @@
  90. ENDIF()
  91. ADD_COMPILE_FLAGS(
  92. bounded_queue-t.cc
  93. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  94. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  95. )
  96. ADD_COMPILE_FLAGS(
  97. pump_object_filter-t.cc
  98. - COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
  99. + COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
  100. )
  101. FOREACH(test ${SERVER_TESTS})