From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id o0u9ByU/0V6POwAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 16:58:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EB1DAyU/0V6aFwAA1q6Kng (envelope-from ) for ; Fri, 29 May 2020 16:58:13 +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 D2246940538 for ; Fri, 29 May 2020 16:58:12 +0000 (UTC) Received: from localhost ([::1]:57362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeiKh-00067V-RN for larch@yhetil.org; Fri, 29 May 2020 12:58:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeiKX-00066J-Ue for guix-devel@gnu.org; Fri, 29 May 2020 12:58:01 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:50640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeiKW-0003dW-FI for guix-devel@gnu.org; Fri, 29 May 2020 12:58:01 -0400 X-IronPort-AV: E=Sophos;i="5.73,449,1583190000"; d="scan'208";a="350034046" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2020 18:57:57 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel Subject: Re: Packaging =?utf-8?Q?=E2=80=98clang-tools-extra=E2=80=99_=28?= =?utf-8?Q?=E2=80=98clang-tidy=E2=80=99=2C?= etc.) References: <87eesdhup7.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Prairial an 228 de la =?utf-8?Q?R=C3=A9volution?= 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, 29 May 2020 18:57:56 +0200 In-Reply-To: <87eesdhup7.fsf@inria.fr> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Fri, 24 Apr 2020 15:36:20 +0200") Message-ID: <87a71qy8yz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/29 12:57:57 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: SfxyFqp5M6AU Hi, Ludovic Court=C3=A8s skribis: > The patch below produces a =E2=80=98clang=E2=80=99 package that contains > =E2=80=98clang-tools-extra=E2=80=99 commands=C2=B9. > > The problem is the size. Before: > > $ guix size /gnu/store/qxdpxbvfdxfy5dnz4haql4xlxpmb5r6b-clang-10.0.0 |tai= l -1 > total: 995.2 MiB > $ guix size /gnu/store/qxdpxbvfdxfy5dnz4haql4xlxpmb5r6b-clang-10.0.0 |hea= d -2 > store item total = self > /gnu/store/qxdpxbvfdxfy5dnz4haql4xlxpmb5r6b-clang-10.0.0 995.2 = 456.5 45.9% > > > After: > > $ guix size /gnu/store/5h3xgpg33wip2b8ccri690jp6ikbq16s-clang-10.0.0 |tai= l -1 > total: 1525.4 MiB > $ guix size /gnu/store/5h3xgpg33wip2b8ccri690jp6ikbq16s-clang-10.0.0 |hea= d -2 > store item total = self > /gnu/store/5h3xgpg33wip2b8ccri690jp6ikbq16s-clang-10.0.0 1525.4 = 986.8 64.7% > > (How they manage to fill that much disk space, I wonder.) > > Any idea how to best package it? > > We could of course have a =E2=80=98clang-full=E2=80=99 package, but it se= ems wasteful. > We could also have a separate output for the extra commands, but it=E2=80= =99s > inconvenient. It would be ideal to have a =E2=80=98clang-tools-extra=E2= =80=99 package > that depends on =E2=80=98clang=E2=80=99, but building them separately app= ears to be > impossible. After spending an unreasonable amount of time trying to build =E2=80=98clang-tools-extra=E2=80=99 as a separate package, I gave up and we= nt for the multiple output solution in commit 77a87ad4aceed9d89d615540e0fd147e3a8b2f64. One can now get =E2=80=98clang-t= idy=E2=80=99 and its friends with: guix install clang:extra Ludo=E2=80=99.