cpp-pm / hunter

CMake driven cross-platform package manager for C/C++.
BSD 2-Clause "Simplified" License
604 stars 180 forks source link

Update "mysql-client" help-wanted/needed #109

Open cyberium opened 4 years ago

cyberium commented 4 years ago

Some interesting links

Main problem:

Error is :

[ 65%] Building C object mysys/CMakeFiles/mysys.dir/my_lib.c.o
/home/cybermomo/cmangos/hunter/_Base/e998928/688591e/4b09d2b/Build/MySQL-client/Source/mysys/my_lib.c: In function ‘my_dir’:
/home/cybermomo/cmangos/hunter/_Base/e998928/688591e/4b09d2b/Build/MySQL-client/Source/mysys/my_lib.c:127:3: error: ‘readdir_r’ is deprecated [-Werror=deprecated-declarations]
   while (!(READDIR(dirp,(struct dirent*) dirent_tmp,dp)))
   ^~~~~
In file included from /usr/include/features.h:424,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /home/cybermomo/cmangos/hunter/_Base/e998928/688591e/4b09d2b/Build/MySQL-client/Source/include/my_global.h:41,
                 from /home/cybermomo/cmangos/hunter/_Base/e998928/688591e/4b09d2b/Build/MySQL-client/Source/mysys/mysys_priv.h:19,
                 from /home/cybermomo/cmangos/hunter/_Base/e998928/688591e/4b09d2b/Build/MySQL-client/Source/mysys/my_lib.c:19:
/usr/include/dirent.h:189:12: note: declared here
 extern int __REDIRECT (readdir_r,
            ^~~~~~~~~~
cc1: all warnings being treated as errors

without success (look like the flag is discarded somewhere)

cyberium commented 4 years ago

Oracle decided to not provide directly connector c anymore in the form we use it.

C API (libmysqlclient) is a client library for C development.

For C-language and SQL:

for MySQL 8.0, 5.7, 5.6, 5.5
we recommend MySQL 8.0 C API
For C-language and NoSQL XDevApi DocStore:

for MySQL 8.0 [not applicable to 5.7, 5.6, 5.5]
we recommend MySQL Connector/C++ 8.0
note:  Connector/C++ 8.0 has compatible C headers
C API (libmysqlclient) is included in MySQL 8.0

Linux: The Client Utilities Package is available from the MySQL Community Server download page.
Repos: The Client Utilities Package is available from the Yum, APT, SuSE repositories.
Windows: The Client Utilities Package is available from the Windows Installer.
Previous GA versions are available from MySQL Product Archives.

Online Documentation:

MySQL C API
Please report any bugs or inconsistencies you observe to our Bugs Database.
Thank you for your support!

Latest updated code is 6.1.11 and can be found -> https://downloads.mysql.com/archives/c-c/

Therefore to keep this package updated we have some different options:

Let me know your thoughts

bkotzz commented 4 years ago

The connector doesn’t seem that useful in hunter if it requires the server to be installed anyway. Updating to 6.1.11 doesn’t seem worthwhile if it doesn’t meet your needs as it doesn’t look like it is maintained. Seems like the last two options would be best.