| Summary: | avahi-daemon does not work correctly with lsb_log_message script | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Cristian Iorga <cristian.iorga> |
| Component: | connectivity | Assignee: | Cristian Iorga <cristian.iorga> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | corneliux.stoicescu, meta.mr.watcher, meta.watcher, sgw |
| Version: | unspecified | ||
| Target Milestone: | 1.6 M5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Cristian Iorga
2014-02-06 16:00:46 UTC
Investigated started. Might be related to: http://patches.openembedded.org/patch/60733/ LSB lsb_log_message calls a begin() function that should be implemented in /etc/init.d/functions. The aforementioned script does not implement the begin() function, as such there is a small issue related to logging. However, the confusion seems to stem from the fact that the LSB standard does not properly states who should implement such functions and where. Adding Ubuntu as an example, log_begin_msg is implemented directly in:
/lib/lsb/init-functions script:
# int log_begin_message (char *message)
log_begin_msg () {
log_begin_msg_pre "$@"
if [ -z "${1:-}" ]; then
return 1
fi
echo -n "$@" || true
log_begin_msg_post "$@"
}
where:
# Pre&Post empty function declaration, to be overriden from /lib/lsb/init-functions.d/*
log_begin_msg_pre () { :; }
log_begin_msg_post () { :; }
Patch sent for review. Fixed with commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ebfd07544751611c7ac03e6b1e7a79676ffa0873 *** Bug 6103 has been marked as a duplicate of this bug. *** Verified with poky master:3e528d3e4bc542ca2f654c54363c56af0fb9f61b |