[meta-virtualization] [fido-kilo][PATCH] dhcp: fix QA issue files installed but not shipped

Josep Puigdemont josep.puigdemont at enea.com
Thu Sep 10 02:15:45 PDT 2015


The value of FILES set in this bbappend was overriden after
bitbake expanded it from the value set in the recipe.
This patch solves this issue:

WARNING: Variable key FILES_${PN}-client (${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf) replaces original key FILES_dhcp-client ( ${sysconfdir}/dhcp/dhclient-exit-hooks                      ).
WARNING: Variable key FILES_${PN}-client (${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf) replaces original key FILES_dhcp-client ( ${sysconfdir}/dhcp/dhclient-exit-hooks                      ).
ERROR: QA Issue: dhcp: Files/directories were installed but not shipped
  /etc/dhcp/dhclient-exit-hooks [installed-vs-shipped]
WARNING: Variable key FILES_${PN}-client (${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf) replaces original key FILES_dhcp-client ( ${sysconfdir}/dhcp/dhclient-exit-hooks                      ).
WARNING: Variable key FILES_${PN}-client (${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf) replaces original key FILES_dhcp-client ( ${sysconfdir}/dhcp/dhclient-exit-hooks                      ).
WARNING: Variable key FILES_${PN}-client (${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf) replaces original key FILES_dhcp-client ( ${sysconfdir}/dhcp/dhclient-exit-hooks                      ).

Signed-off-by: Josep Puigdemont <josep.puigdemont at enea.com>
---
 recipes-connectivity/dhcp/dhcp_%.bbappend | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes-connectivity/dhcp/dhcp_%.bbappend b/recipes-connectivity/dhcp/dhcp_%.bbappend
index a23f7c9..2babae9 100644
--- a/recipes-connectivity/dhcp/dhcp_%.bbappend
+++ b/recipes-connectivity/dhcp/dhcp_%.bbappend
@@ -12,5 +12,6 @@ do_install_append () {
 
 }
 
-FILES_dhcp-client += "${sysconfdir}/dhcp/dhclient-exit-hooks \
-                     "
+FILES_${PN}-client += " \
+	${sysconfdir}/dhcp/dhclient-exit-hooks \
+	"
-- 
1.9.1



More information about the meta-virtualization mailing list