commit:     dbdb0d4218deaa30a86905b339868b732907a986
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 26 20:18:09 2018 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Nov 26 20:18:09 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbdb0d42

dev-db/etcd: Verbose build, add Git SHA

Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11

 dev-db/etcd/etcd-3.3.10.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-db/etcd/etcd-3.3.10.ebuild b/dev-db/etcd/etcd-3.3.10.ebuild
index 19f780d0674..431d7d6ff86 100644
--- a/dev-db/etcd/etcd-3.3.10.ebuild
+++ b/dev-db/etcd/etcd-3.3.10.ebuild
@@ -7,6 +7,7 @@ inherit user systemd golang-vcs-snapshot
 
 KEYWORDS="~amd64"
 EGO_PN="github.com/coreos/etcd"
+GIT_COMMIT="27fc7e2"
 MY_PV="${PV/_rc/-rc.}"
 DESCRIPTION="Highly-available key value store for shared configuration and 
service discovery"
 HOMEPAGE="https://github.com/coreos/etcd";
@@ -19,7 +20,7 @@ RDEPEND="!dev-db/etcdctl"
 
 src_prepare() {
        default
-       sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
+       sed -e "s|GIT_SHA=.*|GIT_SHA=${GIT_COMMIT}|"\
                -i "${S}"/src/${EGO_PN}/build || die
        sed -e 's:\(for p in \)shellcheck :\1 :' \
                -e 's:^                 gofmt \\$:\\:' \
@@ -40,7 +41,7 @@ pkg_setup() {
 src_compile() {
        export GOPATH=${S}
        pushd src/${EGO_PN} || die
-       ./build || die
+       GO_BUILD_FLAGS=-v ./build || die
        popd || die
 }
 

Reply via email to