Files
rpi-buildroot/package/python-evdev/python-evdev.mk
Vincent Fazio e2870d7669 package/python-evdev: bump to version 1.9.0
Since Buildroot commit [1] "package/python-evdev: bump to version
1.8.0", python-evdev is failing to build with error:

    evdev/ecodes.c: In function 'PyInit__ecodes':
    evdev/ecodes.c:65:29: error: 'BUS_AMD_SFH' undeclared (first use in this function)
       65 |     PyModule_AddIntMacro(m, BUS_AMD_SFH);
          |                             ^~~~~~~~~~~
    /home/autobuild/autobuild/instance-8/output-1/build/python3-3.12.8/Include/modsupport.h:61:70: note: in definition of macro 'PyModule_AddIntMacro'
       61 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
          |                                                                      ^
    ...

Upstream commit [2] included in this version fixes issues when
building wheels.

Fixes:
- https://gitlab.com/buildroot.org/buildroot/-/jobs/9085451384
- https://autobuild.buildroot.org/results/61a3b74e60f2f0f93e312803812ab4d98c492599/
- and many others...

[1] 455ef44d26
[2] 3ff9816e08

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
[Julien: reworded the commit log to add extra info]
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-02-16 12:47:52 +01:00

19 lines
773 B
Makefile

################################################################################
#
# python-evdev
#
################################################################################
PYTHON_EVDEV_VERSION = 1.9.0
PYTHON_EVDEV_SOURCE = evdev-$(PYTHON_EVDEV_VERSION).tar.gz
PYTHON_EVDEV_SITE = https://files.pythonhosted.org/packages/8c/bf/0fe4d372ee62fe5aec06aae2e97c0603d131b8e3cbaffa2329e0bd763a98
PYTHON_EVDEV_SETUP_TYPE = setuptools
PYTHON_EVDEV_LICENSE = Revised BSD License
PYTHON_EVDEV_LICENSE_FILES = LICENSE
PYTHON_EVDEV_BUILD_OPTS = \
-C--build-option=build_ecodes \
-C--build-option=--evdev-headers=$(STAGING_DIR)/usr/include/linux/input.h:$(STAGING_DIR)/usr/include/linux/input-event-codes.h:$(STAGING_DIR)/usr/include/linux/uinput.h
$(eval $(python-package))