Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 475364 Details for
Bug 588040
dev-python/python-uinput-0.10.2 and earlier: NameError: name 'ABS_MAX' is not defined
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix this problem.
acmondor-python-uinput-0.10.2.patch (text/plain), 977 bytes, created by
acmondor
on 2017-06-06 15:24:10 UTC
(
hide
)
Description:
Patch to fix this problem.
Filename:
MIME Type:
Creator:
acmondor
Created:
2017-06-06 15:24:10 UTC
Size:
977 bytes
patch
obsolete
>diff -ruN python-uinput-0.10.2.org/setup.py python-uinput-0.10.2.x/setup.py >--- python-uinput-0.10.2.org/setup.py 2014-07-21 12:17:45.000000000 -0600 >+++ python-uinput-0.10.2.x/setup.py 2017-06-06 08:58:24.535187039 -0600 >@@ -2,12 +2,18 @@ > from __future__ import with_statement > from __future__ import print_function > import re >+import os.path > > from distutils.command.build_py import build_py as _build_py > from distutils.core import setup, Extension > > def append_ev(ev_type, ev_name): >- with open("/usr/include/linux/input.h") as f: >+ # Newer kernels define events in different file >+ if os.path.exists("/usr/include/linux/input-event-codes.h"): >+ fpath = "/usr/include/linux/input-event-codes.h" >+ else: >+ fpath = "/usr/include/linux/input.h" >+ with open(fpath) as f: > with open("src/ev.py", "a") as f2: > for line in f: > match = re.match(r"^#define (" + ev_name + "_.*)\t+((?:0x[0-9a-f]+)|(?:\d+))", line)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 588040
: 475364