From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 229E61582EF for ; Sun, 16 Feb 2025 16:25:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D7BAC3412DE for ; Sun, 16 Feb 2025 16:25:22 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 29BCF110471; Sun, 16 Feb 2025 16:25:19 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 21B15110471 for ; Sun, 16 Feb 2025 16:25:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 C6965340BE0 for ; Sun, 16 Feb 2025 16:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 347942654 for ; Sun, 16 Feb 2025 16:25:17 +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: <1739723093.b5ac3a5296fd73fbd9efe3443724e6547222e815.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/zig/zig-0.13.0-r2.ebuild dev-lang/zig/zig-9999.ebuild X-VCS-Directories: dev-lang/zig/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b5ac3a5296fd73fbd9efe3443724e6547222e815 X-VCS-Branch: master Date: Sun, 16 Feb 2025 16:25:17 +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: 9a440f9d-c56e-42f9-92be-6b7a2e72ed28 X-Archives-Hash: c09242358981a19d9150ec53a42414b2 commit: b5ac3a5296fd73fbd9efe3443724e6547222e815 Author: sin-ack protonmail com> AuthorDate: Fri Feb 14 19:33:11 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 16 16:24:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5ac3a52 dev-lang/zig: warn user about `binfmt_misc` when running tests If binfmt_misc hooks are installed for QEMU, then running Zig tests will fail because Zig attempts to run executables during tests that may be from foreign architectures. Normally this would raise an "exec format error" failure which Zig handles but binfmt_misc hooks turn it into a "missing interpreter" error instead which is not handled. Signed-off-by: Eric Joldasov landless-city.net> Signed-off-by: Sam James gentoo.org> dev-lang/zig/zig-0.13.0-r2.ebuild | 7 +++++++ dev-lang/zig/zig-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/dev-lang/zig/zig-0.13.0-r2.ebuild b/dev-lang/zig/zig-0.13.0-r2.ebuild index 2b05516cbff1..d8fa77b14495 100644 --- a/dev-lang/zig/zig-0.13.0-r2.ebuild +++ b/dev-lang/zig/zig-0.13.0-r2.ebuild @@ -209,6 +209,13 @@ src_compile() { } src_test() { + if has_version -b app-emulation/qemu; then + ewarn "QEMU executable was found on your building system." + ewarn "If you have qemu-binfmt (binfmt_misc) hooks enabled for" + ewarn "foreign architectures, Zig tests might fail." + ewarn "In this case, please disable qemu-binfmt and try again." + fi + cd "${BUILD_DIR}" || die # XXX: When we pass a libc installation to Zig, it will fail to find diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index cb7c8e8bffc1..9fe4558461eb 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.ebuild @@ -202,6 +202,13 @@ src_compile() { } src_test() { + if has_version -b app-emulation/qemu; then + ewarn "QEMU executable was found on your building system." + ewarn "If you have qemu-binfmt (binfmt_misc) hooks enabled for" + ewarn "foreign architectures, Zig tests might fail." + ewarn "In this case, please disable qemu-binfmt and try again." + fi + cd "${BUILD_DIR}" || die # XXX: When we pass a libc installation to Zig, it will fail to find