Bug 9328 - /meta/recipes-devtools/gcc/gcc-common.inc bb.error print incorrect
Summary: /meta/recipes-devtools/gcc/gcc-common.inc bb.error print incorrect
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.0
Hardware: All Multiple
: Medium minor
Target Milestone: 2.1
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-23 00:01 UTC by Noel Eck
Modified: 2016-04-26 15:08 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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