Bitbake error with LinuxImageV2.7

Hello,

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>
     0001:
 *** 0002:base_do_fetch(d)
     0003:
File: '/home/user/oe-core/build/../layers/openembedded-core/meta/classes/base.bbclass', lineno: 132, function: base_do_fetch
     0128:        return
     0129:
     0130:    try:
     0131:        fetcher = bb.fetch2.Fetch(src_uri, d)
 *** 0132:        fetcher.download()
     0133:    except bb.fetch2.BBFetchException as e:
     0134:        bb.fatal(str(e))
     0135:}
     0136:
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/__init__.py', 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)
     1589:
     1590:                if premirroronly:
     1591:                    self.d.setVar("BB_NO_NETWORK", "1")
     1592:
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/__init__.py', lineno: 1024, function: try_mirrors
     1020:
     1021:    uris, uds = build_mirroruris(origud, mirrors, ld)
     1022:
     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
     1028:
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/__init__.py', lineno: 949, function: try_mirror_url
     0945:                return found
     0946:            return False
     0947:
     0948:        if not verify_donestamp(ud, ld, origud) or ud.method.need_update(ud, ld):
 *** 0949:            ud.method.download(ud, ld)
     0950:            if hasattr(ud.method,"build_mirror_data"):
     0951:                ud.method.build_mirror_data(ud, ld)
     0952:
     0953:        if not ud.localpath or not os.path.exists(ud.localpath):
File: '/home/user/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/wget.py', lineno: 114, function: download
     0110:
     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])
     0115:
     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

Hi

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

Max

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"