commit:     0cdae8c25de4525ca0ef880e2c2deb58d4e17d9c
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Sat Feb  4 10:10:10 2023 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Sat Feb  4 10:25:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0cdae8c2

app-shells/antibody: Don't build with -pie when testing

Closes: https://bugs.gentoo.org/893190
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 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 70fdaf8f4..9c65147e7 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}"

Reply via email to