update_mandb: deb fails due to missing man cache
PATCH 2/2 update_mandb: deb fails due to missing man cache
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.
--- scripts/postinst-intercepts/update_mandb | 2 ++ 1 file changed, 2 insertions(+)
scripts/postinst-intercepts/update_mandb +2 -0
@@ -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
Signature · 1 line
2.34.1
Quoted 17 lines · Eilís 'pidge' Ní Fhlannagáin
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 <[email protected]>--- scripts/postinst-intercepts/update_mandb | 2 ++ 1 file changed, 2 insertions(+)scripts/postinst-intercepts/update_mandb +0
-0
scripts/postinst-intercepts/update_mandb set -eu · line 13
Quoted 5 lines
scripts/postinst-intercepts/update_mandb +2
-0@@ -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/ +
mandb will generate index cache files. into D/var/cache/man and below qemu usermode call is doing it.
Perhaps we can look into man_db.conf to select where these build time generated caches should be stored/var/cache seems a wrong place to me, since its r/w and populated at runtime in many cases.
Quoted 15 lines
scripts/postinst-intercepts/update_mandb +0
-1PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${bindir}/mandb --config-file $CONFIG --create rm -f $CONFIG --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187644): https://lists.openembedded.org/g/openembedded-core/message/187644
Mute This Topic: https://lists.openembedded.org/mt/101359340/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-