<?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>10215</bug_id>
          
          <creation_ts>2016-09-03 09:25:00 +0000</creation_ts>
          <short_desc>Add a class which allows buiding git upstream versions of code using BBCLASSEXTEND</short_desc>
          <delta_ts>2017-03-20 17:32:25 +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>core</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65784</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-03 09:25:00 +0000</bug_when>
    <thetext>In many cases we have a latest version recipe and also a _git.bb recipe which builds a version taken from the upstream scm. We also have users who bbappend our base recipes to get latest upstream versions.

I&apos;d like to explore whether we could put this metadata about where the upstream git repo is, into the main recipe to make some of these usages easier. Another benefit could potentially be a comeback of &quot;poky-bleeding&quot; where the idea was to test upstream code changes so we could react to them, before they make it into release tarballs.

The idea would be a gitupstream.bbclass which would:

* Rename GITSRC_URI to SRC_URI
* Rename GITSRCREV to SRCREV
* Set ${S} = ${WORKDIR}/git
* Set DEFAULT_PREFERENCE = &quot;-1&quot;
* Update PV to add +git${SRVPV}

It might optionally be able to so some kind of search and replace on SRC_URI to place the git upstream in there for complex recipes, I&apos;m undecided about this right now.

It would be activated by the user marking up the recipe with GITSRC_URI and GITSRCREV and then adding &quot;gitupstream&quot; to BBCLASSEXTEND.

I&apos;m sure there are some issues we&apos;ll run into and it won&apos;t be quite this simple but I thought the idea worth documenting and perhaps investigating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68373</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-11-16 17:24:26 +0000</bug_when>
    <thetext>Status: I&apos;ve a prototype that works fine for target recipes, but also working for native is &quot;non trivial&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71458</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-03-20 17:32:25 +0000</bug_when>
    <thetext>Merged in oe-core c48ef2d7c7198232846f36a975c673cc57f4a090.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>