summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-10 09:24:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-11 18:03:31 +0100
commita246af9bf76d6a06e6d5f371710e54944e007161 (patch)
treea740528bd0da6ca469e438af29938de1234772be
parenta50af4d540539838e9ef70ba3d91ffb4e8aa353d (diff)
downloadpoky-a246af9bf76d6a06e6d5f371710e54944e007161.tar.gz
package.bbclass: Drop EXPORT_FUNCTIONS use against mapping_rename_hook
The usage of this function renaming and it being called using bb.build.exec_func() causes needless indirection loops, confusing log files and seems generally pointless. This simplification makes the process much simpler and faster. I can't come up with a good reason why the export_functions functionality is needed for this function. (From OE-Core rev: 74daad03ca29a03b0005f7d2b90a0347d5b583a5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass4
-rw-r--r--meta/classes/package_deb.bbclass2
-rw-r--r--meta/classes/package_ipk.bbclass2
-rw-r--r--meta/classes/package_rpm.bbclass2
4 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 44e551f6dd..3d0f406b80 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1788,7 +1788,7 @@ addtask package_write before do_build after do_package
1788# Helper functions for the package writing classes 1788# Helper functions for the package writing classes
1789# 1789#
1790 1790
1791python package_mapping_rename_hook () { 1791def mapping_rename_hook(d):
1792 """ 1792 """
1793 Rewrite variables to account for package renaming in things 1793 Rewrite variables to account for package renaming in things
1794 like debian.bbclass or manual PKG variable name changes 1794 like debian.bbclass or manual PKG variable name changes
@@ -1799,6 +1799,4 @@ python package_mapping_rename_hook () {
1799 runtime_mapping_rename("RPROVIDES", d) 1799 runtime_mapping_rename("RPROVIDES", d)
1800 runtime_mapping_rename("RREPLACES", d) 1800 runtime_mapping_rename("RREPLACES", d)
1801 runtime_mapping_rename("RCONFLICTS", d) 1801 runtime_mapping_rename("RCONFLICTS", d)
1802}
1803 1802
1804EXPORT_FUNCTIONS mapping_rename_hook
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index dc0f96366a..4096fa2b89 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -330,7 +330,7 @@ python do_package_deb () {
330 raise bb.build.FuncFailed("Missing field for deb generation: %s" % value) 330 raise bb.build.FuncFailed("Missing field for deb generation: %s" % value)
331 # more fields 331 # more fields
332 332
333 bb.build.exec_func("mapping_rename_hook", localdata) 333 mapping_rename_hook(localdata)
334 334
335 rdepends = bb.utils.explode_dep_versions(localdata.getVar("RDEPENDS", True) or "") 335 rdepends = bb.utils.explode_dep_versions(localdata.getVar("RDEPENDS", True) or "")
336 for dep in rdepends: 336 for dep in rdepends:
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 0e4fea8d53..73ec0ee14e 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -367,7 +367,7 @@ python do_package_ipk () {
367 raise bb.build.FuncFailed("Missing field for ipk generation: %s" % value) 367 raise bb.build.FuncFailed("Missing field for ipk generation: %s" % value)
368 # more fields 368 # more fields
369 369
370 bb.build.exec_func("mapping_rename_hook", localdata) 370 mapping_rename_hook(localdata)
371 371
372 rdepends = bb.utils.explode_dep_versions(localdata.getVar("RDEPENDS", True) or "") 372 rdepends = bb.utils.explode_dep_versions(localdata.getVar("RDEPENDS", True) or "")
373 rrecommends = bb.utils.explode_dep_versions(localdata.getVar("RRECOMMENDS", True) or "") 373 rrecommends = bb.utils.explode_dep_versions(localdata.getVar("RRECOMMENDS", True) or "")
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 623069e377..2da7a8b85c 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -700,7 +700,7 @@ python write_specfile () {
700 translate_vers('RCONFLICTS', localdata) 700 translate_vers('RCONFLICTS', localdata)
701 701
702 # Map the dependencies into their final form 702 # Map the dependencies into their final form
703 bb.build.exec_func("mapping_rename_hook", localdata) 703 mapping_rename_hook(localdata)
704 704
705 splitrdepends = strip_multilib(localdata.getVar('RDEPENDS', True), d) or "" 705 splitrdepends = strip_multilib(localdata.getVar('RDEPENDS', True), d) or ""
706 splitrrecommends = strip_multilib(localdata.getVar('RRECOMMENDS', True), d) or "" 706 splitrrecommends = strip_multilib(localdata.getVar('RRECOMMENDS', True), d) or ""