[New-bugs-announce] [issue23330] h2py.py regular expression missing

Thomas Roos report at bugs.python.org
Tue Jan 27 12:13:17 CET 2015


New submission from Thomas Roos:

Hi,
my issue was that SO_BINDTODEVICE symbol was not defined in /Lib/plat-linux2/IN.py which is generated by h2py.py.
This is because the regex is missing out include dirs with "-" in the name.
In my yocto cross build system this define is in asm-generic, don't know about other build systems. 
.../usr/include/asm-generic/socket.h:#define SO_BINDTODEVICE       25
so could you please change following regex in h2py.py (patch attached)
-p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.]+)')
+p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.-]+)')

----------
components: Cross-Build
files: IN.py.patch
keywords: patch
messages: 234817
nosy: Thomas.Roos
priority: normal
severity: normal
status: open
title: h2py.py regular expression missing
type: compile error
versions: Python 2.7
Added file: http://bugs.python.org/file37879/IN.py.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23330>
_______________________________________


More information about the New-bugs-announce mailing list