Opened 7 years ago

Last modified 5 years ago

#55909 assigned defect

mariadb-10.2 @10.2.12: opportunistic use of numerous libraries and programs

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mariadb-10.2

Description (last modified by michaelld (Michael Dickens))

mariadb-10.2 finds and uses a number of things if present, though it does not declare dependencies on them:

  • pkg-config
  • boost
  • bzip2
  • cracklib (crack.h)
  • gdb (bfd.h)
  • git
  • kerberos5 (GSSAPI)
  • libxml2
  • lzo2
  • openssl
  • pcre
  • snappy (snappy-c.h)
  • xz (liblzma)
  • and something do with with ODBC (ODBC_OK)

One or more of these is causing the build to fail for me, unless I use trace mode. The port should declare dependencies on whichever of these it wants to use, and add flags or whatever to prevent the use of the others.

I did not test other mariadb versions but assume at least some of this applies to them too.

Attachments (1)

patch Maria10.2 deps.txt (3.3 KB) - added by ctreleaven (Craig Treleaven) 5 years ago.
Proposed dep and cmake flag changes

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Owner: pixilla deleted
Status: newassigned

See #57827

comment:2 Changed 6 years ago by michaelld (Michael Dickens)

Owner: set to michaelld

comment:3 Changed 5 years ago by michaelld (Michael Dickens)

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 5 years ago by michaelld (Michael Dickens)

Description: modified (diff)

Changed 5 years ago by ctreleaven (Craig Treleaven)

Attachment: patch Maria10.2 deps.txt added

Proposed dep and cmake flag changes

comment:5 Changed 5 years ago by ctreleaven (Craig Treleaven)

Ultimately, I'd like to see a MariaDB v10.3 and 10.4 ports but I thought this ticket ought to be addressed first.

I have largely used the output of 'cmake -LAH' to identify dependencies and directives. Also made some reference to the FreeBSD port

https://svnweb.freebsd.org/ports/head/databases/mariadb102-server/Makefile?view=markup&pathrev=535550

However, I am far from a CMake expert let alone a database admin.

comment:6 Changed 5 years ago by ctreleaven (Craig Treleaven)

Dependencies added:

Build: pkgconfig and bison. Assume these are both build only.

Libraries:

pcre - for regular expressions

kerberos5 - encryption

cracklib - strong passwords

boost - ...

unixODBC - allow ODBC connections (like MS Excel?!?)

bzip2 lzo2 lz4 lzma snappy - compression, see link

CMake settings changed:

ITH_VALGRIND:BOOL=OFF - don't link with GDB

PKG_CONFIG_EXECUTABLE:FILEPATH=${prefix}/bin/pkg-config BISON_EXECUTABLE:FILEPATH=${prefix}/bin/bison - explicit path to build tools

GIT_EXECUTABLE:FILEPATH= UPDATE_SUBMODULES:BOOL=OFF - prevent use of git to update submodule (assumed)

WITH_PCRE:STRING=system - use MacPorts library

WITH_ZLIB:STRING=system - removed, appears unnecessary

WITH_SSL:STRING=yes WITH_SSL_PATH=${prefix} - removed, appears unnecessary. There is no CMake help on these variables and build seems to find all SSL components without any hints.

CONNECT_WITH_LIBXML2:BOOL=ON - specify a BOOL variable

Re xz, I can't see any evidence that it is being used even though I have it installed on my system.

Note: See TracTickets for help on using tickets.