[MCOL-4669] Syslog does not setup if compiled with CMAKE_INSTALL_PREFIX Created: 2021-04-06 Updated: 2021-04-09 Resolved: 2021-04-09 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | installation |
| Affects Version/s: | 6.1.1 |
| Fix Version/s: | 6.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
If I compile MariaDB with a non-default CMAKE_INSTALL_PREFIX, the syslog setup stage fails during a columnstore-post-install run. As a result, these files do not appear in /var/log/mariadb/columnstore/:
/var/log/mariadb/columnstore/install/syslog_install.log has the following hints:
The line 206 in columnstore-post-install is:
Notice, it expects columnstoreSyslogSetup.sh to be in a searchable PATH (such as /usr/bin), however with CMAKE_INSTALL_PREFIX it's not necessarily the case. Furthermore, if I run this command manually:
it fails with the following output:
The line 231 in columnstoreSyslogSetup.sh is:
It also expects cplogger to be in a searchable PATH. To fix this problem, we need to add @ENGINE_BINDIR@/ into these files:
so the generated scripts use absolute paths to the mentioned executable files. |
| Comments |
| Comment by Alexander Barkov [ 2021-04-09 ] |
|
Testes the fix on the local box (as build bots do not compile with CMAKE_INSTALL_PREFIX) |