<?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>11390</bug_id>
          
          <creation_ts>2017-04-20 03:03:03 +0000</creation_ts>
          <short_desc>recipetool: create: git URLs containing git@ are being mangled internally</short_desc>
          <delta_ts>2017-10-04 08:47:02 +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>Scripts and Tools</component>
          <version>2.2</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>2.4 M2</target_milestone>
          
          <blocked>11394</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Stanley Phoong">stanley.cheong.kwan.phoong</assigned_to>
          <cc>brianx.j.kurle</cc>
    
    <cc>ee.peng.yeoh</cc>
    
    <cc>ross.burton</cc>
    
    <cc>shashwatx.pandey</cc>
    
    <cc>wmills</cc>
          
          <qa_contact name="Shashwat Pandey">shashwatx.pandey</qa_contact>
          <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>72694</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-04-20 03:03:03 +0000</bug_when>
    <thetext>If you specify git@ in a git URL it seems that we&apos;re mangling the URL before passing it to git, resulting in the fetch failing:

---------------- snip ----------------
$ devtool add --version 2.4.2 mbedtls &quot;git://git@github.com/ARMmbed/mbedtls.git;protocol=ssh&quot;
NOTE: Fetching git://git///git@github.com/ARMmbed/mbedtls.git;protocol=ssh...
ERROR: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS=&quot;unix:path=/run/user/1000/bus&quot;; export SSH_AGENT_PID=&quot;2093&quot;; export SSH_AUTH_SOCK=&quot;/tmp/ssh-TMxY5yCIKEJ5/agent.2070&quot;; export PATH=&quot;/home/paul/poky/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/paul/poky/poky/scripts:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/sbin:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/sbin:/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/bin:/home/paul/poky/poky/bitbake/bin:/home/paul/poky/poky/build/tmp/hosttools&quot;; export HOME=&quot;/home/paul&quot;; git -c core.fsyncobjectfiles=0 ls-remote ssh://git///git@github.com/ARMmbed/mbedtls.git  failed with exit code 128, output:
ssh: connect to host git port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ERROR: Command &apos;script -e -q -c &quot;recipetool --color=always create --devtool -o /tmp/devtool6p1w7894 &apos;git://git@github.com/ARMmbed/mbedtls.git;protocol=ssh&apos;  -x /home/paul/poky/poky/build/workspace/sources/devtoolsrcw9ofk69f -N mbedtls -V 2.4.2&quot; /dev/null&apos; failed
---------------- snip ----------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74949</commentid>
    <comment_count>1</comment_count>
    <who name="Stanley Phoong">stanley.cheong.kwan.phoong</who>
    <bug_when>2017-07-12 09:30:54 +0000</bug_when>
    <thetext>Pushed commit to mailing list for review:
http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139482.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75126</commentid>
    <comment_count>2</comment_count>
    <who name="Stanley Phoong">stanley.cheong.kwan.phoong</who>
    <bug_when>2017-07-19 01:04:21 +0000</bug_when>
    <thetext>Merged into Poky master:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0df60c7de2e4a3ccbab28e338ee54a12c3008089</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77292</commentid>
    <comment_count>3</comment_count>
    <who name="Shashwat Pandey">shashwatx.pandey</who>
    <bug_when>2017-10-03 06:54:25 +0000</bug_when>
    <thetext>Verified, issue is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77331</commentid>
    <comment_count>4</comment_count>
    <who name="Shashwat Pandey">shashwatx.pandey</who>
    <bug_when>2017-10-04 08:47:02 +0000</bug_when>
    <thetext>Verification logs:

a) Checkout to origin/master branch to get the fixes.

b) Perform devtool add --version 2.4.2 mbedtls &quot;git://git@github.com/ARMmbed/mbedtls.git;protocol=https&quot;

c) Verify that the SRC_URI generated with correct URL:

SRC_URI = &quot;git://git@github.com/ARMmbed/mbedtls.git;protocol=https&quot;

d) Verify bitbake mbedtls can build successfully

pokyuser@470685951ad4:/workdir/build$ bitbake mbedtls
Loading cache: 100% |##############################################################################################################################################################| Time: 0:00:00
Loaded 1299 entries from dependency cache.
Parsing recipes: 100% |############################################################################################################################################################| Time: 0:00:00
Parsing of 819 .bb files complete (818 cached, 1 parsed). 1276 targets, 44 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.35.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.4&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-poky
meta-yocto-bsp    = &quot;master:fcdfe09d9cc4e2977bd602dfd18f729cd9f6d73d&quot;
workspace         = &quot;&lt;unknown&gt;:&lt;unknown&gt;&quot;

Initialising tasks: 100% |#########################################################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |#################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: mbedtls-2.4.2+git999-r0 do_populate_lic: mbedtls: No generic license file exists for: Unknown in any provider
NOTE: mbedtls: compiling from external source tree /workdir/build/workspace/sources/mbedtls
NOTE: Tasks Summary: Attempted 537 tasks of which 525 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>