poky-cgl: avoid installing multiple syslogs
PATCH v2 1/1 poky-cgl: avoid installing multiple syslogs
From: Jackie Huang <[email protected]>
do_rootfs fails if multiple syslogs are installed:
| Error: package syslog-ng-3.8.1-r0.i586 conflicts with sysklogd provided
by sysklogd-1.5.1-r0.i586
core-image-cgl requires packagegroup-core-full-cmdline which depends on VIRTUAL-RUNTIME_syslog (default to sysklogd), so set the VIRTUAL-RUNTIME_syslog in distro conf and no need to depends on any syslog in packagegroup-cgl-applications, then we ensure that only one syslog is installed to avoid conflicts.
Signed-off-by Jackie Huang <[email protected]>
--- meta-cgl-common/conf/distro/poky-cgl.conf | 4 ++++ meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-)
meta-cgl-common/conf/distro/poky-cgl.conf +4 -0
@@ -5,3 +5,7 @@ DISTRO = "poky-cgl" IMAGE_CLASSES += "image_types_uboot" PREFERRED_PROVIDER_virtual/refpolicy="refpolicy-targeted" + +# we want to use rsyslog as the default syslog, but it's GPLv3, so need this +# check to switch to syslog-ng if GLPv3 is blacklisted. +VIRTUAL-RUNTIME_syslog ?= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPLv3', 'syslog-ng', 'rsyslog', d)}"
meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb +0 -2
@@ -40,7 +40,6 @@ RDEPENDS_${PN} = " \ quota \ smartmontools \ monit \ - syslog-ng \ ocfs2-tools \ logcheck \ samhain-client \
@@ -49,7 +48,6 @@ RDEPENDS_${PN} = " \ crash \ pam-passwdqc \ libpam \ - rsyslog \ makedumpfile \ "
Signature · 1 line
2.11.0