Skip to contentSkip to conversation

update_mandb: Point to correct /etc/passwd with man

PATCH New Eilís 'pidge' Ní Fhlannagáin 1 participant 1 message Sep 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 update_mandb: Point to correct /etc/passwd with man

[YOCTO #15023]

In this instance (do_populate_sdk with api-documentation turned on), pseudo is going to end up finding the passwd/groups files in recipe-sysroot-native which is incorrect and does not have man. The solution here should be to ensure that pseudo points to the passwd/groups files in recipe-sysroot (which does have man:man).

---
 scripts/postinst-intercepts/update_mandb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/postinst-intercepts/update_mandb +1 -1
index a061bb426a6..6bc073bfff5 100644
@@ -13,4 +13,4 @@ PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${bindir}/mandb --config-file $C
 
 rm -f $CONFIG
 
-chown -R man:man $D${localstatedir}/cache/man/
+PSEUDO_PASSWD=$D chown -R man:man $D${localstatedir}/cache/man/
Signature · 1 line
2.34.1