Hello community, here is the log from the commit of package docker for openSUSE:Factory checked in at 2017-08-17 11:44:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/docker (Old) and /work/SRC/openSUSE:Factory/.docker.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "docker" Thu Aug 17 11:44:02 2017 rev:58 rq:516137 version:17.04.0_ce Changes: -------- --- /work/SRC/openSUSE:Factory/docker/docker.changes 2017-07-30 11:26:35.980001604 +0200 +++ /work/SRC/openSUSE:Factory/.docker.new/docker.changes 2017-08-17 11:44:05.589963477 +0200 @@ -1,0 +2,5 @@ +Wed Aug 2 13:37:16 UTC 2017 - [email protected] + +- Use -buildmode=pie for tests and binary build. bsc#1048046 bsc#1051429 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ docker.spec ++++++ --- /var/tmp/diff_new_pack.tryGVA/_old 2017-08-17 11:44:07.085752366 +0200 +++ /var/tmp/diff_new_pack.tryGVA/_new 2017-08-17 11:44:07.089751801 +0200 @@ -200,6 +200,8 @@ # Until boo#1038493 is fixed properly we need to do this hack to get the # compiled-into-the-binary GOROOT. export GOROOT="$(GOROOT= go env GOROOT)" +# Make sure we always build PIC code. bsc#1048046 +export BUILDFLAGS="-buildmode=pie" EOF ) > docker_build_env . ./docker_build_env @@ -209,6 +211,7 @@ # build the tests binary GOPATH=$(pwd)/vendor:$(pwd)/.gopath/ go test \ + -buildmode=pie \ -tags "$DOCKER_BUILDTAGS daemon autogen" \ -c github.com/docker/docker/integration-cli -o tests.main @@ -265,14 +268,13 @@ | grep -v 'github.com/docker/docker/cmd/dockerd$' \ | grep -v 'github.com/docker/docker/builder/dockerfile/parser$' \ | grep -v 'github.com/docker/docker/man$' \ -%if 0%{?with_libseccomp} - | grep -v 'github.com/docker/docker/pkg/integration$') -%else | grep -v 'github.com/docker/docker/pkg/integration$' \ - | grep -v 'github.com/docker/docker/profiles/seccomp$') +%if ! 0%{?with_libseccomp} + | grep -v 'github.com/docker/docker/profiles/seccomp$' \ %endif + ) -go test -cover -ldflags -w -tags "$DOCKER_BUILDTAGS" -a -test.timeout=10m $PKG_LIST +go test -buildmode=pie -cover -ldflags -w -tags "$DOCKER_BUILDTAGS" -a -test.timeout=10m $PKG_LIST %install install -d %{buildroot}%{go_contribdir}
