<?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>9671</bug_id>
          
          <creation_ts>2016-05-24 15:11:56 +0000</creation_ts>
          <short_desc>UPSTREAM_CHECK_* variables needs documentation</short_desc>
          <delta_ts>2016-06-09 16:33:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>2.1</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>8 June 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>bluelightning</cc>
    
    <cc>maxin.john</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62423</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-05-24 15:11:56 +0000</bug_when>
    <thetext>The variable mentioned on the summary is not documented. It was documented on a include file but finally removed as seen on [1]. The latter can be used as a base for documenting it on the reference manual.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121766.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62433</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-05-25 11:31:33 +0000</bug_when>
    <thetext>Actually, all three variables should be added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62441</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-05-25 14:37:07 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Actually, all three variables should be added.

Great. I have updated the summary to indicate the set of related variables.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62718</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-07 18:05:57 +0000</bug_when>
    <thetext>Hi,

Here some very simple definitions for the three variables in the link.  Please look these over and think about what the user might need to know in order to apply them.  I just based things on that patch that removed the definitions.  

Also, I am not sure if the &quot;_pn&quot; part should be part of the variable name in the glossary or if that should be in the example only?  I could use some explanation on that point. 

Here are the new definitions:

 * http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_GITTAGREGEX_pn

 * http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_REGEX_pn

 * http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_URI_pn

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62722</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-06-07 20:54:54 +0000</bug_when>
    <thetext>We don&apos;t want _pn on the end of the variable name entries, that&apos;s part of the recipe name override. Also, we need to be clear up-front as we are with other class-specific variables that these variables are only used by distrodata.bbclass for checking for new upstream versions - at the moment you&apos;re implying that they are used in normal fetching, they definitely aren&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62734</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-07 22:23:41 +0000</bug_when>
    <thetext>Thanks Paul,

See the latest here:

 * http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_GITTAGREGEX

 * http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_REGEX

 * http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_URI

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62760</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-08 10:58:15 +0000</bug_when>
    <thetext>&quot;For recipes inheriting the distrodata class, the UPSTREAM_CHECK_GITTAGREGEX variable causes the OpenEmbedded build system to use Git tabs to determine which upstream release version to fetch when fetching source code from an upstream Git repository.&quot;

Replace with &quot;For recipes inheriting the distrodata class, a check for what the latest upstream version is can be performed by calling &apos;bitbake -c checkpkg&apos;. When source code is provided from git repositories, the latest upstream version is determined by picking the latest tag from the list of all repository tags. UPSTREAM_CHECK_GITTAGREGEX can be used to provide a regular expression to filter only the relevant tags, in case the default filter doesn&apos;t work correctly&quot;.

&quot;For recipes inheriting the distrodata class, the UPSTREAM_CHECK_URI variable causes the package checking system to get the latest version of the package when source files are fetched from an upstream Git repository.&quot;

Replace with &quot;For recipes inheriting the distrodata class, a check for what the latest upstream version is can be performed by calling &apos;bitbake -c checkpkg&apos;. When the source code is provided from tarballs, the latest version is determined by fetching the directory listing where the tarball is and attempting to find a later tarball. When this approach does not work, UPSTREAM_CHECK_URI can be used to provide a different URI that contains the link to the latest tarball&quot;.

Also, drop &apos;-recipe&apos; suffix from all three variables.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62762</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-06-08 11:06:11 +0000</bug_when>
    <thetext>Also, recipes don&apos;t inherit distrodata, distrodata is supposed to be enabled globally through INHERIT +=. Thus it would be more appropriate to say &quot;When using the distrodata class ...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62771</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-08 15:29:18 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; &quot;For recipes inheriting the distrodata class, the UPSTREAM_CHECK_GITTAGREGEX
&gt; variable causes the OpenEmbedded build system to use Git tabs to determine
&gt; which upstream release version to fetch when fetching source code from an
&gt; upstream Git repository.&quot;
&gt; 
&gt; Replace with &quot;For recipes inheriting the distrodata class, a check for what
&gt; the latest upstream version is can be performed by calling &apos;bitbake -c
&gt; checkpkg&apos;. When source code is provided from git repositories, the latest
&gt; upstream version is determined by picking the latest tag from the list of
&gt; all repository tags. UPSTREAM_CHECK_GITTAGREGEX can be used to provide a
&gt; regular expression to filter only the relevant tags, in case the default
&gt; filter doesn&apos;t work correctly&quot;.

I used this as a base.  We try to keep things as active as possible for the writing style.  Look it over and make sure that the changes I made did not alter any technical meaning.

&gt; 
&gt; &quot;For recipes inheriting the distrodata class, the UPSTREAM_CHECK_URI
&gt; variable causes the package checking system to get the latest version of the
&gt; package when source files are fetched from an upstream Git repository.&quot;
&gt; 
&gt; Replace with &quot;For recipes inheriting the distrodata class, a check for what
&gt; the latest upstream version is can be performed by calling &apos;bitbake -c
&gt; checkpkg&apos;. When the source code is provided from tarballs, the latest
&gt; version is determined by fetching the directory listing where the tarball is
&gt; and attempting to find a later tarball. When this approach does not work,
&gt; UPSTREAM_CHECK_URI can be used to provide a different URI that contains the
&gt; link to the latest tarball&quot;.

Same thing here.

&gt; 
&gt; Also, drop &apos;-recipe&apos; suffix from all three variables.

Dropped from the examples</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62772</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-08 15:33:09 +0000</bug_when>
    <thetext>So there are some new versions up now... Let me know of further changes.

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62780</commentid>
    <comment_count>10</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-08 17:29:12 +0000</bug_when>
    <thetext>&quot;For recipes that use the distrodata class, this variable causes the OpenEmbedded build system to check for what the latest upstream version is by calling bitbake -c checkpkg.&quot;

That is not correct. The variable itself does not cause OE build system to check anything. The check happens when the user calls &apos;bitbake -c checkpkg&apos; and distrodata class is in use globally (not in recipes individually). The variable can be used to adjust the default behavior, but it is not required as such to perform the check.

Let&apos;s try again:

&quot;When distrodata class is enabled globally, a user can perform a check for what the latest upstream version is by calling &apos;bitbake -c checkpkg &lt;recipe&gt;&apos;. If the recipe source code is provided from git repositories, OE build system determines the latest upstream version by picking the latest tag from the list of all repository tags.  You can use the UPSTREAM_CHECK_GITTAGREGEX variable to provide a regular expression to filter only the relevant tags should the default filter not work correctly.&quot;

&quot;Use the UPSTREAM_CHECK_REGEX variable to specify a different regular expression instead of the default one when the package checking system is parsing the page found using UPSTREAM_CHECK_URI.&quot;

&quot;When distrodata class is enabled globally, a user can perform a check for what the latest upstream version is by calling &apos;bitbake -c checkpkg &lt;recipe&gt;&apos;. If the source code is provided from tarballs, the latest version is determined by fetching the directory listing where the tarball is and attempting to find a later tarball. When this approach does not work, you can use UPSTREAM_CHECK_URI to provide a different URI that contains the link to the latest tarball. &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62781</commentid>
    <comment_count>11</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-08 17:52:49 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; &quot;For recipes that use the distrodata class, this variable causes the
&gt; OpenEmbedded build system to check for what the latest upstream version is
&gt; by calling bitbake -c checkpkg.&quot;
&gt; 
&gt; That is not correct. The variable itself does not cause OE build system to
&gt; check anything. The check happens when the user calls &apos;bitbake -c checkpkg&apos;
&gt; and distrodata class is in use globally (not in recipes individually). The
&gt; variable can be used to adjust the default behavior, but it is not required
&gt; as such to perform the check.

My bad... I had that messed up saying the variable caused the OE build system to do that.  I have another version based on your suggestions: http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_GITTAGREGEX

&gt; 
&gt; Let&apos;s try again:
&gt; 
&gt; &quot;When distrodata class is enabled globally, a user can perform a check for
&gt; what the latest upstream version is by calling &apos;bitbake -c checkpkg
&gt; &lt;recipe&gt;&apos;. If the recipe source code is provided from git repositories, OE
&gt; build system determines the latest upstream version by picking the latest
&gt; tag from the list of all repository tags.  You can use the
&gt; UPSTREAM_CHECK_GITTAGREGEX variable to provide a regular expression to
&gt; filter only the relevant tags should the default filter not work correctly.&quot;
&gt; 
&gt; &quot;Use the UPSTREAM_CHECK_REGEX variable to specify a different regular
&gt; expression instead of the default one when the package checking system is
&gt; parsing the page found using UPSTREAM_CHECK_URI.&quot;

So I am assuming you wanted this second one for the UPSTREAM_CHECK_REGEX variable and not part of the first one?  If not let me know.  http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_REGEX

&gt; 
&gt; &quot;When distrodata class is enabled globally, a user can perform a check for
&gt; what the latest upstream version is by calling &apos;bitbake -c checkpkg
&gt; &lt;recipe&gt;&apos;. If the source code is provided from tarballs, the latest version
&gt; is determined by fetching the directory listing where the tarball is and
&gt; attempting to find a later tarball. When this approach does not work, you
&gt; can use UPSTREAM_CHECK_URI to provide a different URI that contains the link
&gt; to the latest tarball. &quot;

See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_URI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62783</commentid>
    <comment_count>12</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-08 18:06:39 +0000</bug_when>
    <thetext>Almost there :) I would only amend the first sentence in _GITTAGREGEX and _URI:

&quot;When the distrodata class is enabled globally, you can perform a check for what the latest upstream version is by calling bitbake -c checkpkg. &quot;

to say that it&apos;s checking the upstream source code version and is used per-recipe:

&quot;When the distrodata class is enabled globally, you can perform a per-recipe check for what the latest upstream source code version is by calling bitbake -c checkpkg &lt;recipe&gt;. &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62784</commentid>
    <comment_count>13</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-08 18:20:06 +0000</bug_when>
    <thetext>Ok - Hopefully we have it now... 

http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_GITTAGREGEX

http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_REGEX

http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-UPSTREAM_CHECK_URI

Thanks --- let me know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62786</commentid>
    <comment_count>14</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-08 18:21:50 +0000</bug_when>
    <thetext>Yep, looks good now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62843</commentid>
    <comment_count>15</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-06-09 16:33:15 +0000</bug_when>
    <thetext>Thanks, 

Updating the bug to RESOLVED and setting the Doc flag to &quot;Done&quot;.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>