From patchwork Sat Sep 3 16:43:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: M X-Patchwork-Id: 42190 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id ED99727BBEA; Sat, 3 Sep 2022 17:58:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A1AEF27BBE9 for ; Sat, 3 Sep 2022 17:58:26 +0100 (BST) Received: from localhost ([::1]:42328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUWTR-0000un-A5 for patchwork@mira.cbaines.net; Sat, 03 Sep 2022 12:58:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUWRD-00066D-KM for guix-patches@gnu.org; Sat, 03 Sep 2022 12:56:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUWRD-0004kp-Bk for guix-patches@gnu.org; Sat, 03 Sep 2022 12:56:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUWRD-0004fY-28 for guix-patches@gnu.org; Sat, 03 Sep 2022 12:56:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54539] [PATCH v2 16/30] gnu: curl: Autoload unless used by Guix. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Sep 2022 16:56:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54539@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 54539-submit@debbugs.gnu.org id=B54539.166222411817729 (code B ref 54539); Sat, 03 Sep 2022 16:56:07 +0000 Received: (at 54539) by debbugs.gnu.org; 3 Sep 2022 16:55:18 +0000 Received: from localhost ([127.0.0.1]:42860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUWQQ-0004bn-3w for submit@debbugs.gnu.org; Sat, 03 Sep 2022 12:55:18 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:40320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUWF8-0004BJ-3d for 54539@debbugs.gnu.org; Sat, 03 Sep 2022 12:43:42 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by xavier.telenet-ops.be with bizsmtp id FUjb2800820ykKC01UjdAi; Sat, 03 Sep 2022 18:43:37 +0200 From: Maxime Devos Date: Sat, 3 Sep 2022 18:43:18 +0200 Message-Id: <20220903164332.6848-16-maximedevos@telenet.be> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903164332.6848-1-maximedevos@telenet.be> References: <20220903164332.6848-1-maximedevos@telenet.be> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662223417; bh=Do4LY469Gxbw28bT4ic4Ncht2j/ycspuLU8K0Oezf4Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nKUyiq7zYWQDGu0zGf0ITFgZmbcjGcwHTdvbviehyAQCb37kBfQeneaoah+dNEcEL mbODTEA2Um8sslDfxkTEanTfvBdvsVOMgNTjoQVw23RmquTfrFMHDKZ2871WHpSBd0 PMIMqV4GeLkpn69hxHcM0uXQoCXkA3V4picS+VIyGkstCl284cqMq1Wv5+pWQskK4S uaLyv+Glt4ieI++XgUQ/qUNvlw11w0tgSOicgLYTcY4EG2yRo4vrFBpR62rTKHP+aX M8dWSIPbcj6XBBJY76chNZPjFwff29L4LVyBsVJF6x3ALwlzoEdjumvzt9zz7ox3vn JirtqZRDgKL3g== 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches See first commit in the series for the procedure. This helps with, but is not sufficient for, avoiding loading the Go-related modules when only the guix package is required. --- gnu/packages/curl.scm | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index d82d94abff..88a9a9d070 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -44,20 +44,23 @@ (define-module (gnu packages curl) #:use-module (guix build-system meson) #:use-module ((guix search-paths) #:select ($SSL_CERT_DIR $SSL_CERT_FILE)) #:use-module (gnu packages) - #:use-module (gnu packages check) - #:use-module (gnu packages compression) - #:use-module (gnu packages golang) - #:use-module (gnu packages guile) - #:use-module (gnu packages kerberos) - #:use-module (gnu packages logging) - #:use-module (gnu packages libevent) - #:use-module (gnu packages libidn) - #:use-module (gnu packages perl) - #:use-module (gnu packages pkg-config) - #:use-module (gnu packages python) - #:use-module (gnu packages ssh) - #:use-module (gnu packages tls) - #:use-module (gnu packages web) + #:autoload (gnu packages check) (doctest) + #:use-module (gnu packages compression) ; required by "guix build -d guix" + #:autoload (gnu packages golang) + (go-github-com-alsm-ioprogress + go-github-com-aki237-nscjar go-github-com-urfave-cli go-golang-org-x-crypto + go-golang-org-x-sys) + #:autoload (gnu packages guile) (guile-2.2 guile-3.0) + #:use-module (gnu packages kerberos) ; required by "guix build -d guix" + #:autoload (gnu packages logging) (spdlog) + #:autoload (gnu packages libevent) (libevent) + #:use-module (gnu packages libidn) ; required by "guix build -d guix" + #:use-module (gnu packages perl) ; required by "guix build -d guix" + #:use-module (gnu packages pkg-config) ; required by "guix build -d guix" + #:use-module (gnu packages python) ; required by "guix build -d guix" + #:autoload (gnu packages ssh) (libssh2) + #:use-module (gnu packages tls) ; required by "guix build -d guix" + #:use-module (gnu packages web) ; required by "guix build -d guix" #:use-module (srfi srfi-1)) (define-public curl