From debbugs-submit-bounces@debbugs.gnu.org Tue May 03 07:21:11 2022 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 To: guix-patches@gnu.org Subject: [PATCH 01/10] guix: import: Print the number of packages at the end. 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-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit Cc: Attila Lendvai 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: -1.8 (-) --- 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