Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
The connector/C build process does not take into account the difference in the directory structure for RPM and DEB-based distributions.
It breaks Debian packaging of Cpp and ODBCI connectors (see attached files for full logs):
dpkg-shlibdeps: error: cannot find library libmariadb.so.3 needed by ./usr/lib64/mariadb/libmariadbcpp.so (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
|
dpkg-shlibdeps: error: cannot continue due to the error above
|
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
|
To help dpkg-shlibdeps find private libraries, you might need to use -l.
|
CMake Error at /usr/share/cmake-3.16/Modules/Internal/CPack/CPackDeb.cmake:317 (message):
|
CPackDeb: dpkg-shlibdeps: 'dpkg-shlibdeps: error: cannot find library
|
libmariadb.so.3 needed by ./usr/lib64/mariadb/libmariadbcpp.so (ELF format:
|
'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
|
dpkg-shlibdeps: error: cannot continue due to the error above
|
dpkg-shlibdeps tries to find libmariadb.so.3 in the default directory for Debians - /usr/lib/x86_64-linux-gnu/
Dirs are hardcoded here:
https://github.com/mariadb-corporation/mariadb-connector-c/blob/3.1/cmake/install.cmake#L78