Permalink
Browse files

Fixes to make docker 0.8 work with btrfs driver on arm

  • Loading branch information...
1 parent ba92103 commit 499f321d29e0ce0fd149bd4cf7cc4acc187581e7 @farcaller committed Feb 22, 2014
Showing with 12 additions and 5 deletions.
  1. +12 −5 community/docker/PKGBUILD
View
@@ -1,15 +1,15 @@
# $Id$
# Maintainer: Sébastien "Seblu" Luttringer
-# Add patch for ARM being a supported platform.
+# Add patch for ARM being a supported platform.
pkgname=docker
_truever=0.8.0
pkgver=${_truever%.*}
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc='Pack, ship and run any application as a lightweight container'
-arch=('x86_64')
+arch=('x86_64' 'armv7h')
url='http://www.docker.io/'
license=('Apache')
depends=('bridge-utils' 'iproute2' 'device-mapper' 'lxc' 'sqlite' 'systemd')
@@ -19,9 +19,12 @@ optdepends=('btrfs-progs: btrfs backend support')
options=('!strip')
install=$pkgname.install
source=("git+https://github.com/dotcloud/docker.git#tag=v$_truever"
- 'docker-arm.patch')
+ 'docker-arm.patch'
+ 'btrfs-arm.patch')
md5sums=('SKIP'
- '47cc1cdf900af66660bfa3402012ea71')
+ '47cc1cdf900af66660bfa3402012ea71'
+ '1ec4b4b42eb80f2692cee757324370b0')
+
# magic harcoded path
_magic=src/github.com/dotcloud
@@ -30,6 +33,10 @@ prepare() {
ln -sfn "../../../docker" "$_magic/docker"
cd "${srcdir}/docker"
patch -p1 <"${srcdir}/docker-arm.patch"
+ patch -p1 <"${srcdir}/btrfs-arm.patch"
+ find . -name '*.go' | xargs sed --in-place= -e 's/\/\/ +build amd64/\/\/ +build amd64,arm/'
+ find . -name '*.go' | xargs sed --in-place= -e 's/\/\/ +build !linux !amd64/\/\/ +build !linux !amd64 !arm/'
+ find . -name '*.go' | xargs sed --in-place= -e 's/\/\/ +build linux,amd64/\/\/ +build linux,amd64 linux,arm/'
}
build() {

0 comments on commit 499f321

Please sign in to comment.