With the latest new OpenWrt (old LEDE) master libncurses and libreadline does not exist


How are you?
I am trying to build a MariaDB (with LEDE 17.01.4 it works) but when I try to build with the latest master from OpenWrt (https://git.openwrt.org/?p=openwrt/openwrt.git;a=summary) it gives me this error, very weird:

WARNING: Makefile 'package/feeds/mariadb/mariadb/Makefile' has a build dependency on 'libncurses', which does not exist
WARNING: Makefile 'package/feeds/mariadb/mariadb/Makefile' has a build dependency on 'libreadline', which does not exist

Do you guys know what it could be?

Everything (redis, nxhack/openwrt-node-packages) is ok, but with this MariaDB is giving this...

This is the Makefile:


There was a rather large overhaul of dependency generation/checking in early January 2018, which you have likely noticed from the Openwrt/LEDE sources when looking for the reasons. ( relevant log: https://github.com/openwrt/openwrt/commits/de0ccd35323b420e96ac849b327e77dd9c7837b0 )

Your issue is likely described in a commit in the packages feed whre many packages were fixed: https://github.com/openwrt/packages/commit/00fce347a5b054f1d38baaac735a357aad3d0a24

treewide: fix incorrect *_BUILD_DEPENDS

Build depends refer to source package names, not binary package names.

In many cases, PKG_BUILD_DEPENDS simply duplicated runtime dependencies of a source package's binary packages; as the corresponding source packages are implicitly added as bulid dependencies, PKG_BUILD_DEPENDS can simply be dropped in these cases. In the other cases, *_BUILD_DEPENDS is fixed to refer to the correct source package name.

Based on the advice in that commit you could likely drop the two build dependendies, as they are already on package's main dependency list.

Thanks so much for helping!
So is it like this:

PKG_BUILD_DEPENDS:=mariadb/host libncurses libreadline

change to


But this keep?

define Package/libmariadb
  DEPENDS:=+libstdcpp +zlib +libpthread +libncurses +libreadline
  TITLE:=MariaDB client library
  PROVIDES:=libmysqlclient libmysqlclient-r mariadb
  CONFLICTS:=libmysqlclient libmysqlclient-r

Is that the good?

Take care and thanks for helping!