From 8834a40a81177825649b0872ff79b115041c5b29 Mon Sep 17 00:00:00 2001 From: hgy59 Date: Mon, 29 May 2023 19:42:05 +0200 Subject: [PATCH] fix build of protobuf wheel for older compilers --- spk/homeassistant/Makefile | 5 +++++ spk/homeassistant/src/requirements-crossenv.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/spk/homeassistant/Makefile b/spk/homeassistant/Makefile index 238264afdd98..5b842e99eb86 100644 --- a/spk/homeassistant/Makefile +++ b/spk/homeassistant/Makefile @@ -114,6 +114,11 @@ WHEELS_CFLAGS += [numpy] -O0 endif endif +# [protobuf] +ifeq ($(call version_lt, ${TC_GCC}, 5.0),1) +WHEELS_CFLAGS += [protobuf] -std=c99 +endif + # [pycryptodome] [pycryptodomex] [ciso8601] ifeq ($(call version_ge, ${TC_GCC}, 4.9),1) WHEELS_CFLAGS += [pycryptodome] -std=c11 diff --git a/spk/homeassistant/src/requirements-crossenv.txt b/spk/homeassistant/src/requirements-crossenv.txt index e029147eb211..24137a11aec8 100644 --- a/spk/homeassistant/src/requirements-crossenv.txt +++ b/spk/homeassistant/src/requirements-crossenv.txt @@ -33,7 +33,7 @@ multidict==6.0.4 netifaces==0.11.0 numpy==1.23.2 orjson==3.8.10 -# pandas==2.0.1 # depends on installed numby wheel ?... +# pandas==2.0.1 # depends on installed numpy wheel ?... Pillow==9.5.0 protobuf==4.23.2 psutil==5.9.5