Patchwork debian.bbclass: inherit package

login
register
mail settings
Submitter Ross Burton
Date July 23, 2014, 10:35 p.m.
Message ID <1406154942-15571-1-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/76515/
State Accepted
Commit e9008b01af51994ca3cf1030a789891731cc1b0b
Headers show

Comments

Ross Burton - July 23, 2014, 10:35 p.m.
This class defines a package_name_hook implementation but as EXPORT_FUNCTIONS is
order-dependent it needs to inherit package.bbclass first to ensure that the
"base" definition in there is defined first, otherwise with a suitable inherit
order of debian and then a packaging class can result in the stub
package_name_hook being incorrectly used.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/debian.bbclass |    3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index d7ea151..1ddb56f 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -8,6 +8,9 @@ 
 #
 # Better expressed as ensure all RDEPENDS package before we package
 # This means we can't have circular RDEPENDS/RRECOMMENDS
+
+inherit package
+
 DEBIANRDEP = "do_packagedata"
 do_package_write_ipk[rdeptask] = "${DEBIANRDEP}"
 do_package_write_deb[rdeptask] = "${DEBIANRDEP}"