<?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>12617</bug_id>
          
          <creation_ts>2018-03-21 04:55:41 +0000</creation_ts>
          <short_desc>[DEVTOOL] &apos;devtool add&apos; - problem with parsing port number in link</short_desc>
          <delta_ts>2019-06-25 20:35:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.4.2</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>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lukasz Majewski">l.majewski</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>stephano</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <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>79889</commentid>
    <comment_count>0</comment_count>
    <who name="Lukasz Majewski">l.majewski</who>
    <bug_when>2018-03-21 04:55:41 +0000</bug_when>
    <thetext>Dear All,

I&apos;ve encountered following problem with using &quot;devtool add&quot;:

devtool add foo ssh://git@XXX:2222/dir/foo-repository.git

The error output:
ERROR: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS=&quot;unix:abstract=/tmp/dbus-dDvY4fEEnc&quot;; export SSH_AUTH_SOCK=&quot;/home/user/.byobu/.ssh-agent&quot;; export GIT_SSL_CAINFO=&quot;/home/user/ecs_sdk/buildtools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt&quot;; export PATH=&quot;/home/user/ecs_sdk/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/user/ecs_sdk/layers/poky/scripts:/home/user/ecs_sdk/tmp/work/recipetool-of2xoznp/work/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/user/ecs_sdk/tmp/work/recipetool-of2xoznp/work/recipe-sysroot/usr/bin/crossscripts:/home/user/ecs_sdk/tmp/work/recipetool-of2xoznp/work/recipe-sysroot-native/usr/sbin:/home/user/ecs_sdk/tmp/work/recipetool-of2xoznp/work/recipe-sysroot-native/usr/bin:/home/user/ecs_sdk/tmp/work/recipetool-of2xoznp/work/recipe-sysroot-native/sbin:/home/user/ecs_sdk/tmp/work/recipetool-of2xoznp/work/recipe-sysroot-native/bin:/home/user/ecs_sdk/layers/poky/bitbake/bin:/home/user/ecs_sdk/tmp/hosttools&quot;; export HOME=&quot;/home/user&quot;; git -c core.fsyncobjectfiles=0 ls-remote ssh://git@XXX/2222/dir/foo-repository.git  failed with exit code 128, output:
Repository not found
The requested repository does not exist, or you do not have permission to access it.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


It is strange, since with &quot;normal&quot; bitbake processing of recipes such syntax is supported.

Workaround for devtool add:

extend local .ssh/config
Host CCC
     Hostname XXX
     User git
     Port 2222
     PreferredAuthentications publickey
     IdentityFile ~/.ssh/foo_repo_git


And then:
devtool add foo ssh://CCC/dir/foo-repository.git;branch=master

It works then.

Best regards,
Łukasz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84315</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2019-06-25 20:35:49 +0000</bug_when>
    <thetext>This was fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6c951c5a5ea012f029f8a3aed9e3c9e3f81ac61e .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>