mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Build is failing for a while now with error:
```
14.3.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-14.3.0_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-14.3.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/include/python3.14 -fPIC -I/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/include/python3.14 -c ./ubus_python.c -o build/temp.linux-mipsel-cpython-314/ubus_python.o
./ubus_python.c: In function 'ubus_python_add':
./ubus_python.c:1081:17: error: implicit declaration of function 'PyEval_CallMethod'; did you mean 'PyObject_CallMethod'? [-Wimplicit-function-declaration]
1081 | PyEval_CallMethod(python_alloc_list, "pop", "");
| ^~~~~~~~~~~~~~~~~
| PyObject_CallMethod
error: command '/builder/shared-workdir/build/sdk/staging_dir/toolc
```
This has been fixed on version 0.1.3, but that hasn't been
published to pypi yet.
Also add test.sh
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
#
|
|
# Copyright (C) 2018-2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-ubus
|
|
PKG_VERSION:=0.1.2
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=ubus
|
|
PKG_HASH:=4dc4ef0fbcc8abb7a2354691475a58ff3eb015f1bab3150750729f7f657dd440
|
|
|
|
PKG_MAINTAINER:=Erik Larsson <who+openwrt@cnackers.org>
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_DEPENDS:=python-setuptools/host
|
|
|
|
PYTHON3_PKG_FORCE_DISTUTILS_SETUP:=1
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-ubus
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=libubus bindings
|
|
URL:=https://gitlab.nic.cz/turris/python-ubus/
|
|
DEPENDS:=+libubus +libblobmsg-json +python3-light
|
|
endef
|
|
|
|
define Package/python3-ubus/description
|
|
Python bindings for ubus.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-ubus))
|
|
$(eval $(call BuildPackage,python3-ubus))
|
|
$(eval $(call BuildPackage,python3-ubus-src))
|