48ce0c2
The binary 'mariadb_config' produces its output as some concatenation on a prefix, path and suffix.
48ce0c2
The upstream tries to use one binary for all distros, but that does not work as it should for Fedora.
48ce0c2
48ce0c2
Often producing double prefixes and suffixes to some options.
48ce0c2
For example:
48ce0c2
#  --cflags        [-I/usr//usr/include/mysql -I/usr//usr/include/mysql/mysql]
48ce0c2
  
48ce0c2
48ce0c2
--- mariadb-connector-c-3.0.4-src/mariadb_config/mariadb_config.c.in	2018-04-24 12:22:12.000000000 +0200
48ce0c2
+++ mariadb-connector-c-3.0.4-src/mariadb_config/mariadb_config.c.in_patched	2018-04-26 13:05:49.737644735 +0200
48ce0c2
@@ -5,13 +5,13 @@
039fdbe
 
039fdbe
 static char *mariadb_progname;
039fdbe
 
039fdbe
-#define INCLUDE "-I@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@ -I@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@/mysql"
48ce0c2
-#define LIBS    "-L@CMAKE_INSTALL_PREFIX@/@INSTALL_LIBDIR@/ -lmariadb @extra_dynamic_LDFLAGS@"
039fdbe
+#define INCLUDE "-I@INSTALL_INCLUDEDIR@ -I@INSTALL_INCLUDEDIR@"
48ce0c2
+#define LIBS    "-L@INSTALL_LIBDIR@/ -lmariadb @extra_dynamic_LDFLAGS@"
039fdbe
 #define LIBS_SYS "@extra_dynamic_LDFLAGS@"
039fdbe
 #define CFLAGS  INCLUDE
921a542
 #define VERSION "@MARIADB_CLIENT_VERSION@"
921a542
 #define CC_VERSION "@CPACK_PACKAGE_VERSION@"
921a542
-#define PLUGIN_DIR "@CMAKE_INSTALL_PREFIX@/@INSTALL_PLUGINDIR@"
921a542
+#define PLUGIN_DIR "@INSTALL_PLUGINDIR@"
921a542
 #define SOCKET  "@MARIADB_UNIX_ADDR@"
921a542
 #define PORT "@MARIADB_PORT@"
921a542
 #define TLS_LIBRARY_VERSION "@TLS_LIBRARY_VERSION@"