Bug 510 - "rpm -e libnss-mdns" gets error
Summary: "rpm -e libnss-mdns" gets error
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M1
Assignee: Qing He
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-10-25 05:36 UTC by Dexuan Cui
Modified: 2010-12-21 06:07 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments
rpm_e_libnss.JPG (79.95 KB, image/jpeg)
2010-10-25 05:36 UTC, Dexuan Cui
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.