From c33122dbd9d0cd8763a6f92c33b272106df6392d Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Wed, 24 Feb 2021 15:37:12 -0300 Subject: [PATCH] restic-rest-server: fix build with golang 1.16 Add GO111MODULE=auto to GO_PKG_BUILD_VARS to allow the package to be built in non-module mode. Module-aware mode will be mandatory in the next golang release. Signed-off-by: Eneas U de Queiroz (cherry picked from commit b732157dec0be4d90aad5cec48056bd69939bb45) --- net/restic-rest-server/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/restic-rest-server/Makefile b/net/restic-rest-server/Makefile index 87288f20fb..68632bdced 100644 --- a/net/restic-rest-server/Makefile +++ b/net/restic-rest-server/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=restic-rest-server PKG_VERSION:=0.9.7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_BUILD_DIR:=$(BUILD_DIR)/rest-server-$(PKG_VERSION) PKG_SOURCE:=rest-server-$(PKG_VERSION).tar.gz @@ -43,6 +43,8 @@ API. It provides secure and efficient way to backup data remotely, using restic backup client via the rest: URL. endef +GO_PKG_BUILD_VARS += GO111MODULE=auto + define Package/restic-rest-server/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/rest-server $(1)/usr/bin/restic-rest-server -- 2.30.2