From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 22 19:04:05 2017 Received: (at 26608) by debbugs.gnu.org; 22 Apr 2017 23:04:05 +0000 Received: from localhost ([127.0.0.1]:34863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d244T-0007Pn-C4 for submit@debbugs.gnu.org; Sat, 22 Apr 2017 19:04:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d244R-0007PK-Ct for 26608@debbugs.gnu.org; Sat, 22 Apr 2017 19:04:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d244J-000807-6s for 26608@debbugs.gnu.org; Sat, 22 Apr 2017 19:03:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d244J-000801-3j; Sat, 22 Apr 2017 19:03:55 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:55430 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d244I-00075N-GQ; Sat, 22 Apr 2017 19:03:54 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Christopher Allan Webber Subject: Re: bug#26608: Provide --only-substitutes flag to "guix package --upgrade" References: <874lxg77l4.fsf@dustycloud.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?utf-8?Q?Flor=C3=A9al?= an 225 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Sun, 23 Apr 2017 01:03:52 +0200 In-Reply-To: <874lxg77l4.fsf@dustycloud.org> (Christopher Allan Webber's message of "Sat, 22 Apr 2017 11:03:35 -0500") Message-ID: <87d1c4gi3r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26608 Cc: 26608@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Christopher Allan Webber skribis: > Sometimes I do an upgrade and I want to get the latest security updates, > but I also am not really available to burn through a lot of cpu time, > (especially on my x200). > > I'd love it if thre were a flag so that I could specify "only bother to > upgrade the packages where we only upgrade if a substitute is already > available. +1 > Note that I looked at the source to see if this would be an easy thing > to add; I figured that this would be handled in roughly the same place > as --keep-going or --fallback, but it looks to me like those are > actually just passed over to the build daemon, so I'm not so sure how > easy it would be to patch this in while we're still using Nix's C > daemon? I'm not sure. Clients could check, among the packages that are to be installed, which ones are substitutable (with the =E2=80=98substitute-paths=E2=80=99 RPC or = similar) and filter out those that are not. No C++ involved. Cheers, Ludo=E2=80=99.