From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WHMfKeyYnmG1SAAAgWs5BA (envelope-from ) for ; Wed, 24 Nov 2021 20:56:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kBTrJOyYnmHxDAAA1q6Kng (envelope-from ) for ; Wed, 24 Nov 2021 19:56:28 +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 6C5E62DF2E for ; Wed, 24 Nov 2021 20:56:28 +0100 (CET) Received: from localhost ([::1]:48442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpyNW-0007IH-U8 for larch@yhetil.org; Wed, 24 Nov 2021 14:56:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpyKG-0002Q0-VJ for bug-guix@gnu.org; Wed, 24 Nov 2021 14:53:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpyKD-0008Q6-W6 for bug-guix@gnu.org; Wed, 24 Nov 2021 14:53:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpyKD-0007ZS-Lv for bug-guix@gnu.org; Wed, 24 Nov 2021 14:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#51983: guix build: error: integer expected from stream Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 24 Nov 2021 19:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51983 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Received: via spool by 51983-submit@debbugs.gnu.org id=B51983.163778354629060 (code B ref 51983); Wed, 24 Nov 2021 19:53:01 +0000 Received: (at 51983) by debbugs.gnu.org; 24 Nov 2021 19:52:26 +0000 Received: from localhost ([127.0.0.1]:55027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpyJd-0007Ye-M0 for submit@debbugs.gnu.org; Wed, 24 Nov 2021 14:52:25 -0500 Received: from mail-qt1-f169.google.com ([209.85.160.169]:35810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpyJZ-0007YP-R6 for 51983@debbugs.gnu.org; Wed, 24 Nov 2021 14:52:24 -0500 Received: by mail-qt1-f169.google.com with SMTP id j17so3886132qtx.2 for <51983@debbugs.gnu.org>; Wed, 24 Nov 2021 11:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Yk+WsSRvRl59jDB4/IaTi83aAUXsqEtUmTwQpFLNnVQ=; b=OaPuYnwDyle6Klj3p5VH0HtKiNQCKAgpZMp5QECoivGlLil3OAr1kvpQwjOaGu0H48 APh3aPxaOuRSsjAcf/HSNaE6YT+jo1Uh1nTkl+zDxczPVWfNZSGiZm0mrUaTX30lK61Y tSJ7xhTNrKB089TO++fsjZ+Z5+pVgHvHw2Gq88VWqdqpnUb+nzZCp+J8fE9jGJLZG40K KFluyvdt9x2NuPsGcEa4zpr9imN+AekQqaqV2z9iJtSvsT72THIYvC0jYdttq0j8OZiD BD6NpxiDunxq537FuKA+dpCKnVXLtG5R7JWt57YgeBeszfKbTdaGQIBMQTGv8Bs1WeyF JKTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Yk+WsSRvRl59jDB4/IaTi83aAUXsqEtUmTwQpFLNnVQ=; b=08ZjpidM4fHx2TTTesZrHvc5goJwVngJn4rShoLHdrBAPdw9qKISunC1q6XmzxVxRE MIMX0E4f18tpU9pKpspVzsJAVbtQEUBVC/74aPtZot0Zu1Qs5U1ZyTxwtCMFUebKncKs +Liyyvs/zhJtiUISnYznyB18QMhg2NbWNDRnlWaY/tetSgTWRduVjxOJYK9nVA9xYA74 0aLYUFfsbicrqrFGbpmZZXzwHsereo7Ukrp9G2cLTk1pwy1/ePJH4+ERq8NkVD34skTk wZ/4NI4aCl4qAGYo8fnJNKlZR1ulwhFobnpZKziQ8lRjPbhtejcCiVq3s6it/h9lgff6 h8Tg== X-Gm-Message-State: AOAM5311TR5oPIFBCMZze39YBwwzLmz6pShHXrh6+w5TVLEZ+YN85fA4 49epVU5Yltd7EGkIVCIShm8WT/oEbT6enA== X-Google-Smtp-Source: ABdhPJzOmZT4Jt/fzZR463xs4HaSXz/FBEiSw1XaKU2MnXHISvKBYcNBURtAEYEvMApL/Edgyw7rEg== X-Received: by 2002:ac8:5888:: with SMTP id t8mr10331252qta.320.1637783536016; Wed, 24 Nov 2021 11:52:16 -0800 (PST) Received: from hurd ([207.35.95.55]) by smtp.gmail.com with ESMTPSA id w10sm375034qkp.121.2021.11.24.11.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 11:52:15 -0800 (PST) From: Maxim Cournoyer References: <87h7c77toj.fsf@nckx> Date: Wed, 24 Nov 2021 14:52:14 -0500 In-Reply-To: <87h7c77toj.fsf@nckx> (Tobias Geerinckx-Rice's message of "Fri, 19 Nov 2021 21:47:31 +0100") Message-ID: <87bl29z5zl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 51983@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637783788; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Yk+WsSRvRl59jDB4/IaTi83aAUXsqEtUmTwQpFLNnVQ=; b=EKXrdkYr3xj5oigwW9li5Q7+vT7LpsINpz1hq/5TYHst25NFXyuGZKHtNolbMfKAJrpfwg kxMgJS0MGdd4dU1KVTLzsZYMJIB54HXEbCWHDJnX1RYoaC0f7FziAIMH5PSpdDXkayPaeg fZutUJpE/CZBWZNAGlB/V0RZ4SIi6GmdbjAYe0O6UQJjO396l/7+o9iM7K2kCpFX/g5rFt tZrmcEfZM85tDA4Rli1FW/8zVPsesc9HjAlEnzbRpY3XKTmgpaGlnhy4/+W+ZW0zVWIfOH jEMDAiE/6SL8z5CLeFhQUlQjan1bW+/fincxuPQIW0Fp+r7cr6UB13HJA110Bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637783788; a=rsa-sha256; cv=none; b=XYIAr4Db/AO6RSIpnFWi3xRBXwkPGSib0iRIowibuRAnLssVpreF+c6xxfGg0IRFIgox4K Ea6TKFvrHS8w9Ap/TnZfb1g+JOFgX5vaq7WSYxBYqnIwdUhiqZKEy7DjDdzbmYS5w6hmrr 0wEkrl2RnKvQwVbgsThyAXjvLh8OCBN0kyUE1z6lZq7f1+CAiolJ1f7w84+5cBd9t3zH2t IsFKeGF9LAMH0p/67bXRgM2O9Nyh0L+tyYG5p21qRaNSl8EA04g+2g9qYFps/OVoCTthKf Ylmn6JgvdYLFv+bV3HQQk2bfyF8wEskCTl0pjzxH+K5eDoWQiWTGcoUPFxEvIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OaPuYnwD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OaPuYnwD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6C5E62DF2E X-Spam-Score: -1.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0SIrLyH2zu9o Hello Tobias! Tobias Geerinckx-Rice writes: > Guix, > > I saw this reported by jlicht on #guix but I'm pretty sure that > it's been reported a few times. > > Here's the error, with channel: > > (channel > (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") > (branch "core-updates-frozen") > (introduction > (make-channel-introduction > "9edb3f66fd807b096b48283debdcddccfea34bad" > (openpgp-fingerprint > "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) > > And patch: > > From: Tobias Geerinckx-Rice > Date: Fri, 19 Nov 2021 17:37:44 +0100 > Subject: [PATCH] daemon: Print the line whence we expect an > integer. > > * nix/libstore/local-store.cc > (LocalStore::getLineFromSubstituter): > Include the malformed substituter stream line in the error > message. > > --- > nix/libstore/local-store.cc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/nix/libstore/local-store.cc > b/nix/libstore/local-store.cc > index 675d1ba66f..83b6681122 100644 > --- a/nix/libstore/local-store.cc > +++ b/nix/libstore/local-store.cc > @@ -839,7 +839,8 @@ template T > LocalStore::getIntLineFromSubstituter(Agent & run) > { > string s = getLineFromSubstituter(run); > T res; > - if (!string2Int(s, res)) throw Error("integer expected from > stream"); > + if (!string2Int(s, res)) > + throw Error(format("integer expected from stream: %1%") % > s); > return res; > } I just stumbled on this. LGTM! Maxim