From a7828331c20cecb0b1f082f0bd63aef389bb2bd4 Mon Sep 17 00:00:00 2001 From: Nick Owens Date: Tue, 2 Feb 2016 14:50:22 -0800 Subject: [PATCH] coreos-devel/mantle: bump to 0.0.9 --- .../mantle/{mantle-0.0.8.ebuild => mantle-0.0.9.ebuild} | 0 .../coreos-overlay/coreos-devel/mantle/mantle-9999.ebuild | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) rename sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/{mantle-0.0.8.ebuild => mantle-0.0.9.ebuild} (100%) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-0.0.8.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-0.0.9.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-0.0.8.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-0.0.9.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-9999.ebuild index b273240f46..9655264aa0 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-devel/mantle/mantle-9999.ebuild @@ -10,7 +10,7 @@ COREOS_GO_PACKAGE="github.com/coreos/mantle" if [[ "${PV}" == 9999 ]]; then KEYWORDS="~amd64 ~arm64" else - CROS_WORKON_COMMIT="ba5d6cd46eb6ec14a73f537902a1ac8f8776faad" + CROS_WORKON_COMMIT="c4109265954875e89d755b8e62fa3775824062f1" # v0.0.9 KEYWORDS="amd64 arm64" fi @@ -24,6 +24,12 @@ SLOT="0" RDEPEND=">=net-dns/dnsmasq-2.72[dhcp,ipv6]" src_compile() { + if [[ "${PV}" == 9999 ]]; then + GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/version.Version $(get_semver)" + else + GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/version.Version ${PV}" + fi + for cmd in cork kola kolet ore plume; do go_build "${COREOS_GO_PACKAGE}/cmd/${cmd}" done