Change the btrfs_noversion check to be automatic

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
Tianon Gravi 2015-04-03 01:30:12 -06:00
parent f92e88b7e0
commit 3761955e8c
3 changed files with 10 additions and 9 deletions

View File

@ -138,7 +138,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
VOLUME /var/lib/docker VOLUME /var/lib/docker
WORKDIR /go/src/github.com/docker/docker WORKDIR /go/src/github.com/docker/docker
ENV DOCKER_BUILDTAGS apparmor selinux btrfs_noversion ENV DOCKER_BUILDTAGS apparmor selinux
# Let us use a .bashrc file # Let us use a .bashrc file
RUN ln -sfv $PWD/.bashrc ~/.bashrc RUN ln -sfv $PWD/.bashrc ~/.bashrc

View File

@ -98,6 +98,14 @@ if [ "$DOCKER_EXECDRIVER" = 'lxc' ]; then
DOCKER_BUILDTAGS+=' test_no_exec' DOCKER_BUILDTAGS+=' test_no_exec'
fi fi
# test whether "btrfs/version.h" exists and apply btrfs_noversion appropriately
if \
command -v gcc &> /dev/null \
&& ! gcc -E - &> /dev/null <<<'#include <btrfs/version.h>' \
; then
DOCKER_BUILDTAGS+=' btrfs_noversion'
fi
# Use these flags when compiling the tests and final binary # Use these flags when compiling the tests and final binary
IAMSTATIC='true' IAMSTATIC='true'

View File

@ -58,8 +58,7 @@ To build the Docker daemon, you will additionally need:
* libdevmapper version 1.02.68-cvs (2012-01-26) or later from lvm2 version * libdevmapper version 1.02.68-cvs (2012-01-26) or later from lvm2 version
2.02.89 or later 2.02.89 or later
* btrfs-progs version 3.16.1 or later (unless using an older version is * btrfs-progs version 3.16.1 or later (unless using an older version is
absolutely necessary, in which case 3.8 is the minimum and the note below absolutely necessary, in which case 3.8 is the minimum)
regarding `btrfs_noversion` applies)
Be sure to also check out Docker's Dockerfile for the most up-to-date list of Be sure to also check out Docker's Dockerfile for the most up-to-date list of
these build-time dependencies. these build-time dependencies.
@ -163,12 +162,6 @@ SELinux, you will need to use the `selinux` build tag:
export DOCKER_BUILDTAGS='selinux' export DOCKER_BUILDTAGS='selinux'
``` ```
If your version of btrfs-progs (also called btrfs-tools) is < 3.16.1, then you
will need the following tag to not check for btrfs version headers:
```bash
export DOCKER_BUILDTAGS='btrfs_noversion'
```
There are build tags for disabling graphdrivers as well. By default, support There are build tags for disabling graphdrivers as well. By default, support
for all graphdrivers are built in. for all graphdrivers are built in.