В сообщении от Суббота 21 августа 2010 22:55:18 автор Khem Raj написал: > On Sat, Aug 21, 2010 at 11:19 AM, Roman I Khimov <[email protected]> wrote: > > Technically, there are three possible installation combinations, each has > > its valid use: > > * clamav-data > > * clamav-freshclam > > * clamav-data & clamav-freshclam > > > > Before the patch only second one was possible (probably with the recent > > BAD_RECOMMENDATIONS fixes to opkg and OE also the first one). After the > > patch only first and third will be possible. Do we really care about > > second case? > > Can clamav-freshclam function without clamav-data?
Yes.
> > And if yes, how to allow all of three to coexist?
>
> may be have separate recipe for data.
What about:
- RDEPENDS_${PN} = "${PN}-data"
- RDEPENDS_${PN}-daemon = "${PN}-data ${PN}-conf"
- RDEPENDS_${PN}-freshclam = "${PN}-conf"
- RRECOMMENDS_${PN} = "${PN}-freshclam"
- RRECOMMENDS_${PN}-daemon = "${PN}-freshclam"
- RPROVIDES_${PN}-freshclam = "${PN}-data"
+ RDEPENDS_${PN}-daemon = "${PN}-conf"
+ RDEPENDS_${PN}-freshclam = "${PN}-conf"
+ RRECOMMENDS_${PN} = "${PN}-data ${PN}-freshclam"
+ RRECOMMENDS_${PN}-daemon = "${PN}-data ${PN}-freshclam"
This way the default is third (both data and freshclam installed) and using
BAD_RECOMMENDATIONS one can disable one or another to implement first or
second.
The only downside is that you can technically put both to BAD_RECOMMENDATIONS
and clamav won't work without its databases (and you won't have freshclam to
get them). But then you have to be very persistent to get that effect.
--
http://roman.khimov.ru
mailto: [email protected]
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
