From 6922f1be08111d889b0585b763b08f92d7a55e05 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Sat, 1 Feb 2014 21:40:51 -0700 Subject: [PATCH] Remove reference to , and instead use like we're supposed to (from btrfs-progs) This fixes compilation issues when btrfs.h isn't available (because we just need the relevant structs, which for userspace programs are supposed to come from btrfs-progs instead of the kernel headers). Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- Dockerfile | 2 +- graphdriver/btrfs/btrfs.go | 8 ++------ hack/PACKAGERS.md | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9ecd8140a..e00c7283ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ apt-utils \ aufs-tools \ automake \ + btrfs-tools \ build-essential \ curl \ dpkg-sig \ @@ -40,7 +41,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ libapparmor-dev \ libcap-dev \ libsqlite3-dev \ - linux-libc-dev \ mercurial \ reprepro \ ruby1.9.1 \ diff --git a/graphdriver/btrfs/btrfs.go b/graphdriver/btrfs/btrfs.go index a50f11f851..3d27909bd1 100644 --- a/graphdriver/btrfs/btrfs.go +++ b/graphdriver/btrfs/btrfs.go @@ -4,15 +4,11 @@ package btrfs /* #include -#include -#include -#include -#include #include -#include - +#include */ import "C" + import ( "fmt" "github.com/dotcloud/docker/graphdriver" diff --git a/hack/PACKAGERS.md b/hack/PACKAGERS.md index 2d869b6eda..f4e7e49330 100644 --- a/hack/PACKAGERS.md +++ b/hack/PACKAGERS.md @@ -39,6 +39,7 @@ To build docker, you will need the following system dependencies * Go version 1.2 or later * SQLite version 3.7.9 or later * libdevmapper version 1.02.68-cvs (2012-01-26) or later from lvm2 version 2.02.89 or later +* btrfs-progs version 3.8 or later (including commit e5cb128 from 2013-01-07) for the necessary btrfs headers * A clean checkout of the source must be added to a valid Go [workspace](http://golang.org/doc/code.html#Workspaces) under the path *src/github.com/dotcloud/docker*.