With revision ports r490140 mariadb_config is broken again and some ports fail to build. For example apr1 port: =========================================================================== =======================<phase: package >============================ ===> Building package for apr-1.6.5.1.6.1_1 pkg-static: Unable to access file /wrkdirs/usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql-1.so:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql.a:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql.so:No such file or directory *** Error code 1 Stop. make: stopped in /usr/ports/devel/apr1 =========================================================================== There was a patch which fixed this issue in revision: ports r483598 Related PR's: bug #226049 bug #230538 After readding the patch, everything works fine again: =========================================================================== =======================<phase: package >============================ ===> Building package for apr-1.6.5.1.6.1_1 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for apr-1.6.5.1.6.1_1 build of devel/apr1 | apr-1.6.5.1.6.1_1 ended at Thu Feb 14 11:36:30 CET 2019 build time: 00:00:47
Created attachment 202290 [details] ~/FreeBSD/patchs/mariadb103-1.patch This patch returns prior behavior of mysql_config. File `scripts/mysql_config.sh` can be repo copied. We noticed a build problem with zabbix and mariadb103, these are the details: mysql=10.1m checking for mysql_config... /usr/local/bin/mysql_config checking for main in -lmysqlclient... yes Shared library: [libmysqlclient.so.18] $ mysql_config --libs -L/usr/local/lib/mysql -lmysqlclient -pthread -lz -lm -lexecinfo -L/usr/local/lib mysql=10.2m checking for mysql_config... /usr/local/bin/mysql_config checking for main in -lmariadb... yes Shared library: [libmariadb.so.3] $ mysql_config --libs -L/usr/local/lib/mysql/ -lmariadb -lz -lm -liconv -lssl -lcrypto -liconv -L/usr/local/lib mysql=10.3m checking for mysql_config... /usr/local/bin/mysql_config checking for main in -lmariadb... no configure: error: Not found mariadb library $ mysql_config --libs -L/usr/local/lib/mysql/ -lmariadb -lz -lm -liconv -lssl -lcrypto -liconv with this patch: checking for mysql_config... /usr/local/bin/mysql_config checking for main in -lmariadb... yes Shared library: [libmariadb.so.3] $ mysql_config --libs -L/usr/local/lib/mysql/ -lmariadb -lz -lm -liconv -lssl -lcrypto -liconv -L/usr/local/lib
I can confirm this patch fixed the problem with building Zabbix4.
Bump...
Is there anything I can do to help resolve this issue?
I confirm that the patch resolves issue of installing apr (bug #236698). Hope it will go to ports.
A commit references this bug: Author: brnrd Date: Sat Mar 23 22:26:25 UTC 2019 New revision: 496689 URL: https://svnweb.freebsd.org/changeset/ports/496689 Log: databases/mariadb103-client: Fix mariadb_config * Partial revert of r490140 PR: 235744 Submitted by: Dani <i dani outlook com> MFH: 2019Q1 Differential Revision: https://reviews.freebsd.org/D19691 Changes: head/databases/mariadb103-client/Makefile
Hi all, Sorry... Introduced this issue in 490140 Reverted, should be fine now. This doesn't show up in my QA tests, only when building software that depends on mariadb_config. Cheers, Bernard.