[oe] busybox & syslog init script

Michael Smith msmith at cbnco.com
Wed Jun 3 14:54:00 UTC 2009


Phil Blundell wrote:
> On Wed, 2009-06-03 at 10:09 -0400, Michael Smith wrote:
>> I'd prefer RRECOMMENDS to RDEPENDS, because if I don't have 
>> CONFIG_SYSLOGD=y, I can make busybox-syslog be empty so it won't get 
>> created and nothing will complain.

> RRECOMMENDS would work, but ipkg will issue an ugly diagnostic
> ("unsatisfied recommendation for...") if busybox-syslog is missing.  I'm
> not sure what other package managers will do here.

Yeah, me neither. I can say Busybox dpkg doesn't grok Recommends (or 
dependencies, as far as I know :)

apt-get (used in rootfs_deb) doesn't seem to print a warning when the 
recommended package is missing.

I'm reluctant to use RDEPENDS because for other, similar packages in the 
recipe (e.g. busybox-mdev), the dependency goes in the opposite 
direction: busybox-mdev depends on busybox.

> It might be better to stick with RDEPENDS and either (i) arrange for the
> dependency to be conditional on CONFIG_SYSLOGD having been enabled,
> which you could do with a bit of python in busybox.bb,

I was thinking about this and I'm not sure how to get the python bit to 
run after do_fetch (so defconfig is available in ${WORKDIR}). It's 
probably possible but it would take quite a bit of fiddling, and would 
only save an ipkg warning for the few of us who don't set 
CONFIG_SYSLOGD=y. Currently, all in-tree configs set CONFIG_SYSLOGD.

Mike




More information about the Openembedded-devel mailing list