From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wLj5D/QQcWIWewEAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 13:24:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QGEYD/QQcWKRRQEAG6o9tA (envelope-from ) for ; Tue, 03 May 2022 13:24:36 +0200 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 75BEC3E571 for ; Tue, 3 May 2022 13:24:35 +0200 (CEST) Received: from localhost ([::1]:55184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlqdt-00066g-1B for larch@yhetil.org; Tue, 03 May 2022 07:24:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlqbV-0004YH-Bx for guix-patches@gnu.org; Tue, 03 May 2022 07:22:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlqbS-00073M-P3 for guix-patches@gnu.org; Tue, 03 May 2022 07:22:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlqbS-0002fI-KM for guix-patches@gnu.org; Tue, 03 May 2022 07:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55242] [PATCH 01/10] guix: import: Print the number of packages at the end. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 May 2022 11:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55242 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55242@debbugs.gnu.org Cc: Attila Lendvai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165157687110165 (code B ref -1); Tue, 03 May 2022 11:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2022 11:21:11 +0000 Received: from localhost ([127.0.0.1]:38785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlqac-0002dt-QG for submit@debbugs.gnu.org; Tue, 03 May 2022 07:21:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:33454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlqab-0002dm-HT for submit@debbugs.gnu.org; Tue, 03 May 2022 07:21:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlqaV-0003zd-Cd for guix-patches@gnu.org; Tue, 03 May 2022 07:21:07 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:44994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlqaR-0006sx-SZ for guix-patches@gnu.org; Tue, 03 May 2022 07:21:01 -0400 Received: by mail-ej1-x630.google.com with SMTP id i19so32741595eja.11 for ; Tue, 03 May 2022 04:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sp9+RU3c27xHgtxDhBA7eeakqVjOntbZGqIPJZaLCmI=; b=UHaeMTduoYbUVG7yrg8/OU2roimEVciBdo1hoYD6C8c3NmJTYzxV5cmbRKgg1eJSdn 0hT3uSz0y6+Oet7Hnev/YDE7ql82PrfuVyhZC56PMos3FANxtrxYxsBywcgv0rlai9hu sdgDjhWj8pjTdazsb9OaJ/S1wiOMAPuYf5Q0G254BhCoGRmtXu3Anuc4tFXR/NRItfV+ bFx35/07G94dIJ6lD9RPIQqoF0hy7WHsIhhptz9zw5jwbxn9NyXPshAP0qwtzOgnDwU6 QNX8W+dhopK33hKatg6Q6mE9h85oIvTHGbHSHVIxp1Dni+HeUq2XFnTlDxGYGuO+VpfK 59hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Sp9+RU3c27xHgtxDhBA7eeakqVjOntbZGqIPJZaLCmI=; b=Wy0mtNXH7V6kNE+r1wsx0mxmZqb03Qcw+4jbDt7zF/EjPgo+mduCQwNi0QDSsT0Y8W MiHNnh6lgHYePEUHbmd82Yd6U7Yn+5kLgbABuOvcOdo8JdAvvJSwiauqm4wtBvEvnUE3 ngxHFvtL6PoeJX8wMJAhHEIqLBYvk81dH1bLzq1cpllS2AA8po28NhCAEHYuw4o/Z0GJ aBmxwnrMO4V7qB4ULN+G36E9fPy2za5pubh8cEp8DTtOiUz9RV5wyQsIOQ9WOxFZXYT2 oCkPpBrfI5cwwlU3UYHGI9QqDoRd7WfOzKt1U1G1SMXC79woxP9/zsC3c9o5T8qtDFvW ELlQ== X-Gm-Message-State: AOAM532hZ/drqFtzOccEGsYQAiIXTz5faT4aUWnU+ZpPU6AmM+H8y0Nm roUyw0gyd1dI2j44cXC7kxHAlfrN5JA= X-Google-Smtp-Source: ABdhPJyVrOqKyJCCJVZuUJn+EwPXW0Wg/sOdlRYSNeq0d3RzObnV3mMm8V2zyOvS4/D9r4G4wItwyA== X-Received: by 2002:a17:906:5d0c:b0:6f3:dce6:a69a with SMTP id g12-20020a1709065d0c00b006f3dce6a69amr15717670ejt.23.1651576855321; Tue, 03 May 2022 04:20:55 -0700 (PDT) Received: from lelap.local (catv-89-132-245-188.catv.fixed.vodafone.hu. [89.132.245.188]) by smtp.gmail.com with ESMTPSA id y5-20020a056402170500b0042617ba63d3sm7798469edu.93.2022.05.03.04.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 04:20:54 -0700 (PDT) From: Attila Lendvai Date: Tue, 3 May 2022 13:16:12 +0200 Message-Id: <20220503111620.3139-1-attila@lendvai.name> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=attila.lendvai@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651577076; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Sp9+RU3c27xHgtxDhBA7eeakqVjOntbZGqIPJZaLCmI=; b=Y/J87MP+lj/VbgVgMdwH0tuPREjKl4oKDyHIEM3koPFG0EQZsdDKFccefgDwCQS+H1PHXB 5LXwtVEr9pqPaykleJ/cIYI49Evs0a5kZIsZjeaV+VvXCqASDEJofYbY7gqbKXmrJxAFNy pKNqRrJGFjVpNHcmbiYOfwbEMmZ+k2hUhCt2RvBHwn+30gaX3f8jm10hDpkyVfYHVkpL61 YDV9o1M9W2BwSCRJXZIBf19yUvLGOnrjO36p1fFn9ZQdAJaWdqTkDDWHeal9gMQKekUPXG 5gJEQSdtJokP/8slSX4CVwj02TTCmk66Luh9+sqEzr1Sx+2Diy0jJJPEn2qeSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651577076; a=rsa-sha256; cv=none; b=W2nOaE3ZXR78pEuhN2ystE2PbuoMTR0ES/k0BH7v+tKEZHkRQoWlSD9aBWif0yRf6xsB1V /y20Kdh3H5xDZvR384CrXdmwW8IeCg46hYtfLhoklsHWZO6J52O9AL66DmygyxZOfhB1r4 ov9Y2TVS0uJEyNp2+sr74nU5K2JxN2NNch2iZuDRT0gCh+kyh5ibUCdBrl5cohsyjgLPyd 9jvSXae85938QifS1dTnnfk6M/7XPz3bmD/nBs1zxknep+AtrcjlTHvakLVT0PQtvp2l5K IVhLc82NNZuEFc8eFWtEgw0VzC2GQss3D9Yoq+RJRpLOayUbrmr6KY3/9KrQ0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UHaeMTdu; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UHaeMTdu; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 75BEC3E571 X-Spam-Score: 2.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: KFggmWGN4k8X --- this will be a series of patches that were needed to be able to (mostly) successfully run these two imports (go-ethereum and ethersphere/bee): RUN=12 clear && ./pre-inst-env guix import go -r --pin-versions github.com/ethersphere/bee@v1.5.1 > >(tee -a ~/workspace/guix/importing/bee-run-${RUN}.scm) 2> >(tee -a ~/workspace/guix/importing/bee-run-${RUN}.log >&2) RUN=36 clear && ./pre-inst-env guix import go -r --pin-versions github.com/ethereum/go-ethereum@v1.10.17 > >(tee -a ~/workspace/guix/importing/go-ethereum-run-${RUN}.scm) 2> >(tee -a ~/workspace/guix/importing/go-ethereum-run-${RUN}.log >&2) note that i only have a mediocre knowledge of the golang infrastructure, so this should be reviewed by someone who more deeply understands the golang build process, and its implementation within guix. i think most of it is not very controversial, maybe except the last commit. i'm willing to reshape this under the guidance of someone who has a better bird's eye view perspective on this all. guix/scripts/import.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm index 40fa6759ae..891f558b97 100644 --- a/guix/scripts/import.scm +++ b/guix/scripts/import.scm @@ -127,10 +127,14 @@ (define-command (guix-import . args) ('define-public _ ...))) (print expr)) ((? list? expressions) - (for-each (lambda (expr) - (print expr) - (newline)) - expressions)) + (let ((count 0)) + (for-each (lambda (expr) + (print expr) + (set! count (1+ count)) + (newline)) + expressions) + (format (current-warning-port) + (G_ "Imported ~a packages~%") count))) (x (leave (G_ "'~a' import failed~%") importer)))) (let ((hint (string-closest importer importers #:threshold 3))) -- 2.35.1