From 9ad2c1fd97fbadf8d40835e3e7722fc1e7fc2e4f Mon Sep 17 00:00:00 2001 From: krant Date: Tue, 27 Feb 2024 12:31:02 +0200 Subject: [PATCH] openthread-br: fix build error on some platforms On some builders the package was failing to build: ``` cp: cannot overwrite non-directory '[..]/var' with directory '[..]/var ``` Here we're moving the creation of /var/lib/thread into runtime script, which eliminates the error. Signed-off-by: krant --- net/openthread-br/Makefile | 3 +-- net/openthread-br/files/openthread-proto.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/openthread-br/Makefile b/net/openthread-br/Makefile index 1b42cceee5..35c3b969dd 100644 --- a/net/openthread-br/Makefile +++ b/net/openthread-br/Makefile @@ -96,8 +96,7 @@ define Package/openthread-br/install $(INSTALL_DIR) \ $(1)/etc/init.d \ $(1)/lib/netifd/proto \ - $(1)/usr/sbin \ - $(1)/var/lib/thread + $(1)/usr/sbin $(INSTALL_BIN) ./files/openthread-proto.sh $(1)/lib/netifd/proto/openthread.sh $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin endef diff --git a/net/openthread-br/files/openthread-proto.sh b/net/openthread-br/files/openthread-proto.sh index 928bafe712..360786aaf8 100644 --- a/net/openthread-br/files/openthread-proto.sh +++ b/net/openthread-br/files/openthread-proto.sh @@ -88,6 +88,7 @@ proto_openthread_setup() { } json_for_each_item proto_openthread_add_prefix prefix + mkdir -p /var/lib/thread ubus call otbr threadstart || proto_openthread_setup_error "$interface" MISSING_UBUS_OBJ $OTCTL netdata register