From 2455297fe6121d74d6bd2eb520f478cfc0b7f24d Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 20 Dec 2013 18:58:07 -0800 Subject: [PATCH 1/2] fix(package.accept_keywords): accept go-1.2 --- .../coreos-overlay/profiles/coreos/base/package.accept_keywords | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.accept_keywords b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.accept_keywords index 8b81d913b6..e25810f12e 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.accept_keywords +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.accept_keywords @@ -30,7 +30,7 @@ =dev-libs/opencryptoki-2.4.2 ~amd64 # Go is masked but we need it. -=dev-lang/go-1.1* ~amd64 +=dev-lang/go-1.2* ~amd64 # Replace the function.sh script in baselayout =sys-apps/efunctions-1 ~amd64 ~x86 From 1653ed95ee51304b49754beeef3b7773d832eab3 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 20 Dec 2013 19:06:48 -0800 Subject: [PATCH 2/2] bump(app-emulation/docker): bump to 0.7.2 --- ...ocker-0.7.1.ebuild => docker-0.7.2.ebuild} | 41 ++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) rename sdk_container/src/third_party/coreos-overlay/app-emulation/docker/{docker-0.7.1.ebuild => docker-0.7.2.ebuild} (80%) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.2.ebuild similarity index 80% rename from sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild rename to sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.2.ebuild index 8a0797dd55..019bd65de5 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.2.ebuild @@ -1,36 +1,40 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.7.0.ebuild,v 1.1 2013/11/26 15:17:48 gregkh Exp $ +# $Header: $ EAPI=5 DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level." HOMEPAGE="http://www.docker.io/" -SRC_URI="" -EGIT_REPO_URI="git://github.com/dotcloud/docker.git" +GITHUB_URI="github.com/dotcloud/docker" + if [[ ${PV} == *9999 ]]; then + SRC_URI="" + EGIT_REPO_URI="git://${GITHUB_URI}.git" + inherit git-2 KEYWORDS="" else - EGIT_COMMIT="v${PV}" + SRC_URI="https://${GITHUB_URI}/archive/v${PV}.zip -> ${P}.zip" + DOCKER_GITCOMMIT="28b162e" KEYWORDS="~amd64" + [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!" fi -inherit bash-completion-r1 git-2 linux-info systemd user +inherit bash-completion-r1 linux-info systemd udev user LICENSE="Apache-2.0" SLOT="0" IUSE="aufs +device-mapper doc vim-syntax" +# TODO work with upstream to allow us to build without lvm2 installed if we have -device-mapper CDEPEND=" >=dev-db/sqlite-3.7.9:3 - device-mapper? ( - sys-fs/lvm2[thin] - ) + sys-fs/lvm2[thin] " DEPEND=" ${CDEPEND} - >=dev-lang/go-1.1.2 + >=dev-lang/go-1.2 dev-vcs/git dev-vcs/mercurial doc? ( @@ -60,6 +64,7 @@ RESTRICT="strip" pkg_setup() { CONFIG_CHECK+=" ~BRIDGE + ~IP_NF_TARGET_MASQUERADE ~MEMCG_SWAP ~NETFILTER_XT_MATCH_ADDRTYPE ~NF_NAT @@ -85,11 +90,9 @@ pkg_setup() { check_extra_config } -src_unpack() { - git-2_src_unpack -} - src_compile() { + # eventually, perhaps Gentoo will include a "go" eclass to do some of this + export GOPATH="${WORKDIR}/gopath" mkdir -p "$GOPATH" || die @@ -100,9 +103,15 @@ src_compile() { # we need our vendored deps, too export GOPATH="$GOPATH:$(pwd -P)/vendor" - # time to build! + # setup CFLAGS and LDFLAGS for separate build target + # see https://github.com/tianon/docker-overlay/pull/10 export CGO_CFLAGS="-I${ROOT}/usr/include" export CGO_LDFLAGS="-L${ROOT}/usr/lib" + + # if we're building from a zip, we need the GITCOMMIT value + [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT + + # time to build! ./hack/make.sh dynbinary || die if use doc; then @@ -121,6 +130,8 @@ src_install() { systemd_dounit "${FILESDIR}/docker.service" + udev_dorules contrib/udev/*.rules + dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md if use doc; then dohtml -r docs/_build/html/* @@ -144,6 +155,8 @@ src_install() { } pkg_postinst() { + udev_reload + elog "" elog "To use docker, the docker daemon must be running as root. To automatically" elog "start the docker daemon at boot, add docker to the default runlevel:"