]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
opkg: Set correct info_dir and status_file in opkg.conf
authorHarald Seiler <hws@denx.de>
Thu, 24 Nov 2022 10:52:59 +0000 (11:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Nov 2022 23:54:45 +0000 (23:54 +0000)
commitadb939ae3635de6e02208859fbf29cf0ed39f565
tree9ba9cf1c590990f0fe9fa00bb19ac30d9566a4df
parentd2aa518163a4836eeb5bf8517456790cba382c2e
opkg: Set correct info_dir and status_file in opkg.conf

Distros can customize the location of OPKG data using OPKGLIBDIR.  In
OE-Core commit 11f1956cf5d7 ("package_manager.py: define info_dir and
status_file when OPKGLIBDIR isn't the default"), a fix was applied to
correctly set the info_dir and status_file options relative to
OPKGLIBDIR.

However, as the commit message notes, the opkg.conf file deployed as
part of the opkg package must also be adjusted to correctly reflect the
changed location.  Otherwise, opkg running inside the image cannot find
its data.

Fix this by also setting the info_dir and status_file options in
opkg.conf to the correct location relative to OPKGLIBDIR.

Fixes: 11f1956cf5d7 ("package_manager.py: define info_dir and status_file when OPKGLIBDIR isn't the default")
Signed-off-by: Harald Seiler <hws@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/opkg/opkg_0.6.0.bb