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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2E2D13835A for ; Wed, 18 Nov 2020 15:24:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AABB8E097A; Wed, 18 Nov 2020 15:24:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9617DE097A for ; Wed, 18 Nov 2020 15:24:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A46933410F5 for ; Wed, 18 Nov 2020 15:24:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4484445 for ; Wed, 18 Nov 2020 15:24:48 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1605713080.f06f97dc9b9fe6e0d57474e0e01ed29de2c9979a.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-lfs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/git-lfs/git-lfs-9999.ebuild X-VCS-Directories: dev-vcs/git-lfs/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: f06f97dc9b9fe6e0d57474e0e01ed29de2c9979a X-VCS-Branch: master Date: Wed, 18 Nov 2020 15:24:48 +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: 4b1453ef-951c-4d86-beeb-91920c37f9c3 X-Archives-Hash: 609bbee53c228f07ed1bd8acd107c021 commit: f06f97dc9b9fe6e0d57474e0e01ed29de2c9979a Author: Nils Freydank posteo de> AuthorDate: Tue Nov 10 08:59:11 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Nov 18 15:24:40 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f06f97dc dev-vcs/git-lfs: Update the live ebuild Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Nils Freydank posteo.de> Closes: https://github.com/gentoo/gentoo/pull/17618 Signed-off-by: Joonas Niilola gentoo.org> dev-vcs/git-lfs/git-lfs-9999.ebuild | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/dev-vcs/git-lfs/git-lfs-9999.ebuild b/dev-vcs/git-lfs/git-lfs-9999.ebuild index a48a6fe6e6c..f5a948c8f4f 100644 --- a/dev-vcs/git-lfs/git-lfs-9999.ebuild +++ b/dev-vcs/git-lfs/git-lfs-9999.ebuild @@ -13,7 +13,7 @@ if [[ "${PV}" = 9999* ]]; then inherit git-r3 else SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~amd64-linux ~x86-linux" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" fi LICENSE="Apache-2.0 BSD BSD-2 BSD-4 ISC MIT" @@ -26,12 +26,13 @@ RDEPEND="dev-vcs/git" RESTRICT+=" !test? ( test )" src_compile() { - set -- go build \ - -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT}" \ - -mod vendor -v -work -x \ - -o git-lfs git-lfs.go - echo "$@" - "$@" || die + # Flags -w, -s: Omit debugging information to reduce binary size, + # see https://golang.org/cmd/link/. + local mygobuildargs=( + -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -s -w" + -mod vendor -v -work -x + ) + go build "${mygobuildargs[@]}" -o git-lfs git-lfs.go || die if use doc; then ronn docs/man/*.ronn || die "man building failed" @@ -45,12 +46,11 @@ src_install() { } src_test() { - set -- go test \ - -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT}" \ - -mod vendor \ - ./... - echo "$@" - "$@" || die + local mygotestargs=( + -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT}" + -mod vendor + ) + go test "${mygotestargs[@]}" ./... || die } pkg_postinst () {