<?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>5918</bug_id>
          
          <creation_ts>2014-03-06 07:25:25 +0000</creation_ts>
          <short_desc>git submodule init doesn&apos;t work on target</short_desc>
          <delta_ts>2014-03-27 09:54:06 +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>1.6</version>
          <rep_platform>All</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>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>40908</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-03-06 07:25:25 +0000</bug_when>
    <thetext>Using poky master 8b64ef14408cd286abb414df998c0479d4017bb6. The git package was installed on target.

On the target:
# mkdir test
# cd test
# git init
Initialized empty Git repository in /home/root/test/.git/
# git submodule init
/usr/lib/git/git-core/git-submodule: line 159: /home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl: No such file or directory

The git-submodule script has a hardcoded path from the build host that needs to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40909</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-03-06 07:28:49 +0000</bug_when>
    <thetext># grep -Hnr &apos;sysroots&apos; /usr/lib/git/git-core
/usr/lib/git/git-core/git-am:305:                       /home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl -ne &apos;BEGIN { $subject = 0 }
/usr/lib/git/git-core/git-am:337:                       LANG=C LC_ALL=C /home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl -M&apos;POSIX qw(strftime)&apos; -ne &apos;BEGIN { $subject = 0 }
/usr/lib/git/git-core/git-submodule:159:        /home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl -e &apos;
/usr/lib/git/git-core/git-request-pull:109:ref=$(git ls-remote &quot;$url&quot; | /home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl -e &quot;$find_matching_ref&quot; &quot;$head&quot; &quot;$headrev&quot; &quot;$tag_name&quot;)
/usr/lib/git/git-core/git-instaweb:6:PERL=&apos;/home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl&apos;
/usr/lib/git/git-core/git-instaweb:584:#!/home/build/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41802</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-03-26 22:29:46 +0000</bug_when>
    <thetext>Patch out for review on the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41816</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-03-27 09:54:06 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3ae9225905093f5819cad5c95380be7c2f44b128</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>