From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8FE17E00B77; Thu, 8 Jun 2017 17:51:48 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 69D40E00B53 for ; Thu, 8 Jun 2017 17:51:44 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id v590phMc001791 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK) for ; Thu, 8 Jun 2017 17:51:43 -0700 Received: from pek-hostel-deb01.wrs.com (128.224.153.151) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.294.0; Thu, 8 Jun 2017 17:51:42 -0700 From: To: Date: Fri, 9 Jun 2017 08:51:41 +0800 Message-ID: <20170609005141.18848-1-jackie.huang@windriver.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [meta-cgl][PATCH v2] poky-cgl: avoid installing multiple syslogs X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2017 00:51:48 -0000 Content-Type: text/plain From: Jackie Huang 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 --- 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(-) diff --git a/meta-cgl-common/conf/distro/poky-cgl.conf b/meta-cgl-common/conf/distro/poky-cgl.conf index 90cc82b..69f6200 100644 --- a/meta-cgl-common/conf/distro/poky-cgl.conf +++ b/meta-cgl-common/conf/distro/poky-cgl.conf @@ -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)}" diff --git a/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb b/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb index a64065b..5e7170d 100644 --- a/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb +++ b/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb @@ -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 \ " -- 2.11.0