OpenWrt Forum Archive

Topic: Custom Makefile, dependency woes

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi;

Have a custom package. When I attempt to opkg install, get this:

* satisfy_dependencies_for: Cannot satisfy the following dependencies for packageX:
*      libcrypto *     libgio *        libglib *       libgmodule *    libgobject *    libgthread *
* opkg_install_cmd: Cannot install packageX

The above failed dependencies are provided by: packages glib2 libopenssl upon which the custom package depends, in Makefile: DEPENDS:=... +glib2 +libopenssl

It seems that opkg is not recognizing that the missing depends are provided by packages: glib2 libopenssl.

How can I inform opkg (in either my custom Makefile, or glib2, libopenssl Makefiles) that these files are provided.

Note that I do not want to use opkg --force-depends, it is unclean

Thanks;
Bill

Further info:

excerpt from pkginfo/glib2.provides:

libgio-2.0.so
libgio-2.0.so.0
libgio-2.0.so.0.3707.0

whereas, my package complains regarding libgio. So, if I alter glib2/Makefile to contain a link: libgio.so -> libgio-2.0.so.0.3707.0, will glib2.provides include libgio.so and, dependency will not fail?

Is there a better way to do this?

The discussion might have continued from here.