public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/helm/
Date: Tue, 10 Mar 2020 23:39:21 +0000 (UTC)	[thread overview]
Message-ID: <1583883557.06e89b240c525b560c76d5b55f2baf8173ba7f96.robbat2@gentoo> (raw)

commit:     06e89b240c525b560c76d5b55f2baf8173ba7f96
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 10 23:33:05 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Mar 10 23:39:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06e89b24

app-admin/helm: fix build process

Fix the build process where 3.1.1 did not build at all, and ensure that
it has correct Git data in the version output.

Fixes: https://bugs.gentoo.org/711852
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 app-admin/helm/helm-3.1.1.ebuild | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/app-admin/helm/helm-3.1.1.ebuild b/app-admin/helm/helm-3.1.1.ebuild
index f49619ea932..21fe413bbc9 100644
--- a/app-admin/helm/helm-3.1.1.ebuild
+++ b/app-admin/helm/helm-3.1.1.ebuild
@@ -700,17 +700,29 @@ RESTRICT+=" test"
 
 src_prepare() {
 	default
-	mv ../vendor .
-	sed -i -e "s/git rev-parse HEAD/echo ${GIT_COMMIT}/"\
-		-e "s/git rev-parse --short HEAD/echo ${GIT_COMMIT:0:7}/"\
-		-e "s#git describe --tags --abbrev=0 --exact-match 2>/dev/null#echo v${PV}#"\
-		-e 's/test -n "`git status --porcelain`" && echo "dirty" || //' \
-		-e "/GOFLAGS    :=/d" \
+	# Makefile:
+	# - change GIT & LDFLAGS variable assignments from immediate ":=" to
+	#   deferred "=", to allow better overrides.
+	# - Remove GOFLAGS entirely
+	# - Remove -w & -s from LDFLAGS
+	# - Git spec will be passed later
+	sed -r -i \
+		-e '/^GIT_(COMMIT|SHA|TAG|DIRTY)/s,:?=.*,=,g' \
+		-e "/^GOFLAGS[[:space:]]+:?=/d" \
+		-e '/^LDFLAGS[[:space:]]+:?=/{s,-[ws],,g;s,:=,=,g}' \
 		Makefile || die
 }
 
 src_compile() {
-	emake GOFLAGS="-mod=vendor" LDFLAGS= build
+	# Do not pass LDFLAGS directly here, as the upstream Makefile adds some
+	# data to it via +=
+	emake \
+		GOFLAGS="${GOFLAGS}" \
+		GIT_SHA=${GIT_COMMIT} \
+		GIT_COMMIT=${GIT_COMMIT:0:7} \
+		GIT_TAG=v${PV} \
+		GIT_DIRTY=clean \
+		build
 	bin/${PN} completion bash > ${PN}.bash || die
 	bin/${PN} completion zsh > ${PN}.zsh || die
 }


             reply	other threads:[~2020-03-10 23:39 UTC|newest]

