]> code.ossystems Code Review - openembedded-core.git/commit
opkg/package/rootfs_ipk: allow overwriting OPKGLIBDIR
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Tue, 16 Jul 2019 21:55:58 +0000 (00:55 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Jul 2019 18:23:20 +0000 (19:23 +0100)
commit81eae383c287ad2e74321345c5eba862d5704cc4
treebf70f9703e48e17c014675193c6695cc5f88e999
parent5090afc1b07e62f70ebcf63a7abb75b8552f0a52
opkg/package/rootfs_ipk: allow overwriting OPKGLIBDIR

Some distributions for various reasons (like for example mounting a
tmpfs over /var at runtime) can't use /var/lib to store the opkg
metadata, so a different path is required to have a functioning
package manager.

${localstatedir} can't be modified to something other than the
hardcoded value in bitbake.conf because other recipes depending on it
will fail to install.

So the only recourse, which is also the least invasive, is to allow
distros to overwrite the OPKGLIBDIR variable just like they are also
allowed to overwrite OPKGBUILDCMD.

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_ipk.bbclass
meta/classes/rootfs_ipk.bbclass
meta/recipes-devtools/opkg/opkg_0.4.1.bb