Blame SOURCES/mariadb-scripts.patch

f55c7d
We have some downstream patches and other scripts that include variables to
f55c7d
be expanded by cmake. Cmake needs to know about them, so adding them manually.
f55c7d
f55c7d
f55c7d
diff -up mariadb-10.2.8/scripts/CMakeLists.txt.p7 mariadb-10.2.8/scripts/CMakeLists.txt
f55c7d
--- mariadb-10.2.8/scripts/CMakeLists.txt.p7	2017-08-28 22:35:58.589879693 +0200
f55c7d
+++ mariadb-10.2.8/scripts/CMakeLists.txt	2017-08-28 22:34:10.463434154 +0200
f55c7d
@@ -338,6 +338,35 @@ ELSE()
f55c7d
      )
f55c7d
   ENDFOREACH()
f55c7d
 
f55c7d
+  # files for systemd
f55c7d
+  SET(SYSTEMD_SCRIPTS
f55c7d
+    mysql.tmpfiles.d
f55c7d
+    mysql.service
f55c7d
+    mysql@.service
f55c7d
+    mysql-prepare-db-dir
f55c7d
+    mysql-wait-ready
f55c7d
+    mysql-check-socket
f55c7d
+    mysql-check-upgrade
f55c7d
+    mysql-scripts-common
f55c7d
+    mysql_config_multilib
f55c7d
+    clustercheck
f55c7d
+    galera_new_cluster
f55c7d
+    mysql.init
f55c7d
+    my.cnf
f55c7d
+  )
f55c7d
+  FOREACH(file ${SYSTEMD_SCRIPTS})
f55c7d
+    IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh)
f55c7d
+      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh
f55c7d
+        ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
f55c7d
+    ELSEIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in)
f55c7d
+      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
f55c7d
+        ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
f55c7d
+    ELSE()
f55c7d
+      MESSAGE(FATAL_ERROR "Can not find ${file}.sh or ${file}.in in "
f55c7d
+        "${CMAKE_CURRENT_SOURCE_DIR}" )
f55c7d
+    ENDIF()
f55c7d
+  ENDFOREACH()
f55c7d
+
f55c7d
 ENDIF()
f55c7d
 
f55c7d
 # Install libgcc as  mylibgcc.a