From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1B0A8158090 for ; Wed, 4 May 2022 23:22:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56B47E0798; Wed, 4 May 2022 23:22:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3BB76E0798 for ; Wed, 4 May 2022 23:22:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 47A5E341817 for ; Wed, 4 May 2022 23:22:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C9686448 for ; Wed, 4 May 2022 23:22:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1651706565.13fb5b0bd1ed64c3a5910ad2e29459f60c377547.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/gitea/gitea-1.16.7.ebuild X-VCS-Directories: www-apps/gitea/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 13fb5b0bd1ed64c3a5910ad2e29459f60c377547 X-VCS-Branch: master Date: Wed, 4 May 2022 23:22:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d6d4f041-7173-49f8-a3b3-79fed07952df X-Archives-Hash: d664f6321cd7d2c6606b764365066377 commit: 13fb5b0bd1ed64c3a5910ad2e29459f60c377547 Author: Sam James gentoo org> AuthorDate: Wed May 4 23:22:34 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed May 4 23:22:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13fb5b0b www-apps/gitea: rebase PIE changes onto 1.16.7 Bug: https://bugs.gentoo.org/832756 Signed-off-by: Sam James gentoo.org> www-apps/gitea/gitea-1.16.7.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/www-apps/gitea/gitea-1.16.7.ebuild b/www-apps/gitea/gitea-1.16.7.ebuild index eaeda1a3f382..249baa6f0eb7 100644 --- a/www-apps/gitea/gitea-1.16.7.ebuild +++ b/www-apps/gitea/gitea-1.16.7.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit fcaps go-module tmpfiles systemd +inherit fcaps go-module tmpfiles systemd flag-o-matic DESCRIPTION="A painless self-hosted Git service" HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea" @@ -13,7 +13,7 @@ S="${WORKDIR}" LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" SLOT="0" -IUSE="+acct pam sqlite" +IUSE="+acct pam sqlite pie" DEPEND=" acct? ( @@ -52,6 +52,12 @@ src_prepare() { fi } +src_configure() { + # bug 832756 - PIE build issues + filter-flags -fPIE + filter-ldflags -fPIE -pie +} + src_compile() { local gitea_tags=( bindata @@ -69,7 +75,12 @@ src_compile() { TAGS="${gitea_tags[*]}" ) - env "${makeenv[@]}" emake backend + GOFLAGS="" + if use pie ; then + GOFLAGS+="-buildmode=pie" + fi + + env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend } src_install() {