From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wN2hLt77CmQtAQAASxT56A (envelope-from ) for ; Fri, 10 Mar 2023 10:43:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CJVDLt77CmQlYwEAauVa8A (envelope-from ) for ; Fri, 10 Mar 2023 10:43:58 +0100 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 80AB32096A for ; Fri, 10 Mar 2023 10:43:58 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WAhtj6LN; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678441438; 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: content-transfer-encoding:content-transfer-encoding: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=HXC7aNqF5YXzk75M1SxmsmpmveLsj/pTbBjbA5PdabM=; b=J5lS8QGcRaH60AjExFUJVX7sKRptzIWj2TQ7PbDrw091EPGIQSwpdgx/IIXvmI/KZ0pMG/ /w0TWs9GmR6UswyPOKSV4UoAz/fvAbrsmJ7MkB97WfdWOHRMZ8KRejag9oNPoM5Jh6EpVs oFROrs7pot8I809C2d5lQwIgxYz5RtCly0zta2ZJOErGLIHyRMw5aHmeJTbiKYg3zRRLhK BwLf0bJdFrm1OmvBFd3B0CZf9S39CNYd5L1/14pn3ZN9TRLdkKABv5al3Ixbu9++6BdUlG 7TqjHr5yQJuxnR1PEY6aOG4IhVThruqeBEPY7UNJFw4ccX7FIYKB4JFuCMeMsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678441438; a=rsa-sha256; cv=none; b=UwLDNhVw4jQbxJlAWYCoWdTKB+WNduGoVOvmaA0gf5eiXR3CRviqq9239B5TMSpORjLoT+ G1np8z0H0CMTHFRBq/D873vfmk+1IBIZ4qnkRzP+8g1lA+SVPInprbtuT88fR6HjWCMHDK /53WRaX7Jk2EwvMv6jir+RBd2JcS/AaSv+i6hKFQK+TY9aVDSrdPezCI1boyEE2llUCPOv M6Khl52XjXKuzImIC+DINk1OqjoCYHB3UVGDlhUEElGCCF3DxbHipo4RU6BHnFHaNPDu9C ym08Li+vZeo0U+Q+xoRm4EcPaZ/agXvNOqaZXshoNFV+nPKBxmiliB2PojcwuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WAhtj6LN; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paZFK-0004a7-7K; Fri, 10 Mar 2023 04:41:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paZFI-0004Lv-CP for guix-patches@gnu.org; Fri, 10 Mar 2023 04:41:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paZFG-0000n9-V8 for guix-patches@gnu.org; Fri, 10 Mar 2023 04:41:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1paZFG-0000tD-Qf for guix-patches@gnu.org; Fri, 10 Mar 2023 04:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62062] [PATCH] guix: Strip #:use-module lists. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 Mar 2023 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62062 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: 62062@debbugs.gnu.org Received: via spool by 62062-submit@debbugs.gnu.org id=B62062.16784412533386 (code B ref 62062); Fri, 10 Mar 2023 09:41:02 +0000 Received: (at 62062) by debbugs.gnu.org; 10 Mar 2023 09:40:53 +0000 Received: from localhost ([127.0.0.1]:53713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paZF7-0000sY-J3 for submit@debbugs.gnu.org; Fri, 10 Mar 2023 04:40:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paZF5-0000sE-A5 for 62062@debbugs.gnu.org; Fri, 10 Mar 2023 04:40:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paZEz-0000is-Nj; Fri, 10 Mar 2023 04:40:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=HXC7aNqF5YXzk75M1SxmsmpmveLsj/pTbBjbA5PdabM=; b=WAhtj6LNqD45240ygbZ/ OYYfKHrHRdNI18DEfT1FBt5U06/0bPPvgKYExA4q7Qeo+8dCPEv/bMMQ9mWAwd3H3mbP4ljIeazsY gQhBO3/esKNTRmLuYeWnQI9nx/hJA4n8PmWRah0z/6O87U2re+zQTmdHhD9nAMxLEYrIeRVIhLPrp eBRzb0DTmwV1U8WD2V6VCmEPUsTuBdFRj0G+RWR1Yr2M/ImhgtPIcn1f+9J81K1eCdbm8uHpYMuYI SMY09A6KIUjfnigHSUQeZn2ePB0J3iiHLMldDbuvKuBWBfOJZSmuT2sUQmY1/9mF2zXty6r1IXj0V F+8for+Jsca+yw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paZEy-0006ME-L6; Fri, 10 Mar 2023 04:40:45 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230308232624.4348-1-ludo@gnu.org> <86bkl2nrvy.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?UTF-8?Q?D=C3=A9cadi?= 20 =?UTF-8?Q?Vent=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Cordeau 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-pc-linux-gnu Date: Fri, 10 Mar 2023 10:40:42 +0100 In-Reply-To: <86bkl2nrvy.fsf@gmail.com> (Simon Tournier's message of "Thu, 09 Mar 2023 11:25:21 +0100") Message-ID: <87sfed7xlx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 80AB32096A X-Spam-Score: -4.89 X-Migadu-Spam-Score: -4.89 List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: vaHpVFkrAcb+ Hi Simon, Simon Tournier skribis: > On Thu, 09 Mar 2023 at 00:26, Ludovic Court=C3=A8s wrote: >> This was obtained by setting up this environment: >> >> guix shell -D guix --with-input=3Dguile@3.0.9=3Dguile-next \ >> --with-commit=3Dguile-next=3De2ed33ef0445c867fe56c247054aa67e834861f2 >> -- make -j5 >> >> then adding 'unused-module' to (@@ (guix build compiler) %warnings), >> building, and checking all the "unused module" warnings and removing >> those that were definitely unused. > > Out of curiosity, well, I have not understood how you proceeded. :-) > Could you explain a bit more what you meant by: > > then adding 'unused-module' to (@@ (guix build compiler) %warnings), > > Adding where? To the =E2=80=98%warnings=E2=80=99 variable in (guix build compile). > Do you mean this =E2=80=99unused-module=E2=80=99 is now part of the guile= -next? It=E2=80=99s in Guile =E2=80=98main=E2=80=99 yes. > Well, Guile e2ed33ef0445c867fe56c247054aa67e834861f2 is also about > removing unused modules in Guile itself. Right; see the preceding commit. :-) > Last minor comment, is it expected that there is nothing under > =E2=80=99gnu/packages=E2=80=99? This is left as an exercise to the reader. :-) That is, one can do the same with gnu/packages/*.scm. It can be quite tedious though due to =E2=80=9Cfalse positives=E2=80=9D (not exactly false = positives, but cases where the compiler cannot tell for sure whether a module really is unused). Ludo=E2=80=99.