Created attachment 210385 [details]
the configure stage current fails when using mariadb 10.x:
configure: error: Unsupported version of MySQL (no PROTOCOL_VERSION or ER_LOCK_DEADLOCK or ER_LOCK_WAIT_TIMEOUT or ER_LOCK_OR_ACTIVE_TRANSACTION or CR_ERROR_FIRST defined)
this is because CR_ERROR_FIRST is no longer present in library
attached patch files remove this check, however i do not know how to patch conditionally i.e only patch is using mariadb 10.x
is there a way to patch conditional ?
Created attachment 210386 [details]
patch for mysql_drv.m4
Thank you for the report and initial patch Vikash
Something like checking the "mysql" DEFAULT_VERSION value in a condition and using EXTRA_PATCHES if the condition is true, should be ok
@Vikash Also, this should probably be resolved properly upstream, would you mind reporting the issue if you haven't already?
^Triage: Request feedback from databases/mariadb101-server maintainer on conditional patching advice
(In reply to Kubilay Kocak from comment #2)
there seems to be no activity since 2014 though.
A commit references this bug:
Date: Wed Jul 22 14:20:58 UTC 2020
New revision: 542858
Unbreak the build against MariaDB and MySQL 8.0 (the latter replaced
my_bool with C99 bool, while earlier versions used typedef to char).
Should be fixed as of ports r542858, please test and reopen the bug if anything's still missing.