[yocto] Troubleshooting ERROR: Function 'Fetcher failure for URL: 'cvs://anoncvs:anoncvs at anoncvs.handhelds.org/cvs; module=apps/update-rc.d; tag=r0_7'?
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Jun 9 15:24:59 PDT 2011
On Thu, 2011-06-09 at 15:17 -0700, Daryl Spitzer wrote:
> How do I find out where DL_DIR is pointing?
>
> I found this line, commented out in conf/local.conf:
>
> #DL_DIR ?= "${TOPDIR}/downloads"
>
> It's not listed after I run `bitbake -k poky-image-sato`:
>
> OE Build Configuration:
> BB_VERSION = "1.11.0"
> METADATA_BRANCH = "<unknown>"
> METADATA_REVISION = "<unknown>"
> TARGET_ARCH = "i586"
> TARGET_OS = "linux"
> MACHINE = "qemux86"
> DISTRO = "poky"
> DISTRO_VERSION = "1.0.1"
> TARGET_FPU = ""
>
> And there is no DL_DIR environment variable defined (after I run
> `source poky-bernard-5.0.1/poky-init-build-env poky-5.0.1-build`).
>
> There is a poky-5.0.1-build/downloads directory. I'll assume that's
> it. But I'd like to learn how to find out without guessing.
You can dump the bitbake datastore and find it like this:
bitbake -e | grep ^DL_DIR
Also, I think I have a patch for your problem:
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 27fcc3c..02a36b5 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -203,7 +203,10 @@ def uri_replace(ud, uri_find, uri_replace, d):
result_decoded[loc] = uri_decoded[loc]
if isinstance(i, basestring):
if (re.match(i, uri_decoded[loc])):
- result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc])
+ if not uri_replace_decoded[loc]:
+ result_decoded[loc] = ""
+ else:
+ result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc])
if uri_find_decoded.index(i) == 2:
if ud.mirrortarball:
result_decoded[loc] = os.path.join(os.path.dirname(result_decoded[loc]), os.path.basename(ud.mirrortarball))
although I'm running some further tests on this to confirm it...
Cheers,
Richard
More information about the yocto
mailing list