Openembedded Devel Discussions
 help / color / mirror / Atom feed
* core-image-tiny-initramfs failing to parse because of WIC (WKS_FULL_PATH, )
@ 2017-02-09  8:39 Martin Jansa
  2017-02-15  8:58 ` [OE-core] " Ed Bartosh
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Jansa @ 2017-02-09  8:39 UTC (permalink / raw)
  To: openembedded-devel

Running e.g. bitbake -e busybox with latest oe-core triggers this badly
looking exception:

Can we add some weak assignment for people who don't care about wic
or core-image-tiny-initramfs to continue using oe-core?

ERROR: ExpansionError during parsing /OE/oe-core/meta/recipes-core/images/
core-image-tiny-initramfs.bb
Traceback (most recent call last):
  File "/OE/bitbake/lib/bb/data_smart.py", line 412, in
DataSmart.expandWithRefs(s='\tout="${IMGDEPLOYDIR}/${IMAGE_NAME}"\n\twks="${WKS_FULL_PATH}"\n\tif
[ -z "$wks" ]; then\n\t\tbbfatal "No kickstart files from WKS_FILES were
found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES
appropriately."\n\tfi\n\n\tBUILDDIR="${TOPDIR}" wic create "$wks" --vars
"${STAGING_DIR}/${MACHINE}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/"
${WIC_CREATE_EXTRA_ARGS}\n\tmv "$out/$(basename "${wks%.wks}")"*.direct
"$out${IMAGE_NAME_SUFFIX}.wic"\n\trm -rf "$out/"\n', varname='IMAGE_CMD'):
                 try:
    >                s = __expand_var_regexp__.sub(varparse.var_sub, s)
                     try:
  File "/OE/bitbake/lib/bb/data_smart.py", line 111, in
VariableParse.var_sub(match=<_sre.SRE_Match object; span=(43, 59),
match='${WKS_FULL_PATH}'>):
                 else:
    >                var = self.d.getVarFlag(key, "_content")
                 self.references.add(key)
  File "/OE/bitbake/lib/bb/data_smart.py", line 773, in
DataSmart.getVarFlag(var='WKS_FULL_PATH', flag='_content', expand=True,
noweakdefault=False, parsing=False):
                     cachename = var + "[" + flag + "]"
    >            value = self.expand(value, cachename)

  File "/OE/bitbake/lib/bb/data_smart.py", line 436, in
DataSmart.expand(s="${@wks_search('${WKS_FILES}'.split(),
'${WKS_SEARCH_PATH}') or ''}", varname='WKS_FULL_PATH'):
         def expand(self, s, varname = None):
    >        return self.expandWithRefs(s, varname).value

  File "/OE/bitbake/lib/bb/data_smart.py", line 426, in
DataSmart.expandWithRefs(s="${@wks_search('directdisk.wks
core-image-tiny-initramfs.wks'.split(),
'/OE/oe-core/meta/recipes-core/images:${@':'.join('%s/wic' % p for p in
'/OE:${TMPDIR}:/OE/oe-core/meta'.split(':'))}:${@':'.join('%s/scripts/lib/wic/canned-wks'
% l for l in '/OE:${TMPDIR}:/OE/oe-core/meta:/OE/oe-core'.split(':'))}') or
''}", varname='WKS_FULL_PATH'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc

bb.data_smart.ExpansionError: Failure expanding variable WKS_FULL_PATH,
expression was ${@wks_search('directdisk.wks
core-image-tiny-initramfs.wks'.split(),
'/OE/oe-core/meta/recipes-core/images:${@':'.join('%s/wic' % p for p in
'/OE:${TMPDIR}:/OE/oe-core/meta'.split(':'))}:${@':'.join('%s/scripts/lib/wic/canned-wks'
% l for l in '/OE:${TMPDIR}:/OE/oe-core/meta:/OE/oe-core'.split(':'))}') or
''} which triggered exception SyntaxError: invalid syntax (WKS_FULL_PATH,
line 1)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [OE-core] core-image-tiny-initramfs failing to parse because of WIC (WKS_FULL_PATH, )
  2017-02-09  8:39 core-image-tiny-initramfs failing to parse because of WIC (WKS_FULL_PATH, ) Martin Jansa
@ 2017-02-15  8:58 ` Ed Bartosh
  0 siblings, 0 replies; 2+ messages in thread
From: Ed Bartosh @ 2017-02-15  8:58 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-devel

Hi Martin,

Sorry for the delay. I missedd your message somehow.

I can't reproduce this. Tried with latest poky and latest oe-core +
bitbake. I built core-image-tiny-initramfs from scratch and bitbake -e
busybox works for me just fine.

Can you provide more details about your setup, please?

On Thu, Feb 09, 2017 at 09:39:30AM +0100, Martin Jansa wrote:
> Running e.g. bitbake -e busybox with latest oe-core triggers this badly
> looking exception:
> 
> Can we add some weak assignment for people who don't care about wic
> or core-image-tiny-initramfs to continue using oe-core?
> 
> ERROR: ExpansionError during parsing /OE/oe-core/meta/recipes-core/images/
> core-image-tiny-initramfs.bb
> Traceback (most recent call last):
>   File "/OE/bitbake/lib/bb/data_smart.py", line 412, in
> DataSmart.expandWithRefs(s='\tout="${IMGDEPLOYDIR}/${IMAGE_NAME}"\n\twks="${WKS_FULL_PATH}"\n\tif
> [ -z "$wks" ]; then\n\t\tbbfatal "No kickstart files from WKS_FILES were
> found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES
> appropriately."\n\tfi\n\n\tBUILDDIR="${TOPDIR}" wic create "$wks" --vars
> "${STAGING_DIR}/${MACHINE}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/"
> ${WIC_CREATE_EXTRA_ARGS}\n\tmv "$out/$(basename "${wks%.wks}")"*.direct
> "$out${IMAGE_NAME_SUFFIX}.wic"\n\trm -rf "$out/"\n', varname='IMAGE_CMD'):
>                  try:
>     >                s = __expand_var_regexp__.sub(varparse.var_sub, s)
>                      try:
>   File "/OE/bitbake/lib/bb/data_smart.py", line 111, in
> VariableParse.var_sub(match=<_sre.SRE_Match object; span=(43, 59),
> match='${WKS_FULL_PATH}'>):
>                  else:
>     >                var = self.d.getVarFlag(key, "_content")
>                  self.references.add(key)
>   File "/OE/bitbake/lib/bb/data_smart.py", line 773, in
> DataSmart.getVarFlag(var='WKS_FULL_PATH', flag='_content', expand=True,
> noweakdefault=False, parsing=False):
>                      cachename = var + "[" + flag + "]"
>     >            value = self.expand(value, cachename)
> 
>   File "/OE/bitbake/lib/bb/data_smart.py", line 436, in
> DataSmart.expand(s="${@wks_search('${WKS_FILES}'.split(),
> '${WKS_SEARCH_PATH}') or ''}", varname='WKS_FULL_PATH'):
>          def expand(self, s, varname = None):
>     >        return self.expandWithRefs(s, varname).value
> 
>   File "/OE/bitbake/lib/bb/data_smart.py", line 426, in
> DataSmart.expandWithRefs(s="${@wks_search('directdisk.wks
> core-image-tiny-initramfs.wks'.split(),
> '/OE/oe-core/meta/recipes-core/images:${@':'.join('%s/wic' % p for p in
> '/OE:${TMPDIR}:/OE/oe-core/meta'.split(':'))}:${@':'.join('%s/scripts/lib/wic/canned-wks'
> % l for l in '/OE:${TMPDIR}:/OE/oe-core/meta:/OE/oe-core'.split(':'))}') or
> ''}", varname='WKS_FULL_PATH'):
>                  except Exception as exc:
>     >                raise ExpansionError(varname, s, exc) from exc
> 
> bb.data_smart.ExpansionError: Failure expanding variable WKS_FULL_PATH,
> expression was ${@wks_search('directdisk.wks
> core-image-tiny-initramfs.wks'.split(),
> '/OE/oe-core/meta/recipes-core/images:${@':'.join('%s/wic' % p for p in
> '/OE:${TMPDIR}:/OE/oe-core/meta'.split(':'))}:${@':'.join('%s/scripts/lib/wic/canned-wks'
> % l for l in '/OE:${TMPDIR}:/OE/oe-core/meta:/OE/oe-core'.split(':'))}') or
> ''} which triggered exception SyntaxError: invalid syntax (WKS_FULL_PATH,
> line 1)

--
Regards,
Ed


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-15  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09  8:39 core-image-tiny-initramfs failing to parse because of WIC (WKS_FULL_PATH, ) Martin Jansa
2017-02-15  8:58 ` [OE-core] " Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox