All of lore.kernel.org
 help / color / mirror / Atom feed
* SRCREV_FORMAT breaks my builds
@ 2011-01-07  0:04 Gary Thomas
  2011-01-07  3:06 ` Bruce Ashfield
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2011-01-07  0:04 UTC (permalink / raw)
  To: Poky

[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]

My system builds on the Poky meta layer (only), plus my
target layers.  As of an update today, I now get errors
parsing any package (in meta) which uses SRCREV_FORMAT.

The error (bitback tracebacks) is attached.

I see these recipes with SRCREV_FORMAT:
   ./meta/recipes-kernel/linux/linux-yocto-stable_git.bb:SRCREV_FORMAT = "meta_machine"
   ./meta/recipes-kernel/linux/linux-yocto_git.bb:SRCREV_FORMAT = "meta_machine"
   ./meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb:SRCREV_FORMAT = "meta_machine"

This error happens because I have my own machine(s) which
are not listed in poky-default-revisions.inc, such as:
   SRCREV_machine_pn-linux-yocto-stable_beagleboard ?= "0431115c9d720fee5bb105f6a7411efb4f851d26"
adding such an entry for my machine into my distribution
files does work past the problem.

Since I have my own machines and linux recipes, the linux-yocto
ones are not needed and indeed cause pain.  How can I ignore
them (since I want to use the poky meta layer untouched)?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

[-- Attachment #2: out --]
[-- Type: text/plain, Size: 10781 bytes --]

Pseudo has not been built, building this first before the main build
Loading cache...done.
Loaded 687 entries from dependency cache.
Parsing recipes...ERROR: Error evaluating '${@bb.fetch.get_srcrev(d)}'
Traceback (most recent call last):
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/tmp/poky-mlb/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 389, in get_srcrev
    ud.setup_localpath(d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 572, in setup_localpath
    self.localpath = self.method.localpath(self.url, self, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/git.py", line 59, in localpath
    tag = Fetch.srcrev_internal_helper(ud, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 701, in srcrev_internal_helper
    raise InvalidSRCREV("Please set SRCREV to a valid value")
InvalidSRCREV: Please set SRCREV to a valid value

ERROR: Error evaluating '${LINUX_VERSION}+git${SRCPV}'
Traceback (most recent call last):
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/tmp/poky-mlb/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 389, in get_srcrev
    ud.setup_localpath(d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 572, in setup_localpath
    self.localpath = self.method.localpath(self.url, self, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/git.py", line 59, in localpath
    tag = Fetch.srcrev_internal_helper(ud, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 701, in srcrev_internal_helper
    raise InvalidSRCREV("Please set SRCREV to a valid value")
InvalidSRCREV: Please set SRCREV to a valid value

ERROR: Error evaluating 'sstate-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}-${PV}-${PR}-${SSTATE_PKGARCH}-${SSTATE_VERSION}-'
Traceback (most recent call last):
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/tmp/poky-mlb/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 389, in get_srcrev
    ud.setup_localpath(d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 572, in setup_localpath
    self.localpath = self.method.localpath(self.url, self, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/git.py", line 59, in localpath
    tag = Fetch.srcrev_internal_helper(ud, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 701, in srcrev_internal_helper
    raise InvalidSRCREV("Please set SRCREV to a valid value")
InvalidSRCREV: Please set SRCREV to a valid value

ERROR: Error evaluating '${SSTATE_PKGSPEC}${BB_TASKHASH}'
Traceback (most recent call last):
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/tmp/poky-mlb/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 389, in get_srcrev
    ud.setup_localpath(d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 572, in setup_localpath
    self.localpath = self.method.localpath(self.url, self, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/git.py", line 59, in localpath
    tag = Fetch.srcrev_internal_helper(ud, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 701, in srcrev_internal_helper
    raise InvalidSRCREV("Please set SRCREV to a valid value")
InvalidSRCREV: Please set SRCREV to a valid value

ERROR: Error evaluating '${SSTATE_PKGNAME}'
Traceback (most recent call last):
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/tmp/poky-mlb/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/tmp/poky-mlb/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 389, in get_srcrev
    ud.setup_localpath(d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 572, in setup_localpath
    self.localpath = self.method.localpath(self.url, self, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/git.py", line 59, in localpath
    tag = Fetch.srcrev_internal_helper(ud, d)
  File "/tmp/poky-mlb/bitbake/lib/bb/fetch/__init__.py", line 701, in srcrev_internal_helper
    raise InvalidSRCREV("Please set SRCREV to a valid value")
InvalidSRCREV: Please set SRCREV to a valid value

ERROR: Error parsing /tmp/poky-mlb/meta/recipes-kernel/linux/linux-yocto-stable_git.bb: Please set SRCREV to a valid value
ERROR: Command execution failed: Exited with 1

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

end of thread, other threads:[~2011-01-10 21:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07  0:04 SRCREV_FORMAT breaks my builds Gary Thomas
2011-01-07  3:06 ` Bruce Ashfield
2011-01-07  3:10   ` Bruce Ashfield
2011-01-07  3:26     ` Bruce Ashfield
2011-01-07 12:58       ` Richard Purdie
2011-01-07 13:13         ` Gary Thomas
2011-01-07 14:44         ` Chris Larson
2011-01-10 21:07           ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.