Blame SOURCES/mariadb-groonga.patch

a41a5b
# Fixing conflict with groonga package
a41a5b
# https://bugzilla.redhat.com/show_bug.cgi?id=1763287
a41a5b
a41a5b
--- mariadb-10.3.18/storage/mroonga/vendor/groonga/CMakeLists.txt.withoutoption	2019-11-11 14:01:07.762595716 +0100
a41a5b
+++ mariadb-10.3.18/storage/mroonga/vendor/groonga/CMakeLists.txt	2019-11-11 14:33:05.224012458 +0100
a41a5b
@@ -86,7 +86,9 @@
a41a5b
 set(INCLUDE_DIR "include")
a41a5b
 set(GRN_INCLUDE_DIR "include/groonga")
a41a5b
 set(DATA_DIR "share")
a41a5b
-set(GRN_DATA_DIR "${DATA_DIR}/${GRN_PROJECT_NAME}")
a41a5b
+if(NOT DEFINED GRN_DATA_DIR)
a41a5b
+    set(GRN_DATA_DIR "${DATA_DIR}/${GRN_PROJECT_NAME}")
a41a5b
+endif()
a41a5b
 set(CONFIG_DIR "etc")
a41a5b
 set(GRN_CONFIG_DIR "${CONFIG_DIR}/${GRN_PROJECT_NAME}")
a41a5b
 set(GRN_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${GRN_CONFIG_DIR}/groonga.conf")
a41a5b
a41a5b
--- mariadb-10.3.18/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt.withoutoption	2019-11-11 14:34:22.661005715 +0100
a41a5b
+++ mariadb-10.3.18/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt	2019-11-11 14:35:59.962244120 +0100
a41a5b
@@ -16,7 +16,9 @@
a41a5b
 # MA 02110-1335  USA
a41a5b
 
a41a5b
 cmake_minimum_required(VERSION 2.6)
a41a5b
-set(GROONGA_NORMALIZER_MYSQL_PROJECT_NAME "groonga-normalizer-mysql")
a41a5b
+if (NOT DEFINED GROONGA_NORMALIZER_MYSQL_PROJECT_NAME)
a41a5b
+    set(GROONGA_NORMALIZER_MYSQL_PROJECT_NAME "groonga-normalizer-mysql")
a41a5b
+endif()
a41a5b
 project("${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}")
a41a5b
 
a41a5b
 if(DEFINED GROONGA_NORMALIZER_MYSQL_EMBED)