Browse code

Revert "Merge pull request #21003 from riyazdf/hardware-signing-ga"

This reverts commit e6d3a9849c96201681915944947a0e5452619929, reversing
changes made to d3afe34b51e7588984cc21a2f48da116645e52e3.

Signed-off-by: cyli <cyli@twistedmatrix.com>

cyli authored on 2016/03/25 13:08:03
Showing 10 changed files
... ...
@@ -202,7 +202,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
202 202
 
203 203
 VOLUME /var/lib/docker
204 204
 WORKDIR /go/src/github.com/docker/docker
205
-ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
205
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux
206 206
 
207 207
 # Let us use a .bashrc file
208 208
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
... ...
@@ -151,7 +151,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
151 151
 
152 152
 VOLUME /var/lib/docker
153 153
 WORKDIR /go/src/github.com/docker/docker
154
-ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
154
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux
155 155
 
156 156
 # Let us use a .bashrc file
157 157
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
... ...
@@ -153,7 +153,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
153 153
 
154 154
 VOLUME /var/lib/docker
155 155
 WORKDIR /go/src/github.com/docker/docker
156
-ENV DOCKER_BUILDTAGS apparmor pkcs11 seccomp selinux
156
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux
157 157
 
158 158
 # Let us use a .bashrc file
159 159
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
... ...
@@ -154,7 +154,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
154 154
 
155 155
 VOLUME /var/lib/docker
156 156
 WORKDIR /go/src/github.com/docker/docker
157
-ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
157
+ENV DOCKER_BUILDTAGS apparmor selinux
158 158
 
159 159
 # Let us use a .bashrc file
160 160
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
... ...
@@ -133,7 +133,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
133 133
 
134 134
 VOLUME /var/lib/docker
135 135
 WORKDIR /go/src/github.com/docker/docker
136
-ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux
136
+ENV DOCKER_BUILDTAGS apparmor selinux
137 137
 
138 138
 # Let us use a .bashrc file
139 139
 RUN ln -sfv $PWD/.bashrc ~/.bashrc
... ...
@@ -113,7 +113,7 @@ fi
113 113
 if [ "$DOCKER_EXPERIMENTAL" ]; then
114 114
 	echo >&2 '# WARNING! DOCKER_EXPERIMENTAL is set: building experimental features'
115 115
 	echo >&2
116
-	DOCKER_BUILDTAGS+=" experimental"
116
+	DOCKER_BUILDTAGS+=" experimental pkcs11"
117 117
 fi
118 118
 
119 119
 if [ -z "$DOCKER_CLIENTONLY" ]; then
... ...
@@ -5,8 +5,8 @@ VERSION = $(shell cat VERSION)
5 5
 override_dh_gencontrol:
6 6
 	# if we're on Ubuntu, we need to Recommends: apparmor
7 7
 	echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-engine.substvars
8
-	# recommend yubico-piv-tool since we include pkcs11 by default
9
-	echo 'yubico:Recommends=yubico-piv-tool (>= 1.1.0~)' >> debian/docker-engine.substvars
8
+	# if we are building experimental we recommend yubico-piv-tool
9
+	echo 'yubico:Recommends=$(shell [ "$DOCKER_EXPERIMENTAL" ] && echo "yubico-piv-tool (>= 1.1.0~)")' >> debian/docker-engine.substvars
10 10
 	dh_gencontrol
11 11
 
12 12
 override_dh_auto_build:
... ...
@@ -60,10 +60,12 @@ Requires: device-mapper >= 1.02.90-2
60 60
 %global with_selinux 1
61 61
 %endif
62 62
 
63
-# yubico-piv-tool recommends
63
+%if 0%{?_experimental}
64
+# yubico-piv-tool conditional
64 65
 %if 0%{?fedora} >= 20 || 0%{?centos} >= 7 || 0%{?rhel} >= 7
65 66
 Requires: yubico-piv-tool >= 1.1.0
66 67
 %endif
68
+%endif
67 69
 
68 70
 # start if with_selinux
69 71
 %if 0%{?with_selinux}
... ...
@@ -36,7 +36,7 @@ if [ "$(go env GOOS)" == "linux" ] ; then
36 36
 	esac
37 37
 fi
38 38
 
39
-if [ "$IAMSTATIC" == "true" ] && [ "$(go env GOHOSTOS)" == "linux" ]; then
39
+if [ "$IAMSTATIC" == "true" ] && [ "$(go env GOHOSTOS)" == "linux" ] && [ "$DOCKER_EXPERIMENTAL" ]; then
40 40
 	if  [ "${GOOS}/${GOARCH}" == "darwin/amd64" ]; then
41 41
 		export CGO_ENABLED=1
42 42
 		export CC=o64-clang
... ...
@@ -60,7 +60,7 @@ To build the Docker daemon, you will additionally need:
60 60
 * btrfs-progs version 3.16.1 or later (unless using an older version is
61 61
   absolutely necessary, in which case 3.8 is the minimum)
62 62
 * libseccomp version 2.2.1 or later (for build tag seccomp)
63
-* yubico-piv-tool version 1.1.0 or later
63
+* yubico-piv-tool version 1.1.0 or later (for experimental)
64 64
 
65 65
 Be sure to also check out Docker's Dockerfile for the most up-to-date list of
66 66
 these build-time dependencies.