From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KMfYD/SsN2CyBQAA0tVLHw (envelope-from ) for ; Thu, 25 Feb 2021 13:58:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iCGMC/SsN2ApQQAAbx9fmQ (envelope-from ) for ; Thu, 25 Feb 2021 13:58:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 78CED26639 for ; Thu, 25 Feb 2021 14:58:11 +0100 (CET) Received: from localhost ([::1]:57042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFH9d-0004ch-RM for larch@yhetil.org; Thu, 25 Feb 2021 08:58:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFH9W-0004a4-1d for bug-guix@gnu.org; Thu, 25 Feb 2021 08:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFH9V-0006R3-QL for bug-guix@gnu.org; Thu, 25 Feb 2021 08:58:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFH9V-00021N-Ot for bug-guix@gnu.org; Thu, 25 Feb 2021 08:58:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#36117: [PATCH 3/4] gnu: qemu: Add a static output. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Feb 2021 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36117 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 36117-submit@debbugs.gnu.org id=B36117.16142614667747 (code B ref 36117); Thu, 25 Feb 2021 13:58:01 +0000 Received: (at 36117) by debbugs.gnu.org; 25 Feb 2021 13:57:46 +0000 Received: from localhost ([127.0.0.1]:37099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFH9G-00020t-Dk for submit@debbugs.gnu.org; Thu, 25 Feb 2021 08:57:46 -0500 Received: from mail-qk1-f170.google.com ([209.85.222.170]:46935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFH9D-00020f-Rf for 36117@debbugs.gnu.org; Thu, 25 Feb 2021 08:57:44 -0500 Received: by mail-qk1-f170.google.com with SMTP id w19so5589394qki.13 for <36117@debbugs.gnu.org>; Thu, 25 Feb 2021 05:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=SARF5gGqkieGzMQ99TFzNN3Ed0fMWuKp2yGpm8m9Z4M=; b=LCpdQO5y7dDQD7vzOkCvh5GezFePAfrYSj+1TePAgyHmYYh1LeJ7lOWFHazIfRdDcX 6Py/8YTulCmLalg7pBMosF2nVrzEUZ1S8s8kTUGTmw8duRmP0A6Yk12HoEYMKGbhpgWW JBkK1Ya4aICpAVNVametkOVm/pBnfEmzkzk0QlmYlI4h/F3bCcSiP1ssftBw0sTExZhX cUmVlr3E8fxHfkLFSZ8bGklVfZ+YTqa8YilmSFjl0MIOHiNtLokEwCxyC5tu0z0LDSoG XXKbDwMMQjMUi3ke4Yc4LVGYs2JBK9zNSm8RLAOlcHuPfIDd/n+XSalKhBIF10T/hoiP rA/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=SARF5gGqkieGzMQ99TFzNN3Ed0fMWuKp2yGpm8m9Z4M=; b=Rc4OlB06w0UYfi2v5q7WdX5Qk23u40LThqJwzuPszSVdS3HICHsx6uxsfwlKRkV/0Y cFGJNiDDMSdIB9RZXpMo1FqzGjT3IsoE/S+sNrrFtFCl2gdH/4Ruus1p757+2+6iIjid fXa7co2pv8wyYDrndbvBEQqLoZfO/5aNdAbNSktTj9XsP+GVPaBRjzn1TComtdlN1VDr K/dC5DON/H9GyrqUmTMcKclL8MoQB9IYHIloD8PRZT4zNdoG8FRm05PanE+BvkT5QPgH R3HRL5KxGEfoJOlMTpJeG529bf5QsNqyl9jHwi43ECZJ3OrFPn5vrqrOgKHcb/g3F+Fe CTJQ== X-Gm-Message-State: AOAM533zntJyfRGmykUXCfsBPiKAhgVwgaBpE75th0ErmfErSdKaG2dp 5pOain541LeQDCDqXTRzMs8= X-Google-Smtp-Source: ABdhPJwn1NMUGy9SKyo4g9Ozv+IV4mYgIXhYvUJ9rlIU3s3sRK2ZwVHS9hy2UUWdI0ESSGkO2Tvdww== X-Received: by 2002:a05:620a:6d0:: with SMTP id 16mr2641142qky.335.1614261458251; Thu, 25 Feb 2021 05:57:38 -0800 (PST) Received: from hurd (dsl-10-130-102.b2b2c.ca. [72.10.130.102]) by smtp.gmail.com with ESMTPSA id y20sm3348643qtw.32.2021.02.25.05.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 05:57:37 -0800 (PST) From: Maxim Cournoyer References: <87k1dbb260.fsf@gnu.org> <20210222195006.11357-1-maxim.cournoyer@gmail.com> <20210222195006.11357-3-maxim.cournoyer@gmail.com> <87tuq36uw6.fsf@gnu.org> Date: Thu, 25 Feb 2021 08:57:37 -0500 In-Reply-To: <87tuq36uw6.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 23 Feb 2021 09:38:49 +0100") Message-ID: <87pn0o8d2m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vagrant Cascadian , 36117@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.27 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=LCpdQO5y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 78CED26639 X-Spam-Score: -1.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: I1WYf6tcVPeV Hi! Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >> The static output is equivalent to what other distributions commonly pac= kage >> as 'qemu-user-static'. >> >> * gnu/packages/virtualization.scm (qemu)[outputs]: Add a static output. >> [phases]{configure}: Configure the main build as an out-of-source build.= Move >> all configure flags to ... >> [configure-flags]: ... here. The options explicitly enabling optional >> features are removed; the configure script does a good job at enabling a= ll the >> features available based on the inputs present and this allows reusing t= he >> flags in variant packages such as qemu-minimal. >> {configure-user-static, build-user-static, install-user-static}: New pha= ses. >> {patch-test-shebangs}: New phase, extracted from the configure phase. >> [native-inputs]: Add glib-static, pcre:static and zlib:static. >> (qemu-minimal)[arguments]: Reuse the configure-flags argument. Rewrite = to use >> match instead of cond. > > Nice! > > Do you know how this affects build times? An option would be to make a > separate package rather than a separate output, if that helps. > > Thanks, > Ludo=E2=80=99. I've just ran two builds; the current qemu we have, and the one with the static output added: /gnu/store/aqkr351pph30za9v6bmd8gzpq5gbgz0c-qemu-5.1.0-doc /gnu/store/apxxj92gncx901z71kq0gwg48n2cils6-qemu-5.1.0 real 6m56.816s user 0m13.733s sys 0m0.677s /gnu/store/4bfj6zxl0yd2i3206v4rkwiv2nwyryxb-qemu-5.1.0-doc /gnu/store/7w04gv6m92n40dainn4s6xr3l20r90xw-qemu-5.1.0 /gnu/store/wqh2dyskzkl4vjn6harclyl317h4vfaf-qemu-5.1.0-static real 7m39.197s user 0m15.035s sys 0m0.841s That's about a 10% increase in build time, which is reasonable IMO. In the future we should definitely split our QEMU package into per-architecture variants as well as user vs system emulation, similar to what Debian does. A near 755.8 MiB package is cumbersome and I'm doubtful most of its users make use of the 35 architectures it boasts at a time :-). Thank you! Maxim