From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: bug#40071: Cross-compiled package closure size. Date: Sun, 15 Mar 2020 12:31:12 +0100 Message-ID: <874kuplurj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45456) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDRUy-0005kb-VE for bug-guix@gnu.org; Sun, 15 Mar 2020 07:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDRUw-0004Ft-Qs for bug-guix@gnu.org; Sun, 15 Mar 2020 07:32:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDRUw-0004Eg-Aa for bug-guix@gnu.org; Sun, 15 Mar 2020 07:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDRUw-0000oY-5M for bug-guix@gnu.org; Sun, 15 Mar 2020 07:32:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:44143) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDRUD-0005Tn-Je for bug-guix@gnu.org; Sun, 15 Mar 2020 07:31:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDRUC-0000zO-Bz for bug-guix@gnu.org; Sun, 15 Mar 2020 07:31:17 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:33129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDRUC-0000rX-3B for bug-guix@gnu.org; Sun, 15 Mar 2020 07:31:16 -0400 Received: by mail-wm1-x331.google.com with SMTP id r7so11179496wmg.0 for ; Sun, 15 Mar 2020 04:31:16 -0700 (PDT) Received: from cervin ([2a01:e0a:fa:a50:709f:c263:3a05:fdf9]) by smtp.gmail.com with ESMTPSA id e1sm77794507wrx.90.2020.03.15.04.31.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 04:31:13 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40071@debbugs.gnu.org Hello, After applying the patch proposed here[1], the closure of cross-compiled "hello" still contains unwanted packages. --8<---------------cut here---------------start------------->8--- mathieu@elbruz ~/guix [env]$ guix size /gnu/store/14ygibryjr7mcly0q9mb8306hlg16nhq-hello-2.10 store item total self /gnu/store/vm2gaw5jk1zr1x9qzj4z52qjxvrh0nk9-glibc-cross-aarch64-linux-gnu-2.31 158.9 71.4 38.2% /gnu/store/w00jb174abikqpznadwzvvgwl3r7qfzd-glibc-2.31 38.4 36.7 19.6% /gnu/store/08vqg0s77dnff7rz90b0h87n2rfyaszg-gcc-7.5.0-lib 71.0 32.6 17.5% /gnu/store/vqsixs9ks4chpjynhizkpdd1gdshv87h-gcc-cross-aarch64-linux-gnu-7.5.0-lib 186.8 27.9 14.9% /gnu/store/fgrpk8r46k34pyqv6xkbi8gbv997dbpx-gcc-cross-sans-libc-aarch64-linux-gnu-7.5.0-lib 80.8 9.8 5.2% /gnu/store/zf5603c5l6ilgyg35gqfkn82v3k9hbri-linux-libre-headers-cross-aarch64-linux-gnu-5.4.20 5.1 5.1 2.7% /gnu/store/6hhsxa3vvbh8gvcfjw4k5sfk1qrhkcrf-bash-static-5.0.16 1.6 1.6 0.9% /gnu/store/nvc3r588745kkj159lm1pa4xz5g99rqd-bash-static-5.0.16 1.6 1.6 0.9% /gnu/store/14ygibryjr7mcly0q9mb8306hlg16nhq-hello-2.10 187.0 0.2 0.1% --8<---------------cut here---------------end--------------->8--- The native glibc, gcc-lib and one of the two bash-static packages should be removed. The gcc-cross-sans-libc-aarch64-linux-gnu-7.5.0-lib may also be removed. Ideally, we would have a closure similar to the native one, with something like this: --8<---------------cut here---------------start------------->8--- /gnu/store/vm2gaw5jk1zr1x9qzj4z52qjxvrh0nk9-glibc-cross-aarch64-linux-gnu-2.31 158.9 71.4 38.2% /gnu/store/vqsixs9ks4chpjynhizkpdd1gdshv87h-gcc-cross-aarch64-linux-gnu-7.5.0-lib 186.8 27.9 14.9% /gnu/store/6hhsxa3vvbh8gvcfjw4k5sfk1qrhkcrf-bash-static-5.0.16 1.6 1.6 0.9% /gnu/store/14ygibryjr7mcly0q9mb8306hlg16nhq-hello-2.10 187.0 0.2 0.1% --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu [1]: https://lists.gnu.org/archive/html/bug-guix/2020-03/msg00170.html