[yocto] git works standalone, but not within yocto for weird Azure Devops ssh uri

Jakob Hasse jakob.hasse at qiio.com
Wed Sep 19 02:05:32 PDT 2018


Hello,

I have several projects hosted in Azure DepOs (former Visual Studio online).
When I glone them with git inside my host machine or the Ubuntu 16.04 
container, everything works fine. When I use bitbake to build the recipe 
with the same ssh uri, it fails (yocto inside Ubuntu 16.04 container).

The SCR_URI in my recipe looks like this:

SRC_URI = "gitsm://XXX@vs-ssh.visualstudio.com:v3/XXX-app"

What strikes me is the weird "v3" in the app uri, with the other ssh 
uris not containing this but the ssh port (22) instead, I didn't have 
any problem so far.
I also upgraded git to version 2.17 or 2.19 or so already.

Does anyone have a solution for this?
The actual recipe looks like this:

    DESCRIPTION = "My app"
    LICENSE = "CLOSED"
    SECTION = "app"

    # util-linux is for some uuid headers
    DEPENDS = "openssl curl u-boot-fw-utils restart-me util-linux"

    SRC_URI =
    "gitsm://my-company@vs-ssh.visualstudio.com:v3/my-company/IoTSolutions/my-app"
    SRC_URI_append = "file://start_my-app.sh"

    SRCREV_pn-my-app = "356dfb095d4b162120f43769cd5b23c7f5a15bd0"
    #SRCREV_pn-swisscom-app = "${AUTOREV}"
    S = "${WORKDIR}/git"

    inherit cmake update-rc.d

    INITSCRIPT_NAME = "start_my-app.sh"
    INITSCRIPT_PARAMS = "start 23 3 5 ."

    EXTRA_OECMAKE = ""

    do_install() {
         install -d ${D}${bindir}
         install -m 0755 ${S}/bin/my-app ${D}${bindir}/my-app
         chrpath -d ${D}${bindir}/my-app

         install -d ${D}${sysconfdir}/init.d

         install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME}
    ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
    }


All the Best
Jakob

-- 
Jakob Hasse
Software Developement

E: jakob.hasse at qiio.ch
T: +41 44 552 02 66

Qiio GmbH
www.qiio.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180919/f881dd01/attachment.html>


More information about the yocto mailing list