<?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>10963</bug_id>
          
          <creation_ts>2017-01-25 14:44:31 +0000</creation_ts>
          <short_desc>devtool sdk-update fails at subsequent runs</short_desc>
          <delta_ts>2017-01-31 17:31:57 +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>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</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.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Galbusera">gizero</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>70109</commentid>
    <comment_count>0</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2017-01-25 14:44:31 +0000</bug_when>
    <thetext>Observed on poky commit (default configuration):
62d7d4130202d8ede16abf9e7d779361ca70847e

Steps to Repeat
================
$ git clone git://git.yoctoproject.org/poky
$ cd poky
$ git checkout master
$ source oe-init-build-env
$ bitbake core-image-minimal -c populate_sdk_ext

(publish the eSDK over HTTP)
$ oe-publish-sdk tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.2+snapshot.sh /home/gizero/work/upstreaming/sdks/updates

$ cd /home/gizero/work/upstreaming; python -m SimpleHTTPServer 8888 &amp;

(install eSDK from installer)
$ tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.2+snapshot.sh -y -d ~/poky_sdk_master
$ . /home/gizero/poky_sdk_master/environment-setup-i586-poky-linux

(update eSDK from HTTP: first try)
$ devtool sdk-update http://localhost:8888/sdks/updates
(...works as expected. No real updates but no complaints either)

(update eSDK from HTTP: first try)
$ devtool sdk-update http://localhost:8888/sdks/updates

Observed Behavior
==================
At second run:
ERROR: Failed to update metadata as there have been changes made to it. Aborting.
ERROR: Changed files:
b&apos; M poky/bitbake/lib/bb/pysh/pyshtables.py\n&apos;


Expected Behavior
==================
Second &quot;update&quot; should complete successfully</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70110</commentid>
    <comment_count>1</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2017-01-25 14:51:29 +0000</bug_when>
    <thetext>This was discussed on #yocto with RP and it appear to be related to how .gitignore is populated inside the eSDK. 

poky/bitbake/lib/bb/pysh/pyshtables.py in versioned by git while it probably shouldn&apos;t.

Removing the file from the repo (but not from the workingdir) and adding it to .gitignore results in subsequent runs of &apos;devtool sdk-update&apos; to complete smoothly... Of course this needs a solvution on the eSDK generation side</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70111</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-01-25 14:56:28 +0000</bug_when>
    <thetext>Looks like scripts/oe-publish-sdk needs to include this when it writes the .gitignore file...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70160</commentid>
    <comment_count>3</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2017-01-25 21:16:44 +0000</bug_when>
    <thetext>fix submitted to oe-core ML: https://patchwork.openembedded.org/patch/136433/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70294</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-01-31 17:31:57 +0000</bug_when>
    <thetext>Fix merged to master - thanks!

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

    </bug>

</bugzilla>