upgpkg: gvisor-git 20230801.0-1

upstream release
Better support debug packages
Remove unnecessary GO111MODULE=on
Fix version not being written correctly
This commit is contained in:
Manuel 2023-08-05 15:15:29 +02:00
parent 73a994cff1
commit 57e8c87d9b
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
pkgbase = gvisor-git
pkgdesc = OCI container sandbox runtime focused on security, efficiency, and ease of use
pkgver = 20230710.0
pkgver = 20230801.0
pkgrel = 1
url = https://gvisor.dev
arch = x86_64

View file

@ -4,7 +4,7 @@
pkgname='gvisor-git'
_pkgbin='runsc'
_pkgshim='containerd-shim-runsc-v1'
pkgver=20230710.0
pkgver=20230801.0
pkgrel=1
pkgdesc='OCI container sandbox runtime focused on security, efficiency, and ease of use'
arch=('x86_64' 'aarch64')
@ -32,10 +32,10 @@ build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GO111MODULE=on
export GOPATH="${srcdir}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
CGO_ENABLED=0 go build -v -o "bin/$_pkgbin" -ldflags "-X main.version=${pkgver}" gvisor.dev/gvisor/runsc
go build -v -o "bin/$_pkgshim" gvisor.dev/gvisor/shim
CGO_ENABLED=0 go build -v -o "bin/$_pkgbin" -ldflags "-linkmode=external -compressdwarf=false -X gvisor.dev/gvisor/runsc/version.version=${pkgver}" gvisor.dev/gvisor/runsc
go build -v -o "bin/$_pkgshim" -ldflags "-linkmode=external -compressdwarf=false" gvisor.dev/gvisor/shim
}
package() {