Skip to content

Commit

Permalink
homeassistant: fix tradfri integration (#5869)
Browse files Browse the repository at this point in the history
* homeassistant: fix tradfri integration
- add dtlssocket wheel (runtime dependecy of tradfri)
* update cross/dtlssocket to v0.1.16
* update cross/cython to v0.29.36
* fix makefile indentation
* python.mk: fix log output
  • Loading branch information
hgy59 authored Sep 7, 2023
1 parent 5b75b46 commit dda111b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions cross/cython/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PKG_NAME = cython
PKG_VERS = 0.29.24
PKG_VERS = 0.29.36
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/$(PKG_NAME)/$(PKG_NAME)/archive
PKG_DIST_SITE = https://github.com/cython/cython/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

Expand Down
6 changes: 3 additions & 3 deletions cross/cython/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cython-0.29.24.tar.gz SHA1 36a2a5fe9730758cebf3de28c0ff7ae33595700f
cython-0.29.24.tar.gz SHA256 a5efb97612f0f97164e87c54cc295b2e2d06c539487670079963adeab872de80
cython-0.29.24.tar.gz MD5 6a7bd0c2d7a9f1630d82e957197ea6e8
cython-0.29.36.tar.gz SHA1 5b7a3e929edb741b670f318475318c3242b28e62
cython-0.29.36.tar.gz SHA256 bd8ee4208e1f2817914894eca8c4ca894f6c9a51803b0b815a9a3c03d01ab729
cython-0.29.36.tar.gz MD5 18d560eee4bba6ef943d98a5499fb977
4 changes: 2 additions & 2 deletions cross/dtlssocket/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PKG_NAME = DTLSSocket
PKG_VERS = 0.1.15
PKG_VERS = 0.1.16
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://files.pythonhosted.org/packages/72/dc/8171d3106233efbd28620539594ca705f1aa9e140287823e23cd46ca7c42
PKG_DIST_SITE = https://files.pythonhosted.org/packages/58/42/0a0442118096eb9fbc9dc70b45aee2957f7546b80545e2a05bd839380519
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

BUILD_DEPENDS = cross/cython
Expand Down
6 changes: 3 additions & 3 deletions cross/dtlssocket/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DTLSSocket-0.1.15.tar.gz SHA1 e0f7d4455cac5863d7f67d5b884da56f2ff70f25
DTLSSocket-0.1.15.tar.gz SHA256 456b1c53126c98b908d863e39e94b5a0954fb09fb16ea3c02a4e10d46ec84aee
DTLSSocket-0.1.15.tar.gz MD5 c5c6fe31e8acd0a6512dd2ec4360896d
DTLSSocket-0.1.16.tar.gz SHA1 9b4eaa3e9a949f202844a27ba54b2f05d73aa410
DTLSSocket-0.1.16.tar.gz SHA256 30b108ae45fce1c033e3ef6c2ddd7e7418062ae374228e3a7fa969b254366a39
DTLSSocket-0.1.16.tar.gz MD5 15dfeca9678e381c7bb6e11e4c864fd5
17 changes: 8 additions & 9 deletions mk/spksrc.python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,24 @@ include ../../mk/spksrc.spk.mk

.PHONY: python_pre_depend
python_pre_depend:
@$(MSG) *****************************************************
@$(MSG) *** Use existing shared objects from python $(PYTHON_VERSION)
@$(MSG) *** PATH: $(PYTHON_PACKAGE_ROOT)
@$(MSG) *****************************************************
@$(MSG) "*****************************************************"
@$(MSG) "*** Use existing shared objects from python $(PYTHON_VERSION)"
@$(MSG) "*** PATH: $(PYTHON_PACKAGE_ROOT)"
@$(MSG) "*****************************************************"
@mkdir -p $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/
@$(foreach lib,$(PYTHON_LIBS),ln -sf $(lib) $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/ ;)
@ln -sf $(PYTHON_PACKAGE_ROOT)/crossenv $(WORK_DIR)/crossenv
@ln -sf $(PYTHON_PACKAGE_ROOT)/python-cc.mk $(WORK_DIR)/python-cc.mk
@$(foreach _done,$(PYTHON_DEPENDS), ln -sf $(_done) $(WORK_DIR) ;)
# EXCEPTION: Ensure zlib is always built locally
@# EXCEPTION: Ensure zlib is always built locally
@rm -f $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/zlib.pc $(WORK_DIR)/.zlib*
# EXCEPTION: Do not symlink cross/* wheel builds
@# EXCEPTION: Do not symlink cross/* wheel builds
@make --no-print-directory dependency-flat | sort -u | grep -v spk/ | while read depend ; do \
makefile="../../$${depend}/Makefile" ; \
if grep -q spksrc.python-wheel.mk $${makefile} ; then \
pkgstr=$$(grep ^PKG_NAME $${makefile}) ; \
pkgname=$$(echo $${pkgstr#*=} | xargs) ; \
echo "rm -fr work-*/$${pkgname}*\\n work-*/.$${pkgname}-*" ; \
rm -fr work-*/$${pkgname}* \
work-*/.$${pkgname}-* ; \
echo "rm -fr work-*/$${pkgname}* work-*/.$${pkgname}-*" ; \
rm -fr work-*/$${pkgname}* work-*/.$${pkgname}-* ; \
fi ; \
done
5 changes: 4 additions & 1 deletion spk/homeassistant/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = homeassistant
SPK_VERS = 2023.7.3
SPK_REV = 21
SPK_REV = 22
SPK_ICON = src/homeassistant.png

HACS_VERS = 1.32.1
Expand Down Expand Up @@ -37,6 +37,9 @@ POST_STRIP_TARGET = homeassistant_extra_install
# Include cross compiled wheels only, the package installer downloads pure python wheels at installation time.
WHEELS = src/requirements-abi3.txt src/requirements-crossenv.txt src/requirements-pure.txt

# [DTLSSocket] runtime dependency of [tradfri]
DEPENDS += cross/dtlssocket

include ../../mk/spksrc.common.mk

# [grpcio]
Expand Down

0 comments on commit dda111b

Please sign in to comment.