[oe] [PATCH] busybox/syslogs: use update-alternatives for syslog selection

Steffen Sledz sledz at dresearch.de
Fri May 7 15:04:27 UTC 2010


Am 07.05.2010 16:49, Martin Jansa wrote:
>> +pkg_preinst_${PN}-syslog () {
>> +    # this is needed to avoid sysmlink errors,
>> +    # because update-rc.d runs before pkg_postinst :(
>> +    touch {sysconfdir}/init.d/syslog
> 
> missing $

<Grrrr>

> touch: cannot touch `{sysconfdir}/init.d/syslog': No such file or directory
> 
> but even when I add $ here it should fail like
> update-alternatives: Error: not linking //usr/bin/time to ../../bin/busybox since //usr/bin/time exists and is not a link
> 
> but fails a bit different
> 
> Configuring busybox-syslog.
> update-rc.d: /etc/init.d/syslog: file does not exist
> update-alternatives: Linking //etc/init.d/syslog to syslog.busybox

Are you sure that you run the patched version? It looks like
running a version without touch in pkg_preinst.

> ...
>> -INITSCRIPT_NAME = "sysklogd"
>> -INITSCRIPT_PARAMS = "start 39 S 1 2 3 . stop 99 0 6 ."
> 
> params not needed anymore?

Fall back to the defaults like in all the other syslog recipes.

Regards,
Steffen





More information about the Openembedded-devel mailing list