OpenWrt Forum Archive

Topic: need help for resolving dependencies

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

Hi,

I am using opkg-utils-0.3.5 for creating my package.
I have created a *.ipk package which require "docopt>=0.6.2" and "requestes>=2.13.0", however the opkg is not able to resolve the dependencies.

/ # opkg install libexosite-python-gdc_1.5_noarch.ipk
Installing libexosite-python-gdc (1.5) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for libexosite-python-gdc:
*     requests>=2.13.0 *
* opkg_install_cmd: Cannot install package libexosite-python-gdc.

I am using docker container to test my opkg package.

docker pull mcreations/openwrt-x64

Can someone please guide regarding this?

Thanks,
Prakash

Is that version for that package available at the repos you are using?

Thanks for your reply!

I am working on this project as well. We're both new to publishing OpenWRT (opkg) materials. We haven't been able to find any public repositories that contain docopt nor requests. In order to resolve our dependencies I think we have two options:

  • Create our own repository and publish the dependencies there.

  • Use the existing OpenWRT public repo and submit our software there.

Can you provide some guidance on what you think might be easier and faster versus what best practices and preferences are in the OpenWRT project?

Thanks!

If the packages are part of OpenWrt but the ones in the OpenWrt public repo are too old a version, look in the LEDE public repos.   User space packages will usually work without an exact version match.  Kernel packages need to match the kernel build exactly.

You would have to build the binaries yourself if you can't find them pre-built anywhere.

Those are Python libraries, so they don't have to be compiled to a CPU or OS.  You can put them in to your package, or instruct the end user to install them to their Python environment with pip before running your application.

Thanks for the reply.
Can anyone of you point me to a tutorial link where I can learn packaging python source code along with dependencies into a ipk/opk file format?

Thanks!

The discussion might have continued from here.