* [meta-security][rocko][PATCH] clamav: Add missing clamav.service file to SRC_URI
@ 2018-03-20 6:50 Jagadeesh Krishnanjanappa
2018-03-21 4:28 ` Jagadeesh Krishnanjanappa
0 siblings, 1 reply; 3+ messages in thread
From: Jagadeesh Krishnanjanappa @ 2018-03-20 6:50 UTC (permalink / raw)
To: yocto
This solves the below error when systemd is used as init manager,
-- snip --
ERROR: clamav-0.99.2-r0 do_package: SYSTEMD_SERVICE_clamav value clamav.service does not exist
ERROR: clamav-0.99.2-r0 do_package: Function failed: systemd_populate_packages
-- snip --
Other issues:
1. Ship /lib/systemd/system/clamav-freshclam.service into ${PN}-freshclam
package, to solve below warning:
-- snip --
[10240] WARNING: QA Issue: clamav: Files/directories were installed but not shipped in any package:
/lib/systemd/system/clamav-freshclam.service
-- snip --
2. Solve rpm conflict error in do_populate_sdk, when clamav and mlib-clamav
are specified using IMAGE_INSTALL.
-- snip --
do_populate_sdk fails with below error:
file /usr/bin/clamav-config conflicts between attempted installs of lib32-clamav-dev-0.99.2-r0.i586 and clamav-dev-0.99.2-r0.corei7_64
-- snip --
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
---
recipes-security/clamav/clamav_0.99.2.bb | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/recipes-security/clamav/clamav_0.99.2.bb b/recipes-security/clamav/clamav_0.99.2.bb
index 5dfda8f..d7aa6d0 100644
--- a/recipes-security/clamav/clamav_0.99.2.bb
+++ b/recipes-security/clamav/clamav_0.99.2.bb
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/vrtadmin/clamav-devel;branch=${PV} \
file://clamd.conf \
file://freshclam.conf \
file://volatiles.03_clamav \
+ file://${BPN}.service \
"
SRC_URI[md5sum] = "61b51a04619aeafd965892a53f86d192"
@@ -26,7 +27,7 @@ SO_VER = "7.1.1"
EXTRANATIVEPATH += "chrpath-native"
-inherit autotools-brokensep pkgconfig useradd systemd
+inherit autotools-brokensep pkgconfig useradd systemd multilib-alternatives
UID = "clamav"
GID = "clamav"
@@ -90,8 +91,13 @@ do_install_append() {
install -m 0644 ${WORKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/volatiles.03_clamav
sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/libclamav.pc
rm ${D}/${libdir}/libclamav.so
+ if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then
+ install -D -m 0644 ${WORKDIR}/clamav.service ${D}${systemd_unitdir}/system/clamav.service
+ fi
}
+MULTILIB_ALTERNATIVES_${PN}-dev = "${bindir}/clamav-config"
+
pkg_postinst_${PN} () {
if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
${sysconfdir}/init.d/populate-volatile.sh update
@@ -126,7 +132,8 @@ FILES_${PN}-freshclam = "${bindir}/freshclam \
${sysconfdir}/clamav ${sysconfdir}/default/volatiles \
${localstatedir}/lib/clamav \
${docdir}/${PN}-freshclam ${mandir}/man1/freshclam.* \
- ${mandir}/man5/freshclam.conf.*"
+ ${mandir}/man5/freshclam.conf.* \
+ ${systemd_unitdir}/system/clamav-freshclam.service"
FILES_${PN}-dev = " ${bindir}/clamav-config ${libdir}/*.la \
${libdir}/pkgconfig/*.pc \
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-security][rocko][PATCH] clamav: Add missing clamav.service file to SRC_URI
2018-03-20 6:50 [meta-security][rocko][PATCH] clamav: Add missing clamav.service file to SRC_URI Jagadeesh Krishnanjanappa
@ 2018-03-21 4:28 ` Jagadeesh Krishnanjanappa
2018-03-21 16:06 ` akuster
0 siblings, 1 reply; 3+ messages in thread
From: Jagadeesh Krishnanjanappa @ 2018-03-21 4:28 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 3569 bytes --]
Please ignore this patch, it gives an error as it is unable to
inherit multilib-alternatives.This class is part of our internal layer.
Regards,
Jagadeesh
On Tue, Mar 20, 2018 at 12:20 PM, Jagadeesh Krishnanjanappa <
jkrishnanjanappa@mvista.com> wrote:
> This solves the below error when systemd is used as init manager,
> -- snip --
> ERROR: clamav-0.99.2-r0 do_package: SYSTEMD_SERVICE_clamav value
> clamav.service does not exist
> ERROR: clamav-0.99.2-r0 do_package: Function failed:
> systemd_populate_packages
> -- snip --
>
> Other issues:
> 1. Ship /lib/systemd/system/clamav-freshclam.service into ${PN}-freshclam
> package, to solve below warning:
> -- snip --
> [10240] WARNING: QA Issue: clamav: Files/directories were installed but
> not shipped in any package:
> /lib/systemd/system/clamav-freshclam.service
> -- snip --
>
> 2. Solve rpm conflict error in do_populate_sdk, when clamav and mlib-clamav
> are specified using IMAGE_INSTALL.
> -- snip --
> do_populate_sdk fails with below error:
> file /usr/bin/clamav-config conflicts between attempted installs of
> lib32-clamav-dev-0.99.2-r0.i586 and clamav-dev-0.99.2-r0.corei7_64
> -- snip --
>
> Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
> ---
> recipes-security/clamav/clamav_0.99.2.bb | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-security/clamav/clamav_0.99.2.bb
> b/recipes-security/clamav/clamav_0.99.2.bb
> index 5dfda8f..d7aa6d0 100644
> --- a/recipes-security/clamav/clamav_0.99.2.bb
> +++ b/recipes-security/clamav/clamav_0.99.2.bb
> @@ -14,6 +14,7 @@ SRC_URI = "git://github.com/vrtadmin/
> clamav-devel;branch=${PV} \
> file://clamd.conf \
> file://freshclam.conf \
> file://volatiles.03_clamav \
> + file://${BPN}.service \
> "
>
> SRC_URI[md5sum] = "61b51a04619aeafd965892a53f86d192"
> @@ -26,7 +27,7 @@ SO_VER = "7.1.1"
>
> EXTRANATIVEPATH += "chrpath-native"
>
> -inherit autotools-brokensep pkgconfig useradd systemd
> +inherit autotools-brokensep pkgconfig useradd systemd
> multilib-alternatives
>
> UID = "clamav"
> GID = "clamav"
> @@ -90,8 +91,13 @@ do_install_append() {
> install -m 0644 ${WORKDIR}/volatiles.03_clamav
> ${D}${sysconfdir}/default/volatiles/volatiles.03_clamav
> sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/
> libclamav.pc
> rm ${D}/${libdir}/libclamav.so
> + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','
> false',d)};then
> + install -D -m 0644 ${WORKDIR}/clamav.service
> ${D}${systemd_unitdir}/system/clamav.service
> + fi
> }
>
> +MULTILIB_ALTERNATIVES_${PN}-dev = "${bindir}/clamav-config"
> +
> pkg_postinst_${PN} () {
> if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
> ${sysconfdir}/init.d/populate-volatile.sh update
> @@ -126,7 +132,8 @@ FILES_${PN}-freshclam = "${bindir}/freshclam \
> ${sysconfdir}/clamav ${sysconfdir}/default/volatiles
> \
> ${localstatedir}/lib/clamav \
> ${docdir}/${PN}-freshclam
> ${mandir}/man1/freshclam.* \
> - ${mandir}/man5/freshclam.conf.*"
> + ${mandir}/man5/freshclam.conf.* \
> + ${systemd_unitdir}/system/
> clamav-freshclam.service"
>
> FILES_${PN}-dev = " ${bindir}/clamav-config ${libdir}/*.la \
> ${libdir}/pkgconfig/*.pc \
> --
> 2.7.4
>
>
[-- Attachment #2: Type: text/html, Size: 4982 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-security][rocko][PATCH] clamav: Add missing clamav.service file to SRC_URI
2018-03-21 4:28 ` Jagadeesh Krishnanjanappa
@ 2018-03-21 16:06 ` akuster
0 siblings, 0 replies; 3+ messages in thread
From: akuster @ 2018-03-21 16:06 UTC (permalink / raw)
To: Jagadeesh Krishnanjanappa, yocto
[-- Attachment #1: Type: text/plain, Size: 4511 bytes --]
On 03/20/2018 09:28 PM, Jagadeesh Krishnanjanappa wrote:
> Please ignore this patch, it gives an error as it is unable to
> inherit multilib-alternatives.This class is part of our internal layer.
This patch still has value. it addresses the systemd service file
installation.
- armin
>
> Regards,
> Jagadeesh
>
> On Tue, Mar 20, 2018 at 12:20 PM, Jagadeesh Krishnanjanappa
> <jkrishnanjanappa@mvista.com <mailto:jkrishnanjanappa@mvista.com>> wrote:
>
> This solves the below error when systemd is used as init manager,
> -- snip --
> ERROR: clamav-0.99.2-r0 do_package: SYSTEMD_SERVICE_clamav value
> clamav.service does not exist
> ERROR: clamav-0.99.2-r0 do_package: Function failed:
> systemd_populate_packages
> -- snip --
>
> Other issues:
> 1. Ship /lib/systemd/system/clamav-freshclam.service into
> ${PN}-freshclam
> package, to solve below warning:
> -- snip --
> [10240] WARNING: QA Issue: clamav: Files/directories were
> installed but not shipped in any package:
> /lib/systemd/system/clamav-freshclam.service
> -- snip --
>
> 2. Solve rpm conflict error in do_populate_sdk, when clamav and
> mlib-clamav
> are specified using IMAGE_INSTALL.
> -- snip --
> do_populate_sdk fails with below error:
> file /usr/bin/clamav-config conflicts between attempted installs
> of lib32-clamav-dev-0.99.2-r0.i586 and clamav-dev-0.99.2-r0.corei7_64
> -- snip --
>
> Signed-off-by: Jagadeesh Krishnanjanappa
> <jkrishnanjanappa@mvista.com <mailto:jkrishnanjanappa@mvista.com>>
> ---
> recipes-security/clamav/clamav_0.99.2.bb
> <http://clamav_0.99.2.bb> | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-security/clamav/clamav_0.99.2.bb
> <http://clamav_0.99.2.bb>
> b/recipes-security/clamav/clamav_0.99.2.bb <http://clamav_0.99.2.bb>
> index 5dfda8f..d7aa6d0 100644
> --- a/recipes-security/clamav/clamav_0.99.2.bb
> <http://clamav_0.99.2.bb>
> +++ b/recipes-security/clamav/clamav_0.99.2.bb
> <http://clamav_0.99.2.bb>
> @@ -14,6 +14,7 @@ SRC_URI =
> "git://github.com/vrtadmin/clamav-devel;branch=${PV}
> <http://github.com/vrtadmin/clamav-devel;branch=$%7BPV%7D> \
> file://clamd.conf \
> file://freshclam.conf \
> file://volatiles.03_clamav \
> + file://${BPN}.service \
> "
>
> SRC_URI[md5sum] = "61b51a04619aeafd965892a53f86d192"
> @@ -26,7 +27,7 @@ SO_VER = "7.1.1"
>
> EXTRANATIVEPATH += "chrpath-native"
>
> -inherit autotools-brokensep pkgconfig useradd systemd
> +inherit autotools-brokensep pkgconfig useradd systemd
> multilib-alternatives
>
> UID = "clamav"
> GID = "clamav"
> @@ -90,8 +91,13 @@ do_install_append() {
> install -m 0644 ${WORKDIR}/volatiles.03_clamav
> ${D}${sysconfdir}/default/volatiles/volatiles.03_clamav
> sed -i -e 's#${STAGING_DIR_HOST}##g'
> ${D}${libdir}/pkgconfig/libclamav.pc
> rm ${D}/${libdir}/libclamav.so
> + if
> ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then
> + install -D -m 0644 ${WORKDIR}/clamav.service
> ${D}${systemd_unitdir}/system/clamav.service
> + fi
> }
>
> +MULTILIB_ALTERNATIVES_${PN}-dev = "${bindir}/clamav-config"
> +
> pkg_postinst_${PN} () {
> if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
> ${sysconfdir}/init.d/populate-volatile.sh update
> @@ -126,7 +132,8 @@ FILES_${PN}-freshclam = "${bindir}/freshclam \
> ${sysconfdir}/clamav
> ${sysconfdir}/default/volatiles \
> ${localstatedir}/lib/clamav \
> ${docdir}/${PN}-freshclam
> ${mandir}/man1/freshclam.* \
> - ${mandir}/man5/freshclam.conf.*"
> + ${mandir}/man5/freshclam.conf.* \
> +
> ${systemd_unitdir}/system/clamav-freshclam.service"
>
> FILES_${PN}-dev = " ${bindir}/clamav-config ${libdir}/*.la \
> ${libdir}/pkgconfig/*.pc \
> --
> 2.7.4
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 7786 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-21 16:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20 6:50 [meta-security][rocko][PATCH] clamav: Add missing clamav.service file to SRC_URI Jagadeesh Krishnanjanappa
2018-03-21 4:28 ` Jagadeesh Krishnanjanappa
2018-03-21 16:06 ` akuster
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.