Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
-
Gentoo Linux
-
5.5.58
Description
When the server is installs the share files to a non-default location like /usr/share/mariadb, the mysql_install_db scripts will fail to locate the language files and fill_help_tables.sql file when using the --basedir option.
How to repeat:
cmake -DINSTALL_MYSQLSHAREDIR=share/mariadb .
The attached patch will prioritize this setting but keep the old locations for compatibility sake.
Attachments
Issue Links
- is duplicated by
-
MDEV-11616 Build time macro @INSTALL_MYSQLSHAREDIR@ not honored in mysql_install_db
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
When the server is installs the share files to a non-default location like /usr/share/mariadb, the mysql_install_db scripts will fail to locate the language files and fill_help_tables.sql file.
How to repeat: cmake -DINSTALL_MYSQLSHAREDIR=share/mariadb . The attached patch will prioritize this setting but keep the old locations for compatibility sake. |
When the server is installs the share files to a non-default location like /usr/share/mariadb, the mysql_install_db scripts will fail to locate the language files and fill_help_tables.sql file when using the --basedir option.
How to repeat: cmake -DINSTALL_MYSQLSHAREDIR=share/mariadb . The attached patch will prioritize this setting but keep the old locations for compatibility sake. |
Affects Version/s | 5.5 [ 15800 ] | |
Affects Version/s | 10.0 [ 16000 ] | |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.2 [ 14601 ] |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.2 [ 14601 ] |
Assignee | Sergei Golubchik [ serg ] |
Sprint | 5.5.58 [ 197 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Comment |
[ There's a problem with your patch, but it only applies to our binary tarball packages, you are not affected.
{{@pkgdatadir@}} is an absolute path: {code:perl|linenumbers|title=scripts/CMakeLists.txt|firstline=224} SET(prefix "${CMAKE_INSTALL_PREFIX}") SET(sysconfdir "${prefix}") SET(bindir "${prefix}/${INSTALL_BINDIR}") SET(libexecdir "${prefix}/${INSTALL_SBINDIR}") SET(scriptdir "${prefix}/${INSTALL_BINDIR}") SET(datadir "${prefix}/${INSTALL_MYSQLSHAREDIR}") SET(pkgdatadir "${prefix}/${INSTALL_MYSQLSHAREDIR}") {code} So, in binary tarballs patched {{mysql_install_db}} will always prefer system-wide {{/usr/share/mysql}} if it exists. I'll try to come up with a fix that works both for distributions and for binary tarballs. ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Fix Version/s | 5.5.58 [ 22540 ] | |
Fix Version/s | 10.0.33 [ 22552 ] | |
Fix Version/s | 10.1.29 [ 22636 ] | |
Fix Version/s | 10.2.10 [ 22615 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Link |
This issue is duplicated by |
Workflow | MariaDB v3 [ 81900 ] | MariaDB v4 [ 152562 ] |