<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 2, 2020 at 3:44 AM Christopher McCrory <<a href="mailto:chrismcc@gmail.com">chrismcc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">version 4.046_01 fixes compiling against mariadb and also introduces a patch<br>
that brakes with cross compiling, see patch 0001.<br>
Also the buildroot host-perl ModuleManager gets somthing wrong looking for<br>
libraries. Instead of checking in the build sysroot, it looks in the host<br>
systems /lib, /usr/lib, etc.  For a successful build, the host system will<br>
also need the matching mysql libraries installed.  Running ldd on mysql.so<br>
should show libmysqlclient, and libmariadb for MariaDB. If the result spits<br>
out an error about missing libraries, this is the reason.<br>
This is probably the only builtroot package where this is an issue.<br>
<br>
Signed-off-by: Christopher McCrory <<a href="mailto:chrismcc@gmail.com" target="_blank">chrismcc@gmail.com</a>><br>
-<br><br><br>
</blockquote></div><div><br></div><div><br></div><div>I am successfully using this on a raspberrypi 3 using MariaDB.</div><div>php-mysql works there also.<br></div><div><br></div><div><br></div><div>For MariaDB I also needed::</div><div><br></div><div>chrismcc@centos8-lxc git]$ cat external/packages/fixup-mariadb/<a href="http://fixup-mariadb.mk">fixup-mariadb.mk</a> <br>################################################################################<br>#<br># fixup-mariadb<br>#<br>################################################################################<br><br>ifeq ($(BR2_PACKAGE_FIXUP_MARIADB),y)<br><br>define MARIADB_POST_INSTALL_STAGING_MORE<br>        $(RM) -v $(STAGING_DIR)/usr/bin/mariadb_config<br>endef<br><br>MARIADB_POST_INSTALL_STAGING_HOOKS += MARIADB_POST_INSTALL_STAGING_MORE<br><br>define MARIADB_POST_INSTALL_MORE<br>      $(RM) -r $(TARGET_DIR)/usr/data<br>endef<br><br>MARIADB_POST_INSTALL_TARGET_HOOKS += MARIADB_POST_INSTALL_MORE<br><br>endif<br><br>$(eval $(generic-package))</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br>-- <br><div dir="ltr" class="gmail_signature">Christopher McCrory<br>To the optimist, the glass is half full.<br>To the pessimist, the glass is half empty.<br>To the engineer, the glass is twice as big as it needs to be.</div></div></div>