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 053B9158086 for ; Sat, 4 Dec 2021 19:39:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23C5EE07FE; Sat, 4 Dec 2021 19:39:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 04792E07FE for ; Sat, 4 Dec 2021 19:39:24 +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 A6A8B342EE4 for ; Sat, 4 Dec 2021 19:39:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 27B081C6 for ; Sat, 4 Dec 2021 19:39:21 +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: <1638646754.42665d35c9428894e0ba91ec92b3974f1b3866ca.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libucontext/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libucontext/libucontext-1.1.ebuild X-VCS-Directories: sys-libs/libucontext/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 42665d35c9428894e0ba91ec92b3974f1b3866ca X-VCS-Branch: master Date: Sat, 4 Dec 2021 19:39:21 +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: 27d81f6e-ecfe-4047-833c-c4dd88bc901d X-Archives-Hash: 13d4fce70a339b019d42405e2f4fc302 commit: 42665d35c9428894e0ba91ec92b3974f1b3866ca Author: Sam James gentoo org> AuthorDate: Sat Dec 4 19:39:05 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 4 19:39:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42665d35 sys-libs/libucontext: override arch detection for e.g. x86 Signed-off-by: Sam James gentoo.org> sys-libs/libucontext/libucontext-1.1.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sys-libs/libucontext/libucontext-1.1.ebuild b/sys-libs/libucontext/libucontext-1.1.ebuild index 306709222308..0e825c18bc26 100644 --- a/sys-libs/libucontext/libucontext-1.1.ebuild +++ b/sys-libs/libucontext/libucontext-1.1.ebuild @@ -23,7 +23,21 @@ RESTRICT="test" src_compile() { tc-export AR CC - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" all $(usev man 'docs') + local arch + + # Override arch detection + # https://github.com/kaniini/libucontext/blob/master/Makefile#L3 + if use x86 ; then + arch="x86" + elif use arm ; then + arch="arm" + elif use arm64 ; then + arch="aarch64" + elif use ppc64 ; then + arch="ppc64" + fi + + emake ARCH="${arch}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" all $(usev man 'docs') } src_test() {