From 0cdae8c25de4525ca0ef880e2c2deb58d4e17d9c Mon Sep 17 00:00:00 2001 From: "Ronny (tastytea) Gutbrod" Date: Sat, 4 Feb 2023 11:10:10 +0100 Subject: [PATCH] app-shells/antibody: Don't build with -pie when testing Closes: https://bugs.gentoo.org/893190 Signed-off-by: Ronny (tastytea) Gutbrod --- app-shells/antibody/antibody-6.1.1-r1.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app-shells/antibody/antibody-6.1.1-r1.ebuild b/app-shells/antibody/antibody-6.1.1-r1.ebuild index 70fdaf8f48..9c65147e79 100644 --- a/app-shells/antibody/antibody-6.1.1-r1.ebuild +++ b/app-shells/antibody/antibody-6.1.1-r1.ebuild @@ -52,11 +52,19 @@ SRC_URI=" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND="dev-vcs/git" PATCHES=( "${FILESDIR}/${PN}-6.1.1_remove-failing-tests.patch" ) +src_configure() { + if use test; then + GOFLAGS="${GOFLAGS/-buildmode=pie/-buildmode=exe}" # bug 893190 + fi +} + src_compile() { local -a mygoargs=( -ldflags "-X main.version=${PV}"