[oe] multiple entries in PREMIRRORS

Cliff Brake cliff.brake at gmail.com
Tue Jul 29 15:11:08 UTC 2008


I've been trying to set up multiple entries in PREMIRRORS in a conf file like:

PREMIRRORS = "(ftp|https?)$://.*/.*/ http://dev.bec-systems.com/oesources/ \
http://downloads.sleepycat.com/db-4.3.29.tar.gz
http://dev.bec-systems.com/oesources/db-4.3.29.tar.gz"

which results in:

NOTE: Resolving missing task queue dependencies
NOTE: preferred version 2.5 of glibc not available (for item
virtual/arm-angstrom-linux-gnueabi-libc-for-gcc)
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 9 of 9 (ID: 0,
/build/pp/oe2-test-package-fetch/oe/custom/packages/linux/compulab-pxa270_2.6.25-rc5.bb,
do_fetch)
NOTE: package compulab-pxa270-2.6.25-rc5: started
NOTE: package compulab-pxa270-2.6.25-rc5-r3: task do_fetch: started
NOTE: Task failed: Unknown fetch Error: too many values to unpack
NOTE: package compulab-pxa270-2.6.25-rc5-r3: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
NOTE: package compulab-pxa270-2.6.25-rc5: failed
ERROR: Build of
/build/pp/oe2-test-package-fetch/oe/custom/packages/linux/compulab-pxa270_2.6.25-rc5.bb
do_fetch failed
ERROR: Task 0 (/build/pp/oe2-test-package-fetch/oe/custom/packages/linux/compulab-pxa270_2.6.25-rc5.bb,
do_fetch) failed
NOTE: Tasks Summary: Attempted 8 tasks of which 8 didn't need to be
rerun and 1 failed.
ERROR: '/build/pp/oe2-test-package-fetch/oe/custom/packages/linux/compulab-pxa270_2.6.25-rc5.bb'
failed

But, if I define a new class:

bec-mirrors.bbclass:

PREMIRRORS_append () {
ftp://.*/.*/	http://dev.bec-systems.com/oesources/
http://.*/.*/	http://dev.bec-systems.com/oesources/
http://downloads.sleepycat.com/db-4.3.29.tar.gz
http://dev.bec-systems.com/oesources/db-4.3.29.tar.gz
}

and put the following in *.conf:
INHERIT += "bec-mirrors"

it works fine.

What is the difference?  Why do multiple lines work fine in a
PREMIRRORS_append, but not directly assigning a variable?  I started
tracing through the code, but its bouncing back and forth between
bbclass and bitbake code, so I'm asking first :-)

Thanks,
Cliff

-- 
=======================
Cliff Brake
http://bec-systems.com




More information about the Openembedded-devel mailing list