From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aJjGKaFJ8WQGlAAAauVa8A:P1 (envelope-from ) for ; Fri, 01 Sep 2023 04:17:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aJjGKaFJ8WQGlAAAauVa8A (envelope-from ) for ; Fri, 01 Sep 2023 04:17:05 +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 4251532383 for ; Fri, 1 Sep 2023 04:17:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=UaRjhD9E; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693534625; 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=n1JAMr6wvc/9w6qAVo1MMqK8HBUrjaGyuUiTFrJG8xY=; b=QBvBlSDuyPdrGX9J92GwYr2+9rpr9kW6kxfS3lm6QWQStv/v9NXkL9MfiZtHL+Yj0wHFR7 Q64YfDbJxCAX+L1XIJbhKI2Onb5OEmjIi9GPwXkZHLwJQB6KLlz+WUeaH3XRo97t7XOnLK gtzdhLizUsC+wF6MkgCDhqZnNyDZxFxWmmHNSGkrG4IDRJ8saSu/73vOZoUfamjCVWqIWe VgBhu0fhdMTMekLfVgmv/g2CyGB175hGshmHw1tcpJDrE9RhtpLk7fyVjHowK8ZJOgvFyX NTrDPwkBEocA02l2BZ6m7v9Ax/7H3dbyllhHOZct4bVMgA91iqi8wiHon7V3dw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=UaRjhD9E; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693534625; a=rsa-sha256; cv=none; b=W7LI+quCCkVsXzjvTaLI5bFFkyeRRozo0LvFFz5vLYvr0kV07b5tPYMHHn4yHEGKFQhUCg eMSyO3qXtq8YrkuZCB4XRbYf+BQELyinDM28b5bP9d8Ps/bjofQkje91lJbm1BnjUM3aUk /OKEW+SqcaJfTUBsu9zmXQ17n5t9KbriG1BL/cdnVr6OLvayxZ//GwnIteP5nfW+iO0R0v zDaul+YscdF0eqxU+k8o60vfdcNMkqTEfi1dVyiqqSWQQUdTlo8E35vT4u6De28OazIlAm CFehXDlB3wG/ifnWbWKjjY8lB8FtkgBNEg3t1U/+Tm/tsbzo2oOPqrk52+uXVA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbtiS-0005Cw-9g; Thu, 31 Aug 2023 22:16:56 -0400 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 1qbtiQ-0005Ce-BR for guix-patches@gnu.org; Thu, 31 Aug 2023 22:16:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbtiQ-000087-3C for guix-patches@gnu.org; Thu, 31 Aug 2023 22:16:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbtiY-0002qo-5y for guix-patches@gnu.org; Thu, 31 Aug 2023 22:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65550] Don't add propagated-inputs for all outputs Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Sep 2023 02:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65550 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 65550@debbugs.gnu.org, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , Liliana Marie Prikler Received: via spool by 65550-submit@debbugs.gnu.org id=B65550.169353460310931 (code B ref 65550); Fri, 01 Sep 2023 02:17:02 +0000 Received: (at 65550) by debbugs.gnu.org; 1 Sep 2023 02:16:43 +0000 Received: from localhost ([127.0.0.1]:59534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbtiF-0002qF-3x for submit@debbugs.gnu.org; Thu, 31 Aug 2023 22:16:43 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:44183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbtiD-0002q0-En for 65550@debbugs.gnu.org; Thu, 31 Aug 2023 22:16:42 -0400 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-41214998fc2so8885881cf.0 for <65550@debbugs.gnu.org>; Thu, 31 Aug 2023 19:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693534587; x=1694139387; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=n1JAMr6wvc/9w6qAVo1MMqK8HBUrjaGyuUiTFrJG8xY=; b=UaRjhD9EWUOVq/mdtMnLc9DHclQMl99bVy3ZY6tDWi4lEy//j2QN9+SO1TQV1Q6yr1 0DuonowbJYVGz+VXUGVW8dZvI/r494E2zWMQk5A4f+fPqOu31G6+obn4FVV5pzO6oAT4 egxFOD8LEAc92O2/G8PREeBTKwHBRR7W+NEHLMcruBPW8xDZAdYNKkBmpXa/T266WnM7 cw35VCCxOu2lncHwRWanSvLnxQ8lm0hYmqTBSOg6n9a4W5t/MoNcx1DwhI9Ug1WoEESS Kv4bsGYgC32WiNVHVGelpNWX3LHlPLIJMvnw9nCkWg3E5QlK101zgQ9ctv5/lLNtogw3 /qSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693534587; x=1694139387; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=n1JAMr6wvc/9w6qAVo1MMqK8HBUrjaGyuUiTFrJG8xY=; b=DOyTDW5Aqq4FNAmbawIl4oT0zf4QrxQPyqB3iU5Nb60f0NEBfTXLrDkRPISrzaZ6lj V4S5sr66piO1wCfY10DqFEayCWYqxp6lb9BvTUr39Eqd6Z38nZmtVoEhOfKKp50zAZj3 7sX0PJGXEXYH5RQXiSwSWMEp3/YWRUH8BhyAoDH0uu2ztmJnYvR6ll4O8TAIuUzGqe/z R37NmXNGzJhFaEGcarrqw0yEGIRn+24cekz+3rAdsKgiXE8xKmpLvhk6hj08mNrsgyfj UOFr+bQc+h0IWWvRV6uqqHNBHP/UxU59Zd6SS7zja4+mM/lqGC9aMin9QQhycTMgD0T0 UTzw== X-Gm-Message-State: AOJu0Yx7gDy37IfQ2oQuNUauQQ27uJ7XH4CtGaS80rcRd5516S6M0X/g 9fyA61zx9UHlJwboobrvko0= X-Google-Smtp-Source: AGHT+IHMDgP9TN6Lzxo/XVMBAUcBRSdSq3sIRcltUho7W94E/Z3FLV99Jp9A7d8dw5m/aXAbHawHeg== X-Received: by 2002:ac8:5b4e:0:b0:412:1ba6:32af with SMTP id n14-20020ac85b4e000000b004121ba632afmr1120791qtw.19.1693534586935; Thu, 31 Aug 2023 19:16:26 -0700 (PDT) Received: from hurd (dsl-10-128-23.b2b2c.ca. [72.10.128.23]) by smtp.gmail.com with ESMTPSA id br17-20020a05622a1e1100b00403cce833eesm1087461qtb.27.2023.08.31.19.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 19:16:26 -0700 (PDT) From: Maxim Cournoyer References: <1f7f85189b17ebddb6d0e26afd7c5fad88c997e9.1693057951.git.iyzsong@member.fsf.org> <851f008ab9e989badb8bcb10f4b7eee5bc5616c0.camel@gmail.com> <87edjpaqo2.fsf@envs.net> <81f39ef4b6e0ec4de7b55446c755fb0dec621c49.camel@gmail.com> <877cpedu3k.fsf@envs.net> Date: Thu, 31 Aug 2023 22:16:25 -0400 In-Reply-To: <877cpedu3k.fsf@envs.net> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Tue, 29 Aug 2023 18:24:31 +0800") Message-ID: <87msy67i4m.fsf_-_@gmail.com> 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: 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -3.63 X-Migadu-Queue-Id: 4251532383 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.63 X-TUID: xAfpvf1tgFZc Hi, =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > Liliana Marie Prikler writes: > >> I'd really like to avoid yet another special output, when "bin", "lib", >> etc. have already been given clear meanings, one of which strongly >> overlaps with "stuff that wants propagated inputs for pkg-config >> reasons". > > The benefit to put headers files and libraries files into seperated > outputs is to reduce the runtime closure size of packages, for example > my home profile contains xfce, emacs, fonts, etc. has total 5GiB (by > guix size), and they have 300MiB under include. > > calculated by: > > x=3D/gnu/store/0fyhci5kv03rfb9430jqs9wki2ifq5ja-profile > guix size $x > for i in `guix size $x`; > do [ -e $i/include ] && du -sb $i/include; > done | awk '{ sum +=3D $1 } END { print sum / 1024 / 1024 }' > > If put headers and other development files into a "dev" output, then > those 300MiB can be saved (won't need to be substituted if substitutes > available). Note that use a "include" output won't help here if you > leave pkg-config files in "lib", since pkg-config files need reference > its include and binaries need reference its libraries. > > So it seems to me a "dev" output is unavoidable, also both Debian and > Alpine Linux use '-dev' packages for the same reason, it should be > familiar to learn.. I'm not convinced that saving 300 MiB on 5 GiB is worth making using Guix packages more complicated, especially in this age of compressed file systems (text files compress very well). We'd also have to change a couple things to make it convenient and not have to plaster the code base with ugly `(,lib "dev") inputs ^^'. I reckon it could all be automated, but I'm not sure it's worth the effort at this stage (there bigger low hanging fruits to pick in my opinion -- such as moving static libraries automatically in the gnu build system, paying more attention to large documentation or unecessary installed files, etc.). --=20 Thanks, Maxim