From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eCPILWlksl5qegAA0tVLHw (envelope-from ) for ; Wed, 06 May 2020 07:16:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cM9pGnVksl6oAQAAbx9fmQ (envelope-from ) for ; Wed, 06 May 2020 07:17:09 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 46B1C940BD0 for ; Wed, 6 May 2020 07:17:07 +0000 (UTC) Received: from localhost ([::1]:49740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWEIk-0005c1-1q for larch@yhetil.org; Wed, 06 May 2020 03:17:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWEIg-0005bo-J3 for guix-patches@gnu.org; Wed, 06 May 2020 03:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWEIg-0003XQ-8u for guix-patches@gnu.org; Wed, 06 May 2020 03:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWEIg-0001h4-2H for guix-patches@gnu.org; Wed, 06 May 2020 03:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41074] [PATCH] gnu: qemu-minimal: Only build for the host's architecture. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 May 2020 07:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 41074@debbugs.gnu.org Received: via spool by 41074-submit@debbugs.gnu.org id=B41074.15887494056478 (code B ref 41074); Wed, 06 May 2020 07:17:02 +0000 Received: (at 41074) by debbugs.gnu.org; 6 May 2020 07:16:45 +0000 Received: from localhost ([127.0.0.1]:38388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWEIO-0001gP-M9 for submit@debbugs.gnu.org; Wed, 06 May 2020 03:16:45 -0400 Received: from flashner.co.il ([178.62.234.194]:58006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWEIM-0001g5-E6 for 41074@debbugs.gnu.org; Wed, 06 May 2020 03:16:43 -0400 Received: from localhost (unknown [188.120.128.132]) by flashner.co.il (Postfix) with ESMTPSA id 60C1A40212; Wed, 6 May 2020 07:16:36 +0000 (UTC) Date: Wed, 6 May 2020 10:16:03 +0300 From: Efraim Flashner Message-ID: <20200506071603.GB2359@E5400> References: <20200504102515.18650-1-efraim@flashner.co.il> <20200505161055.GA31092@jasmine.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0lnxQi9hkpPO77W3" Content-Disposition: inline In-Reply-To: <20200505161055.GA31092@jasmine.lan> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 X-Spam-Score: 0.69 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [0.69 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49635995637982]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.12), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[188.120.128.132:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(3.00)[188.120.128.132:received]; FROM_NEQ_ENVFROM(0.00)[efraim@flashner.co.il,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[flashner.co.il:email]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[flashner.co.il]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; BAD_REP_POLICIES(0.10)[]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 8SCKzTVJH32w --0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 05, 2020 at 12:10:55PM -0400, Leo Famulari wrote: > On Mon, May 04, 2020 at 01:25:15PM +0300, Efraim Flashner wrote: > > * gnu/packages/virtualization.scm (qemu-minimal)[arguments]: Adjust > > configure-flags so that each architecture only builds for its native > > architectures. > > [synopsis]: Adjust to clarify it's only for the host's architecture. >=20 > I admit I don't understand the impact or motivation of this change. What > will be different from what currently happens? Currently every architecutre building qemu-minimal builds targets for each of the architectures we support, x86_64, i686, mips64el, armhf, aarch64. With this change armhf only builds for armhf, x86_64 builds for x86_64 and i686, etc. Looking through the code with a 'git grep qemu-minimal', qemu-minimal is only used for tests for grub and system tests and for (gnu system vm) and on core-updates a bit more similar places. Basically it's only used for running tests and creating VMs, which means it only needs to target the host architecture. Every other place where we provide support for other architectures, like the binfmt service, uses full qemu by default. Overall it doesn't save as much space as I'd hoped, each target architecture only costs about 16MiB, but it does save a fair amount of time building each target architecture. Currently qemu-minimal is 303MiB, dropping the 3 architectures for x86_64 would drop it down to ~258MiB. Some more work would need to be done to trim the share/qemu folder to only have the relevant bits. Currently there's about 200MiB of edk2 stuff for arm/aarch64. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl6yZC8ACgkQQarn3Mo9 g1E9YRAAixUQwn6heijFGdKN0vvFYTottPCAoAj6DBrgaNhBI/POa0syFq2YvUwH eDc0hXXVePFRjXCxaqtu8CeRwY5SNTNUA2TO/sOwRK3DFtnjfrLQM0ENgYRrKYjN zTfHSKJ1Y3RPUGL5QhQjMuPETocUM/fop6DityAFqsiDVcU2u2wepxc70+UQ7st8 WXKtgQN2zRNRon58KWqRcUYDcpAxa/mMXmB73qd6g1V/uTztQJ+xB+UfxnW+ro/V 2Jm2UEFCCK6+J8i3WG2YZWUu/L4HUcwe7dynFGxNAhpUaLSwEn3CbjWbjwWgl92W X7aTtPUEjdFrTlbVINm04nv3qA5svTUqhjhbnYSQTIFhy05NF3jFT+GMw+DS4IKX Ay+f40PLt383p4p1285XacpcBFk2uAsywjkRMhzViRmBSTaDrMntkhDC4ykKehAZ VqMeM3VZ9cfMZMRMiYqzLQV9WV1fd5nd5a3vqh01v7Q/KzoPS6XofSx3VkJLczXw MNr2p+GqljgxQZNJWZVezGbdnxGcFzGi0XFUtG6DHtk74czUnNBmx4+Ld2HMngTI R5Oxpt9XqsGoLaQgSttvhoHROEbM4HsPo/Ez3HNm3gu9oG7yubI8mIidr9f3LaBS Q+JjW7bKDSE8khT3ImhZdo7oI3nfhseFqbqCj3EsVTEhF28lyrI= =wJ0G -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3--