From cf6b31a789f99dfac7a4da5dd63a714a5358a772 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 25 May 2021 14:43:38 +0200 Subject: [PATCH 1/3] Upgrade go --- conf/go.arm.src | 4 ++-- conf/go.arm64.src | 4 ++-- conf/go.i386.src | 4 ++-- conf/go.x86-64.src | 4 ++-- scripts/install | 3 --- scripts/upgrade | 3 --- 6 files changed, 8 insertions(+), 14 deletions(-) diff --git a/conf/go.arm.src b/conf/go.arm.src index 08921fe..70de873 100644 --- a/conf/go.arm.src +++ b/conf/go.arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://golang.org/dl/go1.16.3.linux-armv6l.tar.gz -SOURCE_SUM=0dae30385e3564a557dac7f12a63eedc73543e6da0f6017990e214ce8cc8797c +SOURCE_URL=https://golang.org/dl/go1.16.4.linux-armv6l.tar.gz +SOURCE_SUM=a53391a800ddec749ee90d38992babb27b95cfb864027350c737b9aa8e069494 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/go.arm64.src b/conf/go.arm64.src index 2ccc1ff..56528d1 100644 --- a/conf/go.arm64.src +++ b/conf/go.arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://golang.org/dl/go1.16.3.linux-arm64.tar.gz -SOURCE_SUM=566b1d6f17d2bc4ad5f81486f0df44f3088c3ed47a3bec4099d8ed9939e90d5d +SOURCE_URL=https://golang.org/dl/go1.16.4.linux-arm64.tar.gz +SOURCE_SUM=8b18eb05ddda2652d69ab1b1dd1f40dd731799f43c6a58b512ad01ae5b5bba21 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/go.i386.src b/conf/go.i386.src index 3563edf..317791b 100644 --- a/conf/go.i386.src +++ b/conf/go.i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://golang.org/dl/go1.16.3.linux-386.tar.gz -SOURCE_SUM=48b2d1481db756c88c18b1f064dbfc3e265ce4a775a23177ca17e25d13a24c5d +SOURCE_URL=https://golang.org/dl/go1.16.4.linux-386.tar.gz +SOURCE_SUM=cd1b146ef6e9006f27dd99e9687773e7fef30e8c985b7d41bff33e955a3bb53a SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/go.x86-64.src b/conf/go.x86-64.src index 1d743f9..d69f27c 100644 --- a/conf/go.x86-64.src +++ b/conf/go.x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -SOURCE_SUM=951a3c7c6ce4e56ad883f97d9db74d3d6d80d5fec77455c6ada6c1f7ac4776d2 +SOURCE_URL=https://golang.org/dl/go1.16.4.linux-amd64.tar.gz +SOURCE_SUM=7154e88f5a8047aad4b80ebace58a059e36e7e2e4eb3b383127a28c711b4ff59 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/scripts/install b/scripts/install index bdc3cd8..a4ca2c4 100755 --- a/scripts/install +++ b/scripts/install @@ -70,9 +70,6 @@ export LD_LIBRARY_PATH="${GOPATH}/deps/raft/.libs/:${GOPATH}/deps/dqlite/.libs/" export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create" cd $GOPATH/src/github.com/lxc/lxd -# https://github.com/golang/go/issues/31997#issuecomment-782864390 -go env -w GO111MODULE=auto - ynh_exec_warn_less make mkdir -p /usr/local/lib/$app diff --git a/scripts/upgrade b/scripts/upgrade index 0bc4f3a..175cc05 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -85,9 +85,6 @@ export LD_LIBRARY_PATH="${GOPATH}/deps/raft/.libs/:${GOPATH}/deps/dqlite/.libs/" export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create" cd $GOPATH/src/github.com/lxc/lxd -# https://github.com/golang/go/issues/31997#issuecomment-782864390 -go env -w GO111MODULE=auto - ynh_exec_warn_less make mkdir -p /usr/local/lib/$app From 2edb4f821ea561f78ad90c0776ccee31d42e5625 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 25 May 2021 14:44:10 +0200 Subject: [PATCH 2/3] fix getcwd() failed error --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index a4ca2c4..b96e1c1 100755 --- a/scripts/install +++ b/scripts/install @@ -14,6 +14,8 @@ source /usr/share/yunohost/helpers #================================================= ynh_clean_setup () { + ynh_exec_warn_less popd + ynh_secure_remove --file="$go_tmp" ynh_secure_remove --file="$lxd_tmp" } diff --git a/scripts/upgrade b/scripts/upgrade index 175cc05..a738055 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,6 +31,8 @@ ynh_script_progression --message="Backing up the app before upgrading (may take # Backup the current version of the app ynh_backup_before_upgrade ynh_clean_setup () { + ynh_exec_warn_less popd + ynh_secure_remove --file="$go_tmp" ynh_secure_remove --file="$lxd_tmp" # Restore it if the upgrade fails From 4104d3329a289a3c5c2ddabdd31af6131215afa4 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 25 May 2021 14:46:38 +0200 Subject: [PATCH 3/3] Bump version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 88456eb..d11ff6a 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "Offers a user experience similar to virtual machines but using Linux containers instead." }, - "version": "4.14~ynh1", + "version": "4.14~ynh2", "url": "https://example.com", "license": "Apache-2.0", "maintainer": {