Bug 510

Summary: "rpm -e libnss-mdns" gets error
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Dexuan Cui <dexuan.cui>
Component: meta-yoctoAssignee: Qing He <qing.he>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, jiajun.xu, ke.yu, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 1.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---
Attachments:
Description Flags
rpm_e_libnss.JPG none

Description Dexuan Cui 2010-10-25 05:36:04 UTC
Created attachment 64 [details]
rpm_e_libnss.JPG

With recent milestone builds, by running poky-image-sato, "rpm -e libnss-mdns" gets such an error:
error:%preun(libnss-mdns-0.10-r0.i586) scriptlet failed, exit status 1

The screenshot is attached.
Comment 1 Qing He 2010-11-04 01:12:46 UTC
the line in /etc/nsswith.conf in question looks like:
    hosts:     files dns mdns4

but pkg_prerm says:
    grep "hosts:\s*files dns mdns$"

This can be easily fixed by changing that to mdns4

However, this is prone to future problems. I'll see if a more sophisticated, position-independent "insert/remove" can be added, so it's workable for more than one libnss extensions.
Comment 2 Qing He 2010-12-08 22:26:54 UTC
fixed as commit 7f4740fdec9a5ecc707da98d1412a7d0907346c3
Comment 3 Qing He 2010-12-08 22:27:17 UTC
marked as fixed
Comment 4 Dexuan Cui 2010-12-08 22:54:47 UTC
I can VERIFY "rpm -e libnss-mdns" can succeed on recent builds.