Skip to contentSkip to conversation

poky-cgl: avoid installing multiple syslogs

PATCH Superseded [email protected] 2 participants 3 messages Jun 2, 2017 – Jun 9, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 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
index 90cc82b..69f6200 100644
@@ -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
index b566e2d..be36075 100644
@@ -40,7 +40,6 @@ RDEPENDS_${PN} = " \
     quota \
     smartmontools \
     monit \
-    syslog-ng \
     ocfs2-tools \
     logcheck \
     samhain-client \
@@ -48,7 +47,6 @@ RDEPENDS_${PN} = " \
     audit \
     pam-passwdqc \
     libpam \
-    rsyslog \
     makedumpfile \
     "
 
Signature · 1 line
2.11.0
#1 lore raw
Quoted 57 lines · On fre, 2017-06-02 at 15:59 +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

do_rootfs fails if multiple syslogs are installed:

Quoted 3 lines

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.

---
 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- renamed from meta-cgl-common/conf/distro/poky-cgl.conf +0 -0

common/conf/distro/poky-cgl.conf
index 90cc82b..69f6200 100644

meta-cgl-common/conf/distro/poky-cgl.conf +0 -0
@@ -5,3 +5,7 @@ DISTRO = "poky-cgl"


 IMAGE_CLASSES += "image_types_uboot" PREFERRED_PROVIDER_virtual/refpolicy="refpolicy-targeted"

meta-cgl-common/conf/distro/poky-cgl.conf +2 -0
+
+# we want to use rsyslog as the default syslog, but it's GPLv3, so

need this

meta-cgl-common/conf/distro/poky-cgl.conf +2 -0
+# check to switch to syslog-ng if GLPv3 is blacklisted.
+VIRTUAL-RUNTIME_syslog ?= "${@bb.utils.contains('INCOMPATIBLE_LICENS

E', 'GPLv3', 'syslog-ng', 'rsyslog', d)}"

(quoted diff) +0 -0

applications.bb b/meta-cgl-common/packagegroups/packagegroup-cgl- applications.bb
index b566e2d..be36075 100644

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 \
@@ -48,7 +47,6 @@ RDEPENDS_${PN} = " \
      audit \
      pam-passwdqc \
      libpam \
-    rsyslog \
      makedumpfile \
Quoted 5 lines

     "

--
2.11.0

Patch   good but doesn't apply. Please rebase on origin/master and send again.

best regards
--Adrian

#2 lore raw
Quoted 69 lines

-----Original Message-----
From: Adrian Dudau [mailto:[email protected]]
Sent: Thursday, June 08, 2017 20:01
To: Huang, Jie (Jackie); [email protected]
Subject: Re: [yocto] [meta-cgl][PATCH] poky-cgl: avoid installing multiple syslogs

Quoted 59 lines · On fre, 2017-06-02 at 15:59 +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

do_rootfs fails if multiple syslogs are installed:

Quoted 3 lines

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.

---
 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- renamed from meta-cgl-common/conf/distro/poky-cgl.conf +0 -0

common/conf/distro/poky-cgl.conf
index 90cc82b..69f6200 100644

meta-cgl-common/conf/distro/poky-cgl.conf +0 -0
@@ -5,3 +5,7 @@ DISTRO = "poky-cgl"
 

 IMAGE_CLASSES += "image_types_uboot" PREFERRED_PROVIDER_virtual/refpolicy="refpolicy-targeted"

meta-cgl-common/conf/distro/poky-cgl.conf +2 -0
+
+# we want to use rsyslog as the default syslog, but it's GPLv3, so

need this

meta-cgl-common/conf/distro/poky-cgl.conf +2 -0
+# check to switch to syslog-ng if GLPv3 is blacklisted.
+VIRTUAL-RUNTIME_syslog ?= "${@bb.utils.contains('INCOMPATIBLE_LICENS

E', 'GPLv3', 'syslog-ng', 'rsyslog', d)}"

(quoted diff) +0 -0

applications.bb b/meta-cgl-common/packagegroups/packagegroup-cgl- applications.bb
index b566e2d..be36075 100644

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 \
@@ -48,7 +47,6 @@ RDEPENDS_${PN} = " \
      audit \
      pam-passwdqc \
      libpam \
-    rsyslog \
      makedumpfile \

     "

Quoted 6 lines
Quoted 3 lines

--
2.11.0

Patch   good but doesn't apply. Please rebase on origin/master and send again.

Rebased and re-sent as v2.

Thanks,
Jackie

Quoted 3 lines

best regards
--Adrian