Skip to contentSkip to conversation

multiple entries in PREMIRRORS

DISCUSSION Cliff Brake 2 participants 2 messages Jul 29, 2008

lore
Share & tools
lore
#0 lore raw

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

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com
#1 lore raw
Quoted 14 lines · Cliff Brake

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"

Quoted 6 lines

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 :-)

There are two different parsers, one for .conf files and one for .bbclass and .bb files although they share code and are interconnected. Some syntax isn't valid in .conf files and I suspect this is one of those cases. Poky has its mirrors in a .bbclass as we hit similar issues.

Cheers,

Richard