Thread overview: 122+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 23:39 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-05 17:23 [gentoo-commits] repo/gentoo:master commit in: app-admin/helm/ William Hubbs
2025-03-05 14:40 Arthur Zamarin
2024-08-22 21:21 William Hubbs
2024-07-04 14:19 William Hubbs
2024-07-04 14:19 William Hubbs
2024-07-04 14:19 William Hubbs
2024-07-04 14:19 William Hubbs
2023-11-08 22:03 William Hubbs
2023-09-08 20:51 William Hubbs
2023-04-08 21:16 William Hubbs
2023-03-24 19:44 William Hubbs
2023-03-24 19:41 William Hubbs
2022-12-17  6:41 WANG Xuerui
2022-11-29 23:10 John Helmert III
2022-11-29 10:25 Ulrich Müller
2022-11-04 20:46 William Hubbs
2022-09-29  0:57 Yixun Lan
2022-09-09 17:20 William Hubbs
2022-09-09 17:20 William Hubbs
2022-09-09 17:20 William Hubbs
2022-07-21  3:04 William Hubbs
2022-06-14  7:06 Jakov Smolić
2022-04-02 19:20 William Hubbs
2022-04-02 19:20 William Hubbs
2022-03-11  2:30 William Hubbs
2022-03-06 16:26 William Hubbs
2022-02-27  8:05 William Hubbs
2022-02-27  8:05 William Hubbs
2022-01-28 16:14 William Hubbs
2022-01-27 15:58 William Hubbs
2022-01-27 15:53 William Hubbs
2022-01-27 15:53 William Hubbs
2021-10-14 17:28 William Hubbs
2021-10-14 17:28 William Hubbs
2021-10-03 16:40 William Hubbs
2021-08-07 21:46 William Hubbs
2021-08-07 21:46 William Hubbs
2021-07-25  2:47 William Hubbs
2021-07-25  1:40 William Hubbs
2021-07-25  1:33 William Hubbs
2021-04-20 21:36 Zac Medico
2021-01-04  2:08 William Hubbs
2020-11-28 19:08 William Hubbs
2020-11-28 19:08 William Hubbs
2020-10-25  6:02 William Hubbs
2020-10-25  6:02 William Hubbs
2020-10-25  6:02 William Hubbs
2020-10-04  2:30 William Hubbs
2020-08-07 17:40 William Hubbs
2020-08-07  2:39 William Hubbs
2020-08-07  2:18 William Hubbs
2020-08-07  2:12 William Hubbs
2020-06-18  3:08 William Hubbs
2020-06-18  2:36 William Hubbs
2020-05-21 15:41 William Hubbs
2020-05-03 20:47 William Hubbs
2020-05-03 20:47 William Hubbs
2020-05-03 20:47 William Hubbs
2020-03-13 14:17 William Hubbs
2020-03-09  0:57 Robin H. Johnson
2020-03-07 19:54 William Hubbs
2020-03-07 19:54 William Hubbs
2020-02-25 23:45 William Hubbs
2020-02-12 18:21 William Hubbs
2020-01-10 17:47 William Hubbs
2019-12-10 19:18 William Hubbs
2019-12-07 22:58 William Hubbs
2019-11-27 14:35 Manuel Rüger
2019-11-24 19:02 Manuel Rüger
2019-11-24 19:01 Manuel Rüger
2019-11-24 19:01 Manuel Rüger
2019-11-21  9:26 Manuel Rüger
2019-11-20 22:19 Manuel Rüger
2019-11-20 22:19 Manuel Rüger
2019-11-20 22:19 Manuel Rüger
2019-10-30 13:41 Manuel Rüger
2019-10-30 13:41 Manuel Rüger
2019-10-23 13:16 Manuel Rüger
2019-10-21 18:14 Manuel Rüger
2019-08-17 18:55 Manuel Rüger
2019-08-17 18:55 Manuel Rüger
2019-08-01 12:54 Manuel Rüger
2019-07-23 15:17 Manuel Rüger
2019-07-23 15:17 Manuel Rüger
2019-07-23 15:17 Manuel Rüger
2019-06-06  9:39 Manuel Rüger
2019-05-16  9:59 Manuel Rüger
2019-05-16  9:59 Manuel Rüger
2019-05-16  8:13 Manuel Rüger
2019-03-28 16:24 Manuel Rüger
2019-03-28 16:24 Manuel Rüger
2019-03-28 14:12 Manuel Rüger
2019-03-28 14:12 Manuel Rüger
2019-02-28 11:18 Manuel Rüger
2019-01-23 14:04 Manuel Rüger
2019-01-15 15:10 Manuel Rüger
2019-01-15 15:10 Manuel Rüger
2019-01-14 18:38 Manuel Rüger
2018-12-20 11:42 Manuel Rüger
2018-12-11  8:18 Manuel Rüger
2018-09-26 11:19 Manuel Rüger
2018-08-20 14:44 Manuel Rüger
2018-08-20 14:44 Manuel Rüger
2018-08-05 13:50 Manuel Rüger
2018-07-31 18:50 Manuel Rüger
2018-06-27 19:53 Manuel Rüger
2018-06-27 19:53 Manuel Rüger
2018-05-15 11:18 Manuel Rüger
2018-05-15 11:18 Manuel Rüger
2018-04-27  2:53 Manuel Rüger
2018-03-19 12:57 Manuel Rüger
2018-03-19 12:51 Manuel Rüger
2018-02-12 20:45 Manuel Rüger
2018-02-12 20:21 Manuel Rüger
2018-01-24 12:44 Manuel Rüger
2017-12-11 14:21 Manuel Rüger
2017-12-11 14:21 Manuel Rüger
2017-12-06 18:46 Manuel Rüger
2017-12-06 18:46 Manuel Rüger
2017-12-04 12:12 Manuel Rüger
2017-12-01 19:43 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583883557.06e89b240c525b560c76d5b55f2baf8173ba7f96.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox