From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uO9+OHZNCWZNNwEA62LTzQ:P1 (envelope-from ) for ; Sun, 31 Mar 2024 13:48:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uO9+OHZNCWZNNwEA62LTzQ (envelope-from ) for ; Sun, 31 Mar 2024 13:48:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b="J/q8nHeF"; dkim=pass header.d=wolfsden.cz header.s=mail header.b="J/q8nHeF"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711885686; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sC+vfnW7g5XBJWBcVS3qlL1hsbosqKNsmu/Pcc94Hyw=; b=WUSwxkEEDfkx9SMTT+2THnI3IzpSY9ARhRdsZC/QQta+4trVeHZ9YUEx9AFQAMBOLFPLqc KRXa3OUdqPtGk82eN4akMgGi7ASQV3mmF4VqvEwIUMExxRQ09BYii73Gq6gJW3phmtbH6+ rXqGUt7u9w2jxR2a/e24ofEbVxbHq++O7vRU3qyiK3KIwbKPi4qtY8wtt1xgE/+v47xUJn Hh3B/zy0A2Pm7a72MeYoG0EN0SzfVBJUGk+U5LNrL+aYJs64QomD3hqgaKJNHsI8Z0gFwF Ir5ttUYp9fd/S5Bis+8fjglWOYC/urJI5epqfm/QDtKFvd/LaqrFQao6MEL22Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b="J/q8nHeF"; dkim=pass header.d=wolfsden.cz header.s=mail header.b="J/q8nHeF"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711885686; a=rsa-sha256; cv=none; b=FNFKIjAvRCIgYhK91Mwguaw59cAWs8JbXBrgVePGF54Zqpj1Qa3sPNlcrVYtK7uMY611lT y8Ehtgo0kBesX37maTXAYgTN7Qg/N6Htzwbtu2O4IVJgv+9f79KcCDkPiPB0Tpk8OrUGjq mIKWZbEV/WgHh82d+f5CHYTUpuf9Bd4Nek8jEmoMapFRAa9RPk6jBUilDNf6LIF0pgVfmW H647nOcBxwtScCZBnKJTTtjf3cQmXGLUR0B6I2QGw1BvJN6VHppID+ykd0cUl8k9svLqV6 v5NcIoAZVS58THzToOeG5CkKoIePQ267Kj2ggApUr8GAC74fwZ2s+0b2jJpHgw== 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 54349601C4 for ; Sun, 31 Mar 2024 13:48:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqtes-0005U4-4l; Sun, 31 Mar 2024 07:47:30 -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 <~@wolfsden.cz>) id 1rqteq-0005Tu-QB for help-guix@gnu.org; Sun, 31 Mar 2024 07:47:28 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rqteo-0000FR-70 for help-guix@gnu.org; Sun, 31 Mar 2024 07:47:28 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id E74F32A048E; Sun, 31 Mar 2024 11:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1711885641; bh=c0rLhZUMlCTSqI9FoO6yxMIXKX+qp5FMsjbE5TxwJYU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=J/q8nHeFyPOggGBQIGY/m1y/hF0+xGYyi/pm6oIvPGJryOavYOtQhEg3luZklWaDZ SG6O6rLte2VYZAQEe+E+HaFL+ykfSzP4t9QdbIkfjnH0gHWUpm+m4H7oolzYxzPfDC BVEvzhhqx5uAG2le0CzVXLREQjNDS+QLj3V1we9mAjYXEUB2qx1QniwWL95hC/3c4m 6umk2S3BtjrbSIniTnId7yyk5++yQmTXYY3Hi1eq3lbq1pcKXZBqk6VhSKo+eZkzMO Lnizp7Xa7xr3zuy9ELoLScFMpOp50oxXlMo6ENtsOJLmXbYpgfeiMuf8uWLaBga7vu ypB6e374xUuqB17vg2xzahh58FobdqwiMgWEq+PS1NupI8/8mmBRt6COoM5RCuU+LH 9cDB3LEi9Sp/eg+rRo/wEbi6mr+ZnreKGsWflcr080W85qJp7zSxp1FgYXVxyCC9LD J9IK9j/XfiKrHzvLdsKbXTPx/GNABqFQdzWS/c9vZ9SASyaYt2QKSe6rvBCSUX33Ix W7uJzIejuck+u4boyU5g2kgu4XbzVnGLjocvK+4ukfji+0q2pm+Wwu6h5ajeShdwg+ reqeQnlMW+xtDN8ti5lYDqK7gFMZZbN8ZI4rAi2413xBhIjk36LrMgeE9CWj+/xXyz SWlJRUbglAvzdEs3ywJmJsoo= Received: from localhost (unknown [193.32.127.158]) by wolfsden.cz (Postfix) with ESMTPSA id 132982A08AC; Sun, 31 Mar 2024 11:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1711885641; bh=c0rLhZUMlCTSqI9FoO6yxMIXKX+qp5FMsjbE5TxwJYU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=J/q8nHeFyPOggGBQIGY/m1y/hF0+xGYyi/pm6oIvPGJryOavYOtQhEg3luZklWaDZ SG6O6rLte2VYZAQEe+E+HaFL+ykfSzP4t9QdbIkfjnH0gHWUpm+m4H7oolzYxzPfDC BVEvzhhqx5uAG2le0CzVXLREQjNDS+QLj3V1we9mAjYXEUB2qx1QniwWL95hC/3c4m 6umk2S3BtjrbSIniTnId7yyk5++yQmTXYY3Hi1eq3lbq1pcKXZBqk6VhSKo+eZkzMO Lnizp7Xa7xr3zuy9ELoLScFMpOp50oxXlMo6ENtsOJLmXbYpgfeiMuf8uWLaBga7vu ypB6e374xUuqB17vg2xzahh58FobdqwiMgWEq+PS1NupI8/8mmBRt6COoM5RCuU+LH 9cDB3LEi9Sp/eg+rRo/wEbi6mr+ZnreKGsWflcr080W85qJp7zSxp1FgYXVxyCC9LD J9IK9j/XfiKrHzvLdsKbXTPx/GNABqFQdzWS/c9vZ9SASyaYt2QKSe6rvBCSUX33Ix W7uJzIejuck+u4boyU5g2kgu4XbzVnGLjocvK+4ukfji+0q2pm+Wwu6h5ajeShdwg+ reqeQnlMW+xtDN8ti5lYDqK7gFMZZbN8ZI4rAi2413xBhIjk36LrMgeE9CWj+/xXyz SWlJRUbglAvzdEs3ywJmJsoo= Date: Sun, 31 Mar 2024 13:47:20 +0200 From: Tomas Volf <~@wolfsden.cz> To: chris Cc: help-guix@gnu.org Subject: Re: help using guix size command w/ local file definition Message-ID: Mail-Followup-To: chris , help-guix@gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="c0sX7UgUpyrVluXh" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -11.55 X-Migadu-Queue-Id: 54349601C4 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -11.55 X-TUID: +wC5vP40Mf52 --c0sX7UgUpyrVluXh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, On 2024-03-30 14:16:47 -0700, chris wrote: > How does one use `guix size` with a local file package definition? > > I have copied the `vifm` package definition here to a local file https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/vim.scm?id=master#n916 > > Using `guix size --load-path` as described here fails https://guix.gnu.org/manual/en/html_node/Invoking-guix-size.html > ``` > $ guix size --load-path=$HOME/software/vifm-local/ vifm-local > guix size: error: no available substitute information for '/gnu/store/vx189rcgy4b8lw1acw14cki9lm4jz9jn-vifm-local-0.13' > $ guix size --substitute-urls="" --load-path=$HOME/software/vifm-local/ vifm-local > guix size: error: no available substitute information for '/gnu/store/vx189rcgy4b8lw1acw14cki9lm4jz9jn-vifm-local-0.13' > ``` The package needs to be built first: /tmp/xxx $ guix size -L . vifm-local guix size: error: no available substitute information for '/gnu/store/rhvkgakmmf11lpz5jhpciyzramwd69vf-vifm-local-0.13' /tmp/xxx $ guix build --verbosity=0 -L . vifm-local /gnu/store/92xlmlc0m74flrj8jmwfjhx75xada8ad-vifm-local-0.13 /tmp/xxx $ guix size -L . vifm-local store item total self /gnu/store/lj75fc25zx2y9pqvfp95la84rdhlj4f8-perl-5.36.0 152.2 59.4 34.9% /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35 40.6 38.8 22.8% /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib 75.3 34.7 20.4% /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1 91.8 16.5 9.7% /gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44 85.8 8.1 4.8% /gnu/store/bcc053jvsbspdjr17gnnd9dg85b3a0gy-ncurses-6.2.20210619 81.2 5.9 3.5% /gnu/store/rhvkgakmmf11lpz5jhpciyzramwd69vf-vifm-local-0.13 170.3 2.7 1.6% /gnu/store/zzyywykw7kriln18rxqd82f0k5kidla7-bash-static-5.1.16 1.8 1.8 1.1% /gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8 77.7 1.4 0.8% /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16 41.6 1.0 0.6% total: 170.3 MiB The error message might be a bit misleading, especially with the empty substitute urls. > > Another question, as guix's vifm input list includes `libx11`, shouldn't x11 appear in the size listing? > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/vim.scm?id=master#n916 > ``` > $ guix size vifm > store item total self > /gnu/store/lj[...]f8-perl-5.36.0 152.2 59.4 34.9% > /gnu/store/gs[...]i3-glibc-2.35 40.6 38.8 22.8% > /gnu/store/93[...]yk-gcc-11.3.0-lib 75.3 34.7 20.4% > /gnu/store/a5[...]5c-coreutils-9.1 91.8 16.5 9.7% > /gnu/store/gr[...]hq-file-5.44 85.8 8.1 4.8% > /gnu/store/bc[...]gy-ncurses-6.2.20210619 81.2 5.9 3.5% > /gnu/store/gz[...]vg-vifm-0.13 170.3 2.7 1.6% > /gnu/store/zz[...]a7-bash-static-5.1.16 1.8 1.8 1.1% > /gnu/store/6k[...]wj-xz-5.2.8 77.7 1.4 0.8% > /gnu/store/ri[...]4k-bash-minimal-5.1.16 41.6 1.0 0.6% > total: 170.3 MiB > ``` > The libx11 is present in the inputs, but since vifm defaults to dynamic loading of it using dlopen, the store path is not present in the output binary and therefore libx11 is not detected as dependency (I assume). When you add "--with-dyn-X11=no" to #:configure-flags, the size output changes to: store item total self /gnu/store/lj75fc25zx2y9pqvfp95la84rdhlj4f8-perl-5.36.0 152.2 59.4 33.7% /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35 40.6 38.8 22.0% /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib 75.3 34.7 19.7% /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1 91.8 16.5 9.4% /gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44 85.8 8.1 4.6% /gnu/store/bcc053jvsbspdjr17gnnd9dg85b3a0gy-ncurses-6.2.20210619 81.2 5.9 3.4% /gnu/store/7zgm9y6n8m4isq12iw7izyn5g6z5m5w7-libxcb-1.15 78.5 3.0 1.7% /gnu/store/zyry5d5r6lf2vcffcjwspfnfzh04dil9-vifm-local-0.13 176.1 2.7 1.5% /gnu/store/87rsx9bv801pmspv64hrnxzcjg1fahi5-libx11-1.8.7 81.2 2.7 1.5% /gnu/store/zzyywykw7kriln18rxqd82f0k5kidla7-bash-static-5.1.16 1.8 1.8 1.0% /gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8 77.7 1.4 0.8% /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16 41.6 1.0 0.6% /gnu/store/qijsw76w8l0zz9k0j3vaal488ixy3w8f-libxdmcp-1.1.3 75.4 0.1 0.1% /gnu/store/q6i6mc09sbklfnv3jbi22mnzbl0wilzx-libxau-1.0.10 75.3 0.0 0.0% total: 176.1 MiB Which seems to be what you expected. I know nothing about this packages, but my guess would be this is just a packaging error instead of intentional optimization (~6MiB do not really matter IMO). Hope this helps, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --c0sX7UgUpyrVluXh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmYJTUgACgkQL7/ufbZ/ wamfBg/+KKfLjmIpomwwxhwRF6ZDTSFw2zzmCqC50uim9LLmQaczMJkdIBpjmLd+ Br7DAw8HH0clB08+JfYP3bm2owrGYV7+P1kb3wcsJaEESufULBE4j7JBYBb7wfQ9 QWnPCzHsl2S1cVeLWJbUJAdluBaxx3YtbgKTiOKB7W2ktfw3a1AzPj3mMUzvh9mM bzdUy/yII+Cjoc7VlPTqTyZD3haMdclj0EgoKWLMFTiShwqqRG62Np82WkDmh4AX na9T+PdbT+Nhsyv5TJVi3y7X6QfviEjAPwd0hFedA58wRNU0ca/lhkLpAw5TZL+c FvTmJeSkrA2pTjic3GIGP4Keuq/NmGMZhxms1pCP7E2wt5LP6YomBzPsz1//Dq6J 9uP3TkdFtRptm+LFPRfbj14lNCdJRTnCmhOlx74BzXeQuqiyZlGgYChGQWLiyPv/ owBTROUsKrJXztxf1DX6Y8cmrI6aFehTxVNcCV8x7p052DrJMfZRculj+nuVhdhk 8l1KOSlNfSBxJeE5/lDH4q0Dm1HBcnj0Z75Zt/OYHseHBA4IigSnu9jmryQRwe0T yNosFJQp5nZQ105Fm2zC7+YHcs6dw+HHrV0SEn0g2VkqPUGgVdrDJmhPNpNyr7rw 6nrP8OorJQtMDNpM9KJrDfelK+qm7QbNqAl8bLZes+wTyKaOq04= =mN4f -----END PGP SIGNATURE----- --c0sX7UgUpyrVluXh--