<?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>12915</bug_id>
          
          <creation_ts>2018-09-04 15:21:46 +0000</creation_ts>
          <short_desc>hosttools is missing &apos;git-lfs&apos;</short_desc>
          <delta_ts>2018-09-05 21:27:52 +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.4.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="JoergS">joerg</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <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>81498</commentid>
    <comment_count>0</comment_count>
    <who name="JoergS">joerg</who>
    <bug_when>2018-09-04 15:21:46 +0000</bug_when>
    <thetext>the default HOSTTOOLS configuration (poky/meta/conf/bitbake.conf) contains &apos;git&apos;, but not &apos;git-lfs&apos;; as such any calls to &quot;git lfs ...&quot; result in a failure - even when it is available on the host!

imho, &apos;git-lfs&apos; should be included in the default HOSTTOOLS, at least when &apos;largefile&apos; is given in DISTRO_FEATURES.
-- or how else should developers &quot;enable&quot; git-lfs if they need to?

possible resolutions:
 a) poky/meta/conf/bitbake.conf:
   add &quot;git-lfs&quot; to HOSTTOOLS_NONFATAL - in case it&apos;s not installed on the host

 b) poky/meta/conf/layer.conf:
   add HOSTTOOLS_NONFATAL += &quot;${@bb.utils.contains(&apos;DISTRO_FEATURES&apos;, &apos;largefile&apos;, &apos;git-lfs&apos;, &apos;&apos;, d)}&quot;



--- if that is all wrong, I&apos;d appreciate a link to any documentation describing how to get access to git-lfs within a recipe!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81507</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-05 20:40:16 +0000</bug_when>
    <thetext>We don&apos;t require users to install git-lfs and as such it wouldn&apos;t be in HOSTTOOLS. If you need it, I&apos;d expect there to be a git-lfs-native recipe which you could add to DEPENDS which would then make it available.

You can obviously work around this by adding to HOSTTOOLS locally but I don&apos;t think the project will do that by default.

Also, the largefile DISTRO_FEATURE is something totally different to git-lfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81510</commentid>
    <comment_count>2</comment_count>
    <who name="JoergS">joerg</who>
    <bug_when>2018-09-05 21:23:53 +0000</bug_when>
    <thetext>well, we moved from Yocto-2.0 where no HOSTTOOLS was and all host-tools were directly accessible inside any recipe.
not having the same behavior seemed to be a bug..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81511</commentid>
    <comment_count>3</comment_count>
    <who name="JoergS">joerg</who>
    <bug_when>2018-09-05 21:27:52 +0000</bug_when>
    <thetext>...and it&apos;s even worse: when one does a &quot;bitbake -c devshell&quot; to find out why a git-lfs wouldn&apos;t work inside his recipe, he only finds out that git-lfs DOES WORK in the devshell, he&apos;ll be confused.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>