avahi: unset FILES_avahi to avoid packaging files there
PATCH v2 1/1 avahi: unset FILES_avahi to avoid packaging files there
The main avahi recipe doesn't package anything into ${PN}. If a library is enabled but not put into a separate package it ends up in ${PN} and all the packages are renamed using it's soname - ie libdns-sd-daemon.
Avoid this by clearing FILES_avahi so extra files are unpackaged instead of creating a new package. Also actually remove /var as the comments claim so the avahi package is truly empty.
--- meta/recipes-connectivity/avahi/avahi.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-connectivity/avahi/avahi.inc +5 -1
@@ -73,6 +73,9 @@ do_configure_prepend() { PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils" +# As avahi doesn't put any files into PN, clear the files list to avoid problems +# if extra libraries appear. +FILES_avahi = "" FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \ ${sysconfdir}/avahi/avahi-autoipd.action \ ${sysconfdir}/dhcp/*/avahi-autoipd \
@@ -122,7 +125,8 @@ do_install() { # don't install /var/run when populating rootfs. Do it through volatile # /var/run of current version is empty, so just remove it. # if /var/run become non-empty in the future, need to install it via volatile - rm -rf ${D}/var/run + rm -rf ${D}${localstatedir}/run + rmdir --ignore-fail-on-non-empty ${D}${localstatedir} rm -rf ${D}${datadir}/dbus-1/interfaces rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1 rm -rf ${D}${libdir}/avahi
Signature · 1 line
1.7.10.4
Quoted 28 lines · Ross Burton
The main avahi recipe doesn't package anything into ${PN}. If a library is enabled but not put into a separate package it ends up in ${PN} and all the packages are renamed using it's soname - ie libdns-sd-daemon.
Avoid this by clearing
FILES_avahiso extra files are unpackaged instead of creating a new package. Also actually remove /var as the comments claim so the avahi package is truly empty.Signed-off-by Ross Burton <[email protected]>--- meta/recipes-connectivity/avahi/avahi.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)meta/recipes-connectivity/avahi/avahi.inc +3
-0@@ -73,6 +73,9 @@ do_configure_prepend() { PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils" +# As avahi doesn't put any files into PN, clear the files list to avoid problems +# if extra libraries appear. +FILES_avahi = "" FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \ ${sysconfdir}/avahi/avahi-autoipd.action \ ${sysconfdir}/dhcp/*/avahi-autoipd \
meta/recipes-connectivity/avahi/avahi.inc do_install() { · line 129
Quoted 6 lines
meta/recipes-connectivity/avahi/avahi.inc +2
-1@@ -122,7 +125,8 @@ do_install() { # don't install /var/run when populating rootfs. Do it through volatile # /var/run of current version is empty, so just remove it. # if /var/run become non-empty in the future, need to install it via volatile - rm -rf ${D}/var/run + rm -rf ${D}${localstatedir}/run + rmdir --ignore-fail-on-non-empty ${D}${localstatedir}
Got a do_install error because of this:
rmdir: failed to remove `/path/to/avahi-ui/0.6.31-r11.0/image/var': No such file or directory
This is because there is a "rmdir ${D}${localstatedir}" in do_install_append(), once the first one removes it successfully, the later one would cause errors.
// Robert
Quoted 4 lines
meta/recipes-connectivity/avahi/avahi.inc +0
-0rm -rf ${D}${datadir}/dbus-1/interfaces rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1 rm -rf ${D}${libdir}/avahi