]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
update_mandb: deb fails due to missing man cache
authorEilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Thu, 14 Sep 2023 14:39:19 +0000 (14:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Sep 2023 18:37:16 +0000 (19:37 +0100)
This only occurs in debian package builds when populating the sdk
and is a work around that seems to work. Eventually we should look
at why this is failing (I have ideas, it's somewhere in
lib/oe/package_management/deb/sdk.py), but for now, do this so we can
fix the core issue with nativesdk-intercepts.

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/postinst-intercepts/update_mandb

index a061bb426a6f60297d12ae67e26cb1a7059d0b77..f91bafdb117439fa3448fe278856171d5096c155 100644 (file)
@@ -9,6 +9,8 @@ set -eu
 CONFIG=$(mktemp --tmpdir update-mandb.XXXXX)
 sed "s:\(\s\)/:\1$D/:g" $D${sysconfdir}/man_db.conf > $CONFIG
 
+mkdir -p $D${localstatedir}/cache/man/
+
 PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${bindir}/mandb --config-file $CONFIG --create
 
 rm -f $CONFIG