Bug 9328

Summary: /meta/recipes-devtools/gcc/gcc-common.inc bb.error print incorrect
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Noel Eck <noel>
Component: devtools / tool chainAssignee: Joshua Lock <joshuagloe>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 2.0   
Target Milestone: 2.1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Noel Eck 2016-03-23 00:01:10 UTC
Python print statement prints out tune and availtunes incorrectly.


diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 6f2f224..e4fd4d6 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -54,7 +54,7 @@ def get_gcc_multiarch_setting(bb, d):
 def get_tune_parameters(tune, d):
     availtunes = d.getVar('AVAILTUNES', True)
     if tune not in availtunes.split():
-        bb.error('The tune: %s is not one of the available tunes: %s', tune or None, availtunes)
+        bb.error('The tune: %s is not one of the available tunes: %s' % (tune or None, availtunes))
Comment 1 Joshua Lock 2016-03-24 16:25:33 UTC
Hi Noel, this fix looks good. Would you be able to submit this as a patch to the openembedded-core mailing list?

The openembedded wiki has some contribution guidelines:

http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
Comment 2 Noel Eck 2016-04-11 21:45:34 UTC
(In reply to comment #1)
> Hi Noel, this fix looks good. Would you be able to submit this as a patch to
> the openembedded-core mailing list?
> 
> The openembedded wiki has some contribution guidelines:
> 
> http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded

Done.
Comment 3 Joshua Lock 2016-04-12 09:14:26 UTC
Thanks Noel!


Changing the status to "in progress review" as patch has been submitted:
http://lists.openembedded.org/pipermail/openembedded-core/2016-April/120125.html