Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ahmedmoselhi2:branches:system:snappy
snapd-git
go-makefile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File go-makefile.patch of Package snapd-git
1. Build go binaries with debuginfo 2. Actually output command lines and linker warnings into the log file to make it easier to diagnose packaging bugs. --- snapd-2.63/packaging/snapd.mk.orig +++ snapd-2.63/packaging/snapd.mk @@ -68,7 +68,7 @@ all: $(go_binaries) $(builddir)/snap: GO_TAGS += nomanagers $(builddir)/snap $(builddir)/snap-seccomp $(builddir)/snapd-apparmor: go build -o $@ $(if $(GO_TAGS),-tags "$(GO_TAGS)") \ - -buildmode=pie -ldflags=-w -mod=vendor \ + -v -x -buildmode=pie -ldflags='-compressdwarf=false' -mod=vendor \ $(import_path)/cmd/$(notdir $@) # Those three need to be built as static binaries. They run on the inside of a @@ -79,13 +79,13 @@ $(builddir)/snap-update-ns $(builddir)/s # used go build -o $@ -buildmode=default -mod=vendor \ $(if $(GO_TAGS),-tags "$(GO_TAGS)") \ - -ldflags '-linkmode external -extldflags "-static"' \ + -v -x -ldflags '--compressdwarf=false -linkmode external -extldflags "-static"' \ $(import_path)/cmd/$(notdir $@) # Snapd can be built with test keys. This is only used by the internal test # suite to add test assertions. Do not enable this in distribution packages. $(builddir)/snapd: - go build -o $@ -buildmode=pie -ldflags=-w -mod=vendor \ + go build -o $@ -v -x -buildmode=pie -ldflags='-compressdwarf=false' -mod=vendor \ $(if $(GO_TAGS),-tags "$(GO_TAGS)") \ $(import_path)/cmd/$(notdir $@) @@ -195,7 +195,7 @@ endif # output that unit tests do not mock. .PHONY: check check: - LC_ALL=C.UTF-8 go test -mod=vendor $(import_path)/... + LC_ALL=C.UTF-8 go test -v -x -buildmode=pie -mod=vendor $(import_path)/... .PHONY: clean clean:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor