Bitbake error with LinuxImageV2.7


I am using the BSP branch LinuxImageV2.6.1 to build images for my TK1 and everything works like expected.
Today i tried out the newest branch LinuxImageV2.7 and one of my recipes fails with the error below. What could be the reason for this?
One difference to other recipes is that the sources are get by svn with authentication, e.g:

SRC_URI = “svn://MY_SERVER;module=reset_server;protocol=https;user=SECRET;pswd=EVEN_MORE_SECRET”

ERROR: reset-server-1.0-r0 do_fetch: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
 *** 0002:base_do_fetch(d)
File: '/home/user/oe-core/build/../layers/openembedded-core/meta/classes/base.bbclass', lineno: 132, function: base_do_fetch
     0128:        return
     0130:    try:
     0131:        fetcher = bb.fetch2.Fetch(src_uri, d)
 *** 0132:
     0133:    except bb.fetch2.BBFetchException as e:
     0134:        bb.fatal(str(e))
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/', lineno: 1588, function: download
     1584:                    localpath = ud.localpath
     1585:                elif m.try_premirror(ud, self.d):
     1586:                    logger.debug(1, "Trying PREMIRRORS")
     1587:                    mirrors = mirror_from_string(self.d.getVar('PREMIRRORS', True))
 *** 1588:                    localpath = try_mirrors(self, self.d, ud, mirrors, False)
     1590:                if premirroronly:
     1591:                    self.d.setVar("BB_NO_NETWORK", "1")
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/', lineno: 1024, function: try_mirrors
     1021:    uris, uds = build_mirroruris(origud, mirrors, ld)
     1023:    for index, uri in enumerate(uris):
 *** 1024:        ret = try_mirror_url(fetch, origud, uds[index], ld, check)
     1025:        if ret != False:
     1026:            return ret
     1027:    return None
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/', lineno: 949, function: try_mirror_url
     0945:                return found
     0946:            return False
     0948:        if not verify_donestamp(ud, ld, origud) or ud.method.need_update(ud, ld):
 *** 0949:  , ld)
     0950:            if hasattr(ud.method,"build_mirror_data"):
     0951:                ud.method.build_mirror_data(ud, ld)
     0953:        if not ud.localpath or not os.path.exists(ud.localpath):
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/', lineno: 114, function: download
     0111:        if ud.user:
     0112:            up = ud.user.split(":")
     0113:            print(up)
 *** 0114:            fetchcmd += " --user=%s --password=%s --auth-no-challenge" % (up[0],up[1])
     0116:        uri = ud.url.split(";")[0]
     0117:        if os.path.exists(ud.localpath):
     0118:            # file exists, but we didnt complete it.. trying again..
Exception: IndexError: list index out of range


SVN with authentication is not really a regular SRC_URI we use.

From the bitbake manual I guess you would have to move user and password into the URL part.

SRC_URI = "svn://<user>:<passwd>@MY_SERVER;module=reset_server;protocol=https"

If that does not help:

  • Did the unchanged recipe work with V2.6?
  • Can you fetch with bitbake from an SVN without user/passwd, e.g.:
bitbake usbpath -c fetch
  • Can you checkout the recipe from were you run bitbake? e.g. after executing the ‘. export’ and being in ~/oe-core/build does the following work?
    svn co https://MY_SERVER/reset_server --username SECRET --password EVEN_MORE_SECRET
  • And with the bitbake built svn:
tmp-glibc/sysroots/x86_64-linux/usr/bin/svn co https://MY_SERVER/reset_server --username SECRET --password EVEN_MORE_SECRET


Perfect! The suggested syntax for SRC_URI works fine for 2.7 and 2.6.1.

Thanks a lot!

SRC_URI = "svn://<user>:<passwd>@MY_SERVER;module=reset_server;protocol=https"