From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eIF3KvYraWA2GQAAgWs5BA (envelope-from ) for ; Sun, 04 Apr 2021 05:01:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MM03JfYraWBjRwAAbx9fmQ (envelope-from ) for ; Sun, 04 Apr 2021 03:01:10 +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 021AF1D963 for ; Sun, 4 Apr 2021 05:01:10 +0200 (CEST) Received: from localhost ([::1]:42334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSt0f-0004hX-5w for larch@yhetil.org; Sat, 03 Apr 2021 23:01:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSt0Y-0004hE-B6 for bug-guix@gnu.org; Sat, 03 Apr 2021 23:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSt0X-0007If-Vo for bug-guix@gnu.org; Sat, 03 Apr 2021 23:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lSt0X-0007Y5-Tt for bug-guix@gnu.org; Sat, 03 Apr 2021 23:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47569: =?UTF-8?Q?=E2=80=98qt-build-system=E2=80=99?= retains too many references via wrappers Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 04 Apr 2021 03:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47569 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 47569-submit@debbugs.gnu.org id=B47569.161750522628961 (code B ref 47569); Sun, 04 Apr 2021 03:01:01 +0000 Received: (at 47569) by debbugs.gnu.org; 4 Apr 2021 03:00:26 +0000 Received: from localhost ([127.0.0.1]:34714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSszx-0007X3-JQ for submit@debbugs.gnu.org; Sat, 03 Apr 2021 23:00:26 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:41975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSszv-0007Wo-33 for 47569@debbugs.gnu.org; Sat, 03 Apr 2021 23:00:23 -0400 Received: by mail-qt1-f177.google.com with SMTP id x9so6283931qto.8 for <47569@debbugs.gnu.org>; Sat, 03 Apr 2021 20:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=bQhSjNDgiF09dLUS3Rlglec/gj1o4MaUElvd32PTOMA=; b=FOJd9PYvZELHdflya4D1hFkpEzBk2VgkQPZ5ZCJKnHQ++4XQB0eIEHzt3MTUZOiZO9 qxi0JcwnN7+OTVnHP6BztXYQOB5AbL7L+P8fDn4mzPdsYOmP5yJFBo5SEK95WiDgslvu wnCU98njQPgw7gYbjZ49lZYs35gjYR4MJkHsW1P0K8+Dhgt4j08h/jagi+m6Ikh0uEuG Z/AGDOawDS5cUA6WI1S/aA7nUh98eqKPuV1AvIUvMV9i3pYnSRKP10CoEQYnS+6PZ2Ry rMR7AZ54IGSvaWF53LBog6f+MwVYJ+reb2Rge3wr2EaBQ5tYVvz0WJB4mkJaw56qFBZs e/BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=bQhSjNDgiF09dLUS3Rlglec/gj1o4MaUElvd32PTOMA=; b=qhRHpiApXGLXyUgAjKCn6TGRSPlCVqwkjvkVV4R4Hqfe9iJ9AJM5ryBvvGVtGEEzv/ yLJ2HUvaH/Kz0c90AYTWzi2SJxl+slIOQKiTFye/FayhRPnlTJlRxHZeKow2Et8Anhfr o8rVje1qr5gkScrD734sRaQIWbOi9YRCDf0baPm8YOMCDezuCWCL15CoBC6R7N5EEZ9S VI3VNulHq3IN+lwVBqdHIj6ZlbIFr3aTVu+qem9d20WVIt06Ig2nmzHfvFQISM1JdfVp 47ux7ObDSdgM1Of/CHvxd8u0sEECWVT2v3mEYQUuKyBbVzOQETj/3qqyPceMxxEiA84Y 6jbQ== X-Gm-Message-State: AOAM530rd6rxD0NrZyvdyoirBLX3bNgnwjW6yu4UXLgdBwBb1phf5Rl+ lRthW9cz0aTRkgNV9hbUI7086CiTyKA= X-Google-Smtp-Source: ABdhPJxmdWIN/872NiKiKWnWZX/coiANk2ELvRlT9ntYG20ll6RqCjHb2bTtY3BY9q3MA0B+mLWGEw== X-Received: by 2002:ac8:1301:: with SMTP id e1mr6339074qtj.100.1617505217198; Sat, 03 Apr 2021 20:00:17 -0700 (PDT) Received: from hurd (dsl-149-42.b2b2c.ca. [66.158.149.42]) by smtp.gmail.com with ESMTPSA id u11sm9127250qta.91.2021.04.03.20.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 20:00:16 -0700 (PDT) From: Maxim Cournoyer References: <87czvczbsv.fsf@inria.fr> Date: Sat, 03 Apr 2021 23:00:13 -0400 In-Reply-To: <87czvczbsv.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 02 Apr 2021 22:11:44 +0200") Message-ID: <87blaurbya.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47569@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617505270; 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=bQhSjNDgiF09dLUS3Rlglec/gj1o4MaUElvd32PTOMA=; b=nlfKDJ4DUkxE8lFZeC+LWjMQKouTFS/HQeP3GuzvhWo2nsr5LX/pO6lvz9kJCBOrfjEDUy DjH3NJ5OXX1hV+hoRksTljN2eQRDxbOoPN/9Z3y4gdD8FRf+iAxGQzYd60kYYi3wsyLHEP 9nDntQ+cKalXjKIqebyRyFDgElgXe107F+5q5rzinqPxvC72yf5NT/m1V2js42iJfSZYNT UUkAYqHlPH/szur9ZsVx7pX7BZnEdnBb+VBGvrlf3mhDlY3jdrsPAHAihNEr718Uw9N/C1 sJOKJN3RK2a4M17luH7KGqAqXBdwhMZf8kj9jgj+Pt+TKJlvlYn6a5T0oGp6Cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617505270; a=rsa-sha256; cv=none; b=rveY4Hn965xWoDdIIAGf8aUZFfhSsjb13NJXD/AVt3tNnff8L7QRgXIsKQKsn6Sh7qaySQ gkEpq+rKQEzhIv0fHYauz2mnUiVNcIRIUvF4jp+YQR75UkuLeGYRK1OAeCNWXkzEJPri8a KVFyKqEHjyCwKlQIIuzxHDzfmqVlL0igpLdhmlD2N+M/rpZBAtN8EalySo1/Uf/+8MgHYq GJHmlOZvuf1ByJeR1quSC6odwykfxEsJlB5RSn9bhSYOX7D8zkTgQGZJt9TBez1Ghbq4KU 1x8RRRz0sCS5gST8lwQ/x112bkOTGmZAx8gCsv6A7n2K7jT3lu9QIlvA2gzNvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=FOJd9PYv; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=FOJd9PYv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 021AF1D963 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: Iv0qdsDNTP88 Hi Ludovic! Ludovic Court=C3=A8s writes: > I just noticed this: > > $ guix size ktouch | tail -1 > total: 1752.4 MiB > > > Sounds a lot for a touch typing tutor. > > Turns out ktouch references all its build-time dependencies: gcc, > glibc:static, binutils, findutils, everything. It comes from the > wrapper: > > $ grep -r s3dcqzwqaakv1yx37by9chksdbkgih17 /gnu/store/w8i63ghrq64r7f1nxz= w50b0j32f2n8v1-ktouch-20.12.1 > /gnu/store/w8i63ghrq64r7f1nxzw50b0j32f2n8v1-ktouch-20.12.1/bin/ktouch:exp= ort XDG_DATA_DIRS=3D"/gnu/store/w8i63ghrq64r7f1nxzw50b0j32f2n8v1-ktouch-20.= 12.1/share:/gnu/store/ah4az84vjkrssdws7ydvdk1f1mcs70i6-cmake-minimal-3.16.5= /share:/gnu/store/3x63j4ndhbzkjwr6mhnp4h86r550gs7q-extra-cmake-modules-5.70= .0/share:/gnu/store/qcqghpj3550p94pyqwqmwyd3nqcwflpq-kdoctools-5.70.0/share= :/gnu/store/krpyb0zi700dcrg9cc8932w4v0qivdg9-pkg-config-0.29.2/share:/gnu/s= tore/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32/share:/gnu/store/ncydgq2znms= 5n1d2k5yqshhf58nsixwv-gzip-1.10/share:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4sm= n1w48v-bzip2-1.0.8/share:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2= .4/share:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/share:/gnu/s= tore/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7/share:/gnu/store/cd5qf3= kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6/share:/gnu/store/hic7snhayfl7m6cpfqq= r73nmm19bpqkg-findutils-4.7.0/share:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd= 6wxp-gawk-5.0.1/share:/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8/s= hare:/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4/share:/gnu/store/= 57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/share:/gnu/store/hm40bxnv8j= xmbc1lpb7zfimii4xm9m81-make-4.3/share:/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxw= cfyk72-bash-minimal-5.0.16/share:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m= 4-binutils-2.34/share:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0= /share:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/share:/gnu/st= ore/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static/share:/gnu/store/nnr= i2x0mdfm2y2ci0p5jhlf6xkdsf6i6-kcmutils-5.70.0/share:/gnu/store/ybh1br5ghs1b= rnwvacfj04jx3203m87p-kcompletion-5.70.0/share:/gnu/store/bnfcann370ad38g7v4= pzgklmizk69f7j-kconfig-5.70.0/share:/gnu/store/4w9v0jnx74n542v11ikzxbf352xq= rpwy-kconfigwidgets-5.70.0/share:/gnu/store/9nr52vkhj99g4mx1rr349wwsm2aflnv= 4-kcoreaddons-5.70.0/share:/gnu/store/9ln7cv5s813nf4ny5l56qadq0vnkx5g0-kdec= larative-5.70.0/share:/gnu/store/fg8npcm84k5bii5jpmdypqdwq10k5xrf-ki18n-5.7= 0.0/share:/gnu/store/0b7xb35ihp5h5qzfcdymzi7yn5lngsgf-kiconthemes-5.70.0/sh= are:/gnu/store/gdch1j5vjjzzx9qq29zca2w83h8nz9rj-kitemviews-5.70.0/share:/gn= u/store/q8wrlw1g0m35syx5sr3hq44sx6fsxicj-kqtquickcharts-20.04.1/share:/gnu/= store/xhcgpv14llkcdcdn39vrm12mbl4b4y07-ktextwidgets-5.70.0/share:/gnu/store= /f4ibdx1ldiifdjbpyh75py4q8i24b05w-kwidgetsaddons-5.70.0/share:/gnu/store/x2= 7qq3i8c3vifrj1q5y9p8840k5dvk40-kwindowsystem-5.70.0/share:/gnu/store/ybdzlp= nswajsq1acp3l768h21bvzif16-kxmlgui-5.70.0/share:/gnu/store/3x6y8kpbwjmzpndj= fhdbn654g7dm85cp-libxcb-1.14/share:/gnu/store/c7vrkq864hsxfvll74wlrxv71arkc= d5q-libxkbfile-1.1.0/share:/gnu/store/sbf77k7xzwhkx4ygqjzgkviz9vy4qhf6-qtba= se-5.15.2/share:/gnu/store/k6kk02q27nbymwajkvzhlil8c7sym74k-qtdeclarative-5= .15.2/share:/gnu/store/hpirydj1mlmhj199z1ng3yn9sb0f1jc1-qtgraphicaleffects-= 5.15.2/share:/gnu/store/8165pcgy2d1l30vipkv5qz40nkg9qdp3-qtquickcontrols2-5= .15.2/share:/gnu/store/63g70yiyvz08v16hdxsnj3c2pqdq9bm0-qtx11extras-5.15.2/= share:/gnu/store/9hpw67pf9px9zx75nb8bm21pc0gqwyx9-qtxmlpatterns-5.15.2/shar= e:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/sh= are:/gnu/store/lfizifxrrbmb9dd1wdm5yy7rlqp7mmfp-kservice-5.70.0/share:/gnu/= store/yqaafdggah0hac4n6dkw69ib94v03w69-kcodecs-5.70.0/share:/gnu/store/1syz= h2ky8qgxzg59g0g97pqn1gb6xm1r-kauth-5.70.0/share:/gnu/store/s7a55hh8gd8r9dr6= m04sqxg5kgngnqcj-kpackage-5.70.0/share:/gnu/store/cizh7vg0w09izkv07pxdv8csi= r8p4sdd-python-3.8.2/share:/gnu/store/n9wx4dp68bfsw9bb1bwmklzl34ggrmgm-gett= ext-minimal-0.20.1/share:/gnu/store/rqsn0is9frgi7jz1633l4ipa07xfgsbx-sonnet= -5.70.0/share:/gnu/store/6cdl970wcv4jhvpgbh8sdj54a5gwhmwj-libxdmcp-1.1.3/sh= are:/gnu/store/h7sy4hr7arjknbyy1aq0xwv6fksnzw9n-libxau-1.0.9/share:/gnu/sto= re/klk98l8czl05lvanrr7xl7a9hksac4ak-libpthread-stubs-0.4/share:/gnu/store/k= 30a2pgmc6b3ifmq3rn0dr5ng9gr8w81-which-2.21/share:/gnu/store/14qgm67plbh8d3m= 6lc87b9j6s9296vwn-mesa-20.2.4/share:/gnu/store/wxl57nkbqgamfp73b7v62kk3f1hi= v0cz-xorgproto-2019.2/share:/gnu/store/qv7x7pz7gi724lkdz8049mjhy1ryg511-lib= xxf86vm-1.1.4/share:/gnu/store/jwga98k68l0h5c45jx7z4jdjzhfc34vm-libxshmfenc= e-1.3/share:/gnu/store/1v6vap6jaf3hf4ypjx261k44xmc48drc-libxfixes-5.0.3/sha= re:/gnu/store/b67b0a5vda7pv7yqyjjb9736s96hhybi-libxdamage-1.1.5/share:/gnu/= store/rwkqxykm91a75w9afhb41saj0dmf30hw-libx11-1.6.12/share:/gnu/store/kx58x= c3hxa9b0mp1hl7pzz43bl7gh18h-libdrm-2.4.103/share:/gnu/store/lc8irxnwazq340y= gkbqh0ask446jzy9k-util-macros-1.19.2/share:/gnu/store/3rmazp46f6g8w9qs8n3w7= qcg8hhs1lig-libxext-1.3.4/share" > > This is bad for the closure size and probably not good for application > startup time either. Oh! Good finding! That probably explains why my experiments producing a guix pack for jami-qt was yielding an archive that'd decompress to 2.7 GiB! > The problem seems that =E2=80=98variables-for-wrapping=E2=80=99 in qt-bui= ld-system.scm > is too naive: it collects in XDG_DATA_DIRS all the /share directories. > Conversely, =E2=80=98data-directories=E2=80=99 in glib-or-gtk-build-syste= m.scm is a bit > more subtle, keeping only meaningful share/ directories. > > I think qt-build-system.scm should copy that strategy. > > Thoughts? I'm not sure why a wrapper is needed in the first place; these environment variables are honored by qtbase and defined as search path specifications. It seems if we were to fix '22138 important Search paths of dependencies are not honored' we might not have to wrap at all, unless we really want to be able to run things outside of a profile (directly from the store) -- which is a nice property, but comes at the cost of wrappers ugliness (e.g., running 'gdb --args sh /path/to/wrapper', then having to load the symbols with 'file /path/to/.the-binary-real; or that wrapper's name appearing in manpages or other places). But for the short term, perhaps it's best to copy that strategy? Thanks for the report! Maxim