File mariadb-10.1.12-deharcode-libdir.patch of Package mariadb
28
1
PATCH-P0-FIX-SUSE: dehardcode libdir
2
3
Don't expect libdir is set to lib64 on x86_64 only.
4
There is other occurances like ppc64 and aarch64.
5
Use %{_libdir} macro instead
6
7
Maintainer: Dinar Valeev <dvaleev@suse.com>
8
9
Index: cmake/install_layout.cmake
10
===================================================================
11
--- cmake/install_layout.cmake.orig
12
+++ cmake/install_layout.cmake
13
14
SET(INSTALL_SYSCONFDIR_RPM "/etc")
15
SET(INSTALL_SYSCONF2DIR_RPM "/etc/my.cnf.d")
16
#
17
-IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
18
- SET(INSTALL_LIBDIR_RPM "lib64")
19
- SET(INSTALL_PLUGINDIR_RPM "lib64/mysql/plugin")
20
-ELSE()
21
- SET(INSTALL_LIBDIR_RPM "lib")
22
- SET(INSTALL_PLUGINDIR_RPM "lib/mysql/plugin")
23
-ENDIF()
24
-#
25
SET(INSTALL_INCLUDEDIR_RPM "include/mysql")
26
#
27
SET(INSTALL_DOCDIR_RPM "share/doc")
28