Hi All,
I'm trying to add the python3 dbus-next (https://pypi.org/project/dbus-next/#modal-close) library into my firmware build as this one can run with asyncio instead of GLib so no further packages should be needed. The URL that gets created by pypi.mk however is not reaching the file. I used another python3 makefile as template but not sure what I'm doing wrong.
build log:
make[3]: Entering directory '/home/thomas/Downloads/openwrt/feeds/packages/lang/python/python3-dbus-next'
mkdir -p /home/thomas/Downloads/openwrt/dl
SHELL= flock /home/thomas/Downloads/openwrt/tmp/.dbus-next-0.2.3.tar.gz.flock -c ' /home/thomas/Downloads/openwrt/scripts/download.pl "/home/thomas/Downloads/openwrt/dl" "dbus-next-0.2.3.tar.gz" "f4eae26909332ada528c0a3549dda8d4f088f9b365153952a408e28023a626a5" "" "https://files.pythonhosted.org/packages/source/d/dbus-next" '
+ wget --tries=5 --timeout=20 --output-document=- https://files.pythonhosted.org/packages/source/d/dbus-next/dbus-next-0.2.3.tar.gz
--2022-12-07 21:01:14-- https://files.pythonhosted.org/packages/source/d/dbus-next/dbus-next-0.2.3.tar.gz
Resolving files.pythonhosted.org (files.pythonhosted.org)... 146.75.105.63, 2a04:4e42:8a::319
Connecting to files.pythonhosted.org (files.pythonhosted.org)|146.75.105.63|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-12-07 21:01:15 ERROR 404: Not Found.
Download failed.
+ wget --tries=5 --timeout=20 --output-document=- https://sources.cdn.openwrt.org/dbus-next-0.2.3.tar.gz
--2022-12-07 21:01:15-- https://sources.cdn.openwrt.org/dbus-next-0.2.3.tar.gz
Resolving sources.cdn.openwrt.org (sources.cdn.openwrt.org)... 146.75.106.132, 2a04:4e42:8a::644
Connecting to sources.cdn.openwrt.org (sources.cdn.openwrt.org)|146.75.106.132|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-12-07 21:01:16 ERROR 404: Not Found.
Download failed.
+ wget --tries=5 --timeout=20 --output-document=- https://sources.openwrt.org/dbus-next-0.2.3.tar.gz
--2022-12-07 21:01:16-- https://sources.openwrt.org/dbus-next-0.2.3.tar.gz
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.151.136, 2a01:4f8:210:5087::2
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.151.136|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-12-07 21:01:16 ERROR 404: Not Found.
Download failed.
+ wget --tries=5 --timeout=20 --output-document=- https://mirror2.openwrt.org/sources/dbus-next-0.2.3.tar.gz
--2022-12-07 21:01:16-- https://mirror2.openwrt.org/sources/dbus-next-0.2.3.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221:3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-12-07 21:01:17 ERROR 404: Not Found.
Download failed.
No more mirrors to try - giving up.
make[3]: *** [Makefile:45: /home/thomas/Downloads/openwrt/dl/dbus-next-0.2.3.tar.gz] Error 2
make[3]: Leaving directory '/home/thomas/Downloads/openwrt/feeds/packages/lang/python/python3-dbus-next'
time: package/feeds/packages/python3-dbus-next/compile#0.16#0.12#3.02
ERROR: package/feeds/packages/python3-dbus-next failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/python3-dbus-next/compile] Error 1
make[2]: Leaving directory '/home/thomas/Downloads/openwrt'
make[1]: *** [package/Makefile:110: /home/thomas/Downloads/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/thomas/Downloads/openwrt'
make: *** [/home/thomas/Downloads/openwrt/include/toplevel.mk:230: world] Error 2
makefile:
include $(TOPDIR)/rules.mk
PKG_NAME:=python3-dbus-next
PKG_VERSION:=0.2.3
PKG_BUILD_DIR:=$(BUILD_DIR)/dbus-python-next$(PKG_VERSION)
PYPI_NAME:=dbus-next
PKG_HASH:=f4eae26909332ada528c0a3549dda8d4f088f9b365153952a408e28023a626a5
#PKG_MAINTAINER:=tonyctl
PKG_INSTALL:=1
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
# The file included below defines PYTHON3_VERSION
include ../python3-version.mk
define Package/python3-dbus-next
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=A zero-dependency DBus library for Python with asyncio support
URL:=http://www.freedesktop.org/wiki/Software/DBusBindings/#python
DEPENDS:= \
+glib2 \
+python3 \
+libdbus
endef
define Package/python3-dbus-next/description
python3-dbus-next is a new way of controlling dbus supporting asyncio and is pure python3
endef
TARGET_LDFLAGS += \
-lpython$(PYTHON3_VERSION)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
endef
$(eval $(call Py3Package,python3-dbus-next))
$(eval $(call BuildPackage,python3-dbus-next))
$(eval $(call BuildPackage,python3-dbus-next-src))