Bug#5365: python-base derived lib files bug
Package: python-base
Version: 1.4.0-1
The derived library files in linux2/ contain a number of errors related to parsing bugs found within the regen script. The errors appear to mostly be related to regen's failure to parse multiple line #defines. Though, it is questionable whether or not regen would derive correct values given many of the #defines that might be present throughout the system.
Specifically, from linux2/TERMIOS.py, one finds:
# Included from asm/posix_types.h
def __FD_ZERO(fdsetp): return \
...
# Included from asm/string.h
def COMMON(x): return \
def COMMON(x): return \
---
An example of an original definition that is unparseable [and, in this case, COMMON should never even appear in TERMIOS anyway!].
# Included from asm/string.h
def COMMON(x): return \
def COMMON(x): return \
#define COMMON(x) \
__asm__("cld\n\t" \
"rep ; movsl" \
x \
: /* no outputs */ \
: "c" (n/4),"D" ((long) to),"S" ((long) from) \
: "cx","di","si","memory");
switch (n % 4) {
case 0: COMMON(""); return to;
case 1: COMMON("\n\tmovsb"); return to;
case 2: COMMON("\n\tmovsw"); return to;
case 3: COMMON("\n\tmovsw\n\tmovsb"); return to;
}
#undef COMMON
}
b.bum
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: