<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9834</bug_id>
          
          <creation_ts>2016-06-28 06:55:26 +0000</creation_ts>
          <short_desc>with python upgraded to version 3, &quot;yocto-kernel patch add&quot; script failed</short_desc>
          <delta_ts>2016-07-08 16:35:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ke Zou">ke.zou</reporter>
          <assigned_to name="Humberto Ibarra">humberto.ibarra.lopez</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63387</commentid>
    <comment_count>0</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2016-06-28 06:55:26 +0000</bug_when>
    <thetext>test environment:
poky commit: 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098

test case:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=305
use yocto-kernel to add patches for a BSP kernel recipe

follow the steps of this test case
create a qemu bsp ---- add a kernel patch
an error occurs:


Traceback (most recent call last):
  File &quot;/buildarea/jenkins-yocto/poky/scripts/yocto-kernel&quot;, line 394, in &lt;module&gt;
    ret = main()
  File &quot;/buildarea/jenkins-yocto/poky/scripts/yocto-kernel&quot;, line 370, in main
    start_logging(loglevel)
  File &quot;/buildarea/jenkins-yocto/poky/scripts/yocto-kernel&quot;, line 354, in start_logging
    logging.basicConfig(filname = &apos;yocto-kernel.log&apos;, filemode = &apos;w&apos;, level=loglevel)
  File &quot;/usr/lib/python3.4/logging/__init__.py&quot;, line 1760, in basicConfig
    raise ValueError(&apos;Unrecognised argument(s): %s&apos; % keys)
ValueError: Unrecognised argument(s): filname, filemode

############################################################
Start to test case 305: add a new patch to BSP
############################################################

/buildarea/jenkins-yocto/workspace/Yocto2.1-yocto-bsp_create_qemu_bsp/build_1
BSP: myqemumips64
PATCH: /buildarea/jenkins-yocto/patches/yocto-testmod.patch
Traceback (most recent call last):
  File &quot;/buildarea/jenkins-yocto/poky/scripts/yocto-kernel&quot;, line 394, in &lt;module&gt;
    ret = main()
  File &quot;/buildarea/jenkins-yocto/poky/scripts/yocto-kernel&quot;, line 370, in main
    start_logging(loglevel)
  File &quot;/buildarea/jenkins-yocto/poky/scripts/yocto-kernel&quot;, line 354, in start_logging
    logging.basicConfig(filname = &apos;yocto-kernel.log&apos;, filemode = &apos;w&apos;, level=loglevel)
  File &quot;/usr/lib/python3.4/logging/__init__.py&quot;, line 1760, in basicConfig
    raise ValueError(&apos;Unrecognised argument(s): %s&apos; % keys)
ValueError: Unrecognised argument(s): filname, filemode
yocto-kernel: patch add failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63399</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-06-28 14:27:10 +0000</bug_when>
    <thetext>Looks to me that this commit fixed the reported issue. Moving it to NEEDINFO asking the reporter to try to reproduce it again, this time considering the 0aa5c commit.

commit 0aa5c2759901c6e1976eb34ce1d83a584a90f5a6
Author: Humberto Ibarra &lt;humberto.ibarra.lopez@intel.com&gt;
Date:   Thu Jun 9 11:01:40 2016 -0500

    scripts/yocto-bsp: Fixed typo in parameter that was causing exception
    
    There is a typo in the logging parameters, &quot;filname&quot; is being used instead
    of &quot;filename&quot;. This didn&apos;t cause issues before since python 2 didn&apos;t
    validate unused parameters but with python &gt;= 3.4.3 an exception is
    thrown. This patch fixes this parameter name.
    
    [Yocto #9736]
    
    (From meta-yocto rev: aae5c2c39f64be87152b2e5470b50681c0f54670)
    
    Signed-off-by: Humberto Ibarra &lt;humberto.ibarra.lopez@intel.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63525</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-06-30 15:02:51 +0000</bug_when>
    <thetext>I will try to reproduce it containing the missing patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63583</commentid>
    <comment_count>3</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-07-01 15:36:52 +0000</bug_when>
    <thetext>Sent Patch:

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123418.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63720</commentid>
    <comment_count>4</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-07-07 14:55:52 +0000</bug_when>
    <thetext>Already in master

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=21282724d839d964b50fe640be1b707f7b421933</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63761</commentid>
    <comment_count>5</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-07-08 16:35:07 +0000</bug_when>
    <thetext>Also

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6a2753bc3570612df4ad57b8509ee371da8839fb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>