[packages/docker-ce: 4/7] cleanups

glen glen at pld-linux.org
Tue Aug 29 21:14:14 CEST 2017


commit f47d9fe127e462472721f73a01f28b7077b4005e
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Aug 29 21:34:17 2017 +0300

    cleanups

 docker-ce.spec | 32 ++++++++------------------------
 1 file changed, 8 insertions(+), 24 deletions(-)
---
diff --git a/docker-ce.spec b/docker-ce.spec
index bd12a63..97e2b67 100644
--- a/docker-ce.spec
+++ b/docker-ce.spec
@@ -161,30 +161,21 @@ mv libnetwork/vendor libnetwork/gopath/src
 ln -s ../../../.. libnetwork/gopath/src/github.com/docker/libnetwork
 
 mv tini-* tini
-%patch0 -p1 -d components/engine
 
-#install -d vendor/src/github.com/docker
-#ln -s $(pwd) vendor/src/github.com/docker/docker
-#ln -s $(pwd)/containerd containerd/vendor/src/github.com/docker/containerd
-#ln -s $(pwd)/libnetwork vendor/src/github.com/docker/libnetwork
+install -d components/cli/.gopath/src/github.com/docker
+ln -s ../../../.. components/cli/.gopath/src/github.com/docker/cli
 
-#ln -s ../../.. components/cli/vendor/github.com/docker/cli
-#ln -s ../../../../cli components/engine/vendor/github.com/docker
-#ln -s cli/vendor/github.com/docker/docker components/engine/vendor/github.com/docker
-#ln -s ../../.. components/engine/vendor/github.com/docker/docker
+%patch0 -p1 -d components/engine
 
 %build
-v=$(awk -F= '/^RUNC_COMMIT/ {print $2}' components/engine/hack/dockerfile/binaries-commits)
+f=components/engine/hack/dockerfile/binaries-commits
+v=$(awk -F= '/^RUNC_COMMIT/ {print $2}' $f)
 echo "$v" | grep "^%{runc_commit}"
-v=$(awk -F= '/^CONTAINERD_COMMIT/ {print $2}' components/engine/hack/dockerfile/binaries-commits)
+v=$(awk -F= '/^CONTAINERD_COMMIT/ {print $2}' $f)
 echo "$v" | grep "^%{containerd_commit}"
-v=$(awk -F= '/^LIBNETWORK_COMMIT/ {print $2}' components/engine/hack/dockerfile/binaries-commits)
+v=$(awk -F= '/^LIBNETWORK_COMMIT/ {print $2}' $f)
 echo "$v" | grep "^%{libnetwork_commit}"
 
-#export GOPATH=$(pwd)/vendor:$(pwd)/containerd/vendor
-#export GOPATH=$(pwd)/components/engine
-#export GOROOT=$(pwd)/components/engine
-
 export VERSION=%{version}
 export GITCOMMIT="pld/%{version}" # for cli
 export DOCKER_GITCOMMIT="pld/%{version}" # for engine
@@ -213,15 +204,8 @@ cmake .
 
 # docker cli
 cd ../components/cli
-#bash -x scripts/build/dynbinary
-#make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit}
-#ln -s vendor src
-rm -rf .gopath
-DOCKER_PKG=github.com/docker/cli
-mkdir -p .gopath/src/"$(dirname "${DOCKER_PKG}")"
-ln -sfn ../../../.. .gopath/src/"${DOCKER_PKG}"
 GOPATH=$(pwd)/.gopath \
-%{__make} dynbinary #manpages
+%{__make} dynbinary
 ./build/docker -v
 
 cd ../engine
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/docker-ce.git/commitdiff/902914c7c366b62040f592610ffa78c33cdda8d2



More information about the pld-cvs-commit mailing list