Skip to content

Commit 6610532

Browse files
grooverdancvicentiu
authored andcommitted
Update install layout to account for multi-arch setup
Cleanup install_layout to account for multi-arch setup and remove redundant defines in debian rules. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
1 parent 75d286c commit 6610532

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# along with this program; if not, write to the Free Software
1515
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
1616

17-
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
17+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5)
1818

1919
# explicitly set the policy to OLD
2020
# (cannot use NEW, not everyone is on cmake-2.8.12 yet)

cmake/install_layout.cmake

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ SET(INSTALL_SCRIPTDIR_DEB "bin")
174174
SET(INSTALL_SYSCONFDIR_DEB "/etc")
175175
SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/conf.d")
176176
#
177-
SET(INSTALL_LIBDIR_DEB "lib")
177+
SET(INSTALL_LIBDIR_DEB "lib/${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
178178
SET(INSTALL_PLUGINDIR_DEB "lib/mysql/plugin")
179179
#
180180
SET(INSTALL_INCLUDEDIR_DEB "include/mysql")
@@ -186,7 +186,7 @@ SET(INSTALL_INFODIR_DEB "share/info")
186186
#
187187
SET(INSTALL_SHAREDIR_DEB "share")
188188
SET(INSTALL_MYSQLSHAREDIR_DEB "share/mysql")
189-
SET(INSTALL_MYSQLTESTDIR_DEB "mysql-test")
189+
SET(INSTALL_MYSQLTESTDIR_DEB "share/mysql/mysql-test")
190190
SET(INSTALL_SQLBENCHDIR_DEB ".")
191191
SET(INSTALL_SUPPORTFILESDIR_DEB "share/mysql")
192192
#
@@ -196,11 +196,7 @@ SET(INSTALL_UNIX_ADDRDIR_DEB "/var/run/mysqld/mysqld.sock")
196196
SET(INSTALL_SYSTEMD_UNITDIR_DEB "/lib/systemd/system")
197197
SET(INSTALL_SYSTEMD_SYSUSERSDIR_DEB "/usr/lib/sysusers.d")
198198
SET(INSTALL_SYSTEMD_TMPFILESDIR_DEB "/usr/lib/tmpfiles.d")
199-
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
200-
SET(INSTALL_PAMDIR_DEB "/lib/x86_64-linux-gnu/security")
201-
ELSE()
202-
SET(INSTALL_PAMDIR_DEB "/lib/i386-linux-gnu/security")
203-
ENDIF()
199+
SET(INSTALL_PAMDIR_DEB "/lib/${CMAKE_CXX_LIBRARY_ARCHITECTURE}/security")
204200

205201
#
206202
# SVR4 layout

debian/rules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ endif
8686
$${MYSQL_COMPILER_LAUNCHER:+-DCMAKE_C_COMPILER_LAUNCHER=${MYSQL_COMPILER_LAUNCHER}} \
8787
-DCMAKE_SYSTEM_PROCESSOR=$(DEB_BUILD_ARCH) \
8888
-DBUILD_CONFIG=mysql_release \
89-
-DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
90-
-DINSTALL_PLUGINDIR=lib/mysql/plugin \
91-
-DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test \
9289
-DDEB=$(DISTRIBUTION) ..'
9390
touch $@
9491

0 commit comments

Comments
 (0)