<?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>7947</bug_id>
          
          <creation_ts>2015-07-02 16:15:49 +0000</creation_ts>
          <short_desc>no log created by upgradehelper.py when trying to upgrade a recipe</short_desc>
          <delta_ts>2016-10-26 09:27:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Automated Update Handler</product>
          <component>Automatic Update Handler</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.9 M2</target_milestone>
          
          <blocked>7488</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Costin">costin.c.constantin</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>richard.purdie</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52112</commentid>
    <comment_count>0</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-07-02 16:15:49 +0000</bug_when>
    <thetext>Hello,

Got hands on the upgradehelper.py and tried to do a recipe update. After doing so there was no log created, though the tool reported it should be one.

Here are my action steps:

1) have a cloned poky first
2) clone updatehelper under poky/build:  git clone http://git.yoctoproject.org/git/auto-upgrade-helper
3) create file upgrade-helper.conf under build dir: upgrade-helper/upgrade-helper.conf

[settings]
clean_sstate=yes
clean_tmp=yes
drop_previous_commits=yes

4) add following lines in local.conf:
INHERIT =+ &quot;distrodata&quot;
require conf/distro/include/recipe_color.inc
require conf/distro/include/distro_alias.inc
require conf/distro/include/maintainers.inc
require conf/distro/include/upstream_tracking.inc

INHERIT =+ &quot;buildhistory&quot;
BUILDHISTORY_COMMIT = &quot;1&quot;

5) try to update a recipe (in my case tried the eg. in README file):

cosscat@ubnt:/media/poky/8poky/build/auto-upgrade-helper$ ./upgradehelper.py xmodmap --to_version 1.0.9
ERROR: smtp host not set! Sending emails disabled!
ERROR: &apos;From&apos; address not set! Sending emails disabled!
INFO: ATTEMPT PACKAGE 1/1
INFO: xmodmap: Upgrading to 1.0.9
INFO: xmodmap: Detecting git repository location ...
INFO: xmodmap: Cleaning git repository of temporary branch ...
INFO: xmodmap: Fetch &amp; unpack original version ...
INFO: xmodmap: Renaming recipes, reset PR (if exists) ...
ERROR: xmodmap: The following git command failed: mv -f /media/poky/8poky/meta/recipes-graphics/xorg-app/xmodmap_1.0.9.bb /media/poky/8poky/meta/recipes-graphics/xorg-app/xmodmap_1.0.9.bb
ERROR: xmodmap: Upgrade FAILED! Logs and/or file diffs are available in /media/poky/8poky/build/upgrade-helper/work/xmodmap
INFO: xmodmap: Auto commit changes ...
INFO: xmodmap: Nothing to commit!
cosscat@ubnt:/media/poky/8poky/build/auto-upgrade-helper$

I expected the update to fail, because my recipe is already at latest ver. (http://xorg.freedesktop.org/releases/individual/app/), but was expecting to see a log file as indicated in the command output.

cosscat@ubnt:/media/poky/8poky/build/upgrade-helper/work/xmodmap$ ls
cosscat@ubnt:/media/poky/8poky/build/upgrade-helper/work/xmodmap$

I will try to manually downgrade the recipe to 1.0.8 and then try again to see what happens.

Tested on AUH hash: 48ec9d47525b076276e48023f21fff732d18e24d

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52716</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-07-29 20:53:35 +0000</bug_when>
    <thetext>At,

https://lists.yoctoproject.org/pipermail/yocto/2015-July/025815.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52888</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-08-06 20:48:34 +0000</bug_when>
    <thetext>At,

http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/commit/?id=23c3146631893d70884003faae5996d35d34dd0d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59096</commentid>
    <comment_count>3</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2016-02-16 11:50:59 +0000</bug_when>
    <thetext>Hello,

Tested on latest commit da6a109ae3083575988fb86533d42f951bc604b2 following comment#1&apos;s steps.
This time a message is displayed on the screen.

somemachine:~/poky/1build/auto-upgrade-helper$ ./upgradehelper.py m4 --to_version 1.4.17
ERROR: smtp host not set! Sending emails disabled!
ERROR: &apos;From&apos; address not set! Sending emails disabled!
INFO: Building gcc runtimes ...
INFO:  building gcc runtime for qemux86
INFO:  building gcc runtime for qemux86-64
INFO:  building gcc runtime for qemuarm
INFO:  building gcc runtime for qemumips
INFO:  building gcc runtime for qemuppc
INFO: ########### The list of recipes to be upgraded #############
INFO: ############################################################

Marking as verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>