summarylogtreecommitdiffstats
path: root/.SRCINFO
diff options
context:
space:
mode:
authorMaciek Borzecki2018-04-18 10:14:09 +0200
committerMaciek Borzecki2018-04-18 10:16:20 +0200
commit5b0a5c57f66df6cd9f5e3eddbbbe6a63825965e8 (patch)
tree803850e5fdd13b5ff17051160726cb9f5d3924f4 /.SRCINFO
parentbfedfe231208a3daadb127320fbcc2ab6495757c (diff)
downloadaur-5b0a5c57f66df6cd9f5e3eddbbbe6a63825965e8.tar.gz
snapd: switch to building with go instead of go-pie
Building statically linked PIE binaries appears to be broken in both Go upstream and Arch packages. The toolchain ignores CGO_ENABLED=0, does not fail when building and produces dynamically linked binaries. The output looks like this: $ CGO_ENABLED=0 go build -o snap-exec github.com/snapcore/snapd/cmd/snap-exec # github.com/snapcore/snapd/cmd/snap-exec loadinternal: cannot find runtime/cgo Since snap-exec *must* be built statically, switch to building with regular Go toolchain. Tweak static build command, instead of disabling cgo, leave it enabled and pass -static to ld. Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Diffstat (limited to '.SRCINFO')
-rw-r--r--.SRCINFO2
1 files changed, 1 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 84fdf3b4e9c4..44d91daea8ba 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,7 +7,7 @@ pkgbase = snapd-git
arch = x86_64
license = GPL3
makedepends = git
- makedepends = go-pie
+ makedepends = go
makedepends = go-tools
makedepends = libseccomp
makedepends = libcap