Steven Cole <[EMAIL PROTECTED]>:
> Results of cml2-1.9.11 and Python 2.1 after kxref.out is deleted:
> [root@spc linux-2.4.17-rc2-cml2]# scripts/kxref.py -e
> scripts/kxref.py:145: SyntaxWarning: local name 'definere' in 'makexref' shadows use
>of 'definere' as global in nested scope 'xrefvisit'
> def makexref(tree):
> Regenerating cross-reference database...Traceback (most recent call last):
> File "scripts/kxref.py", line 540, in ?
> load_context(sourcetree)
> File "scripts/kxref.py", line 492, in load_context
> (xrefs, cml1types) = makexref(tree)
> File "scripts/kxref.py", line 221, in makexref
> os.path.walk(".", xrefvisit, xrefdict)
> File "/usr/lib/python2.1/posixpath.py", line 277, in walk
> walk(name, func, arg)
> File "/usr/lib/python2.1/posixpath.py", line 269, in walk
> func(arg, top, names)
> File "scripts/kxref.py", line 216, in xrefvisit
> filevisitor(dict, node)
> File "scripts/kxref.py", line 191, in filevisitor
> symdef = definere.search(lines[0])
> NameError: global name 'definere' is not defined
Aaarrgghh. I typoed. Apply this patch:
--- kxref.py 2001/12/20 08:56:58 1.51
+++ kxref.py 2001/12/20 18:56:55
@@ -137,7 +137,7 @@
def makexref(tree):
"Generate a cross-reference dictionary for the given source tree."
- global typefind, choicere, configre, definre, mycml1types
+ global typefind, choicere, configre, definere, mycml1types
typefind =
re.compile(r"(?<!define_)(bool|tristate|int|hex|string)\s+'.*'\s+CONFIG_(\w+)")
choicere = re.compile(r"^\s*choice")
configre = re.compile(rulebase.prefix + r"(\w*)")
That should make it run under all 2.x versions.
--
<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>
"Government is not reason, it is not eloquence, it is force; like fire, a
troublesome servant and a fearful master. Never for a moment should it be left
to irresponsible action."
-- George Washington, in a speech of January 7, 1790
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel