summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciek Borzecki2020-04-26 20:12:12 +0200
committerMaciek Borzecki2020-04-26 20:12:12 +0200
commit39fd5272cad805a4e0961cd02b596fc14fbd99fe (patch)
tree2d82fb45c7c84efa21bd5ffcf5753675ae94a377
parent6d1d7dd836f788038c4d0395529a72ba21a4f2b7 (diff)
downloadaur-39fd5272cad805a4e0961cd02b596fc14fbd99fe.tar.gz
upgpkg: snapd 2.44.3-2
Snapd does not use modules, due to upstream supporting very old Go releases (back to 1.9). Explicitly disable Go modules support during the build. Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 4 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 463416f03125..c69e182bdf5c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = snapd
pkgdesc = Service and tools for management of snap packages.
pkgver = 2.44.3
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/snapcore/snapd
install = snapd.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index cd6a04fcd4f2..8e13a8766949 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ depends=('squashfs-tools' 'libseccomp' 'libsystemd' 'apparmor')
optdepends=('bash-completion: bash completion support'
'xdg-desktop-portal: desktop integration')
pkgver=2.44.3
-pkgrel=1
+pkgrel=2
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="https://github.com/snapcore/snapd"
license=('GPL3')
@@ -47,9 +47,8 @@ prepare() {
build() {
cd "$pkgname-$pkgver"
export GOPATH="$srcdir/go"
- # snapd does not use modules, setting GO111MODULE=on in the environment breaks
- # the build
- unset GO111MODULE
+ # snapd does not support modules yet, explicitly disable Go modules
+ export GO111MODULE=off
export CGO_ENABLED="1"
export CGO_CFLAGS="${CFLAGS}"