Received: (at 56030) by debbugs.gnu.org; 21 Jul 2022 15:12:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 21 11:12:19 2022 Received: from localhost ([127.0.0.1]:38621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oEXqd-0005no-3C for submit <at> debbugs.gnu.org; Thu, 21 Jul 2022 11:12:19 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paren@HIDDEN>) id 1oEXqb-0005nd-FY for 56030 <at> debbugs.gnu.org; Thu, 21 Jul 2022 11:12:18 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 02E4040E1E; Thu, 21 Jul 2022 17:12:16 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id XlU5Q_gG_1i9; Thu, 21 Jul 2022 17:12:14 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1658416316; bh=Xh3oPpyOiavgZXKUr65szSvzcLhMse7I5HNbZ3MF0vg=; h=Date:To:Subject:From:References:In-Reply-To; b=Syxz9GrtM+H0FOogZDe0JpMpRqtG7puDjqR//Gu/WJaQFARUBUlBPdNlEwTvTgnS6 TZrUo/+yPvxGH+DNdc1kBgQM8pnjmTlBwJfpi18d0+Bpu8NyRh/W/fyApBJ3W3w5IF dtBCffleXWKDt+QLDGKcACNeBhR09qX4cK8qmagEtBtEC3iqteebk7YrF6tN4cL6bW KK7xCXUPWcSo4zV4jHF0nFge+93mcw9R5XGbb4T9Ie1noLalvXSfSK+w3FlGaZpDr6 xMRr3Tp20XcDYnkfeSqA11SfLQwVC4yukldiEpJlRf1AM/VR+3XNfBlnYixwqv0TOn OD1iOu2NYcA3Q== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Jul 2022 16:11:56 +0100 Message-Id: <CLLFIQ1OG10K.BVBWA00UIAGE@guix-aspire> To: "Maxime Devos" <maximedevos@HIDDEN>, "Julien Lepiller" <julien@HIDDEN>, <56030 <at> debbugs.gnu.org> Subject: Re: bug#56030: The guix pull profile is too big From: "(" <paren@HIDDEN> References: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> <d644f79a-f0e3-6166-23cc-db867577f048@HIDDEN> In-Reply-To: <d644f79a-f0e3-6166-23cc-db867577f048@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 56030 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) And considering the definition of system(3) in glibc: @ sysdeps/posix/system.c (took me way too long to find this; glibc's source code is a maze ;)) ``` #define SHELL_PATH "/bin/sh" /* Path of the shell. */ #define SHELL_NAME "sh" /* Name to give it. */ ``` couldn't we just use `-DSHELL_PATH=3D/gnu/store/...`? -- (
bug-guix@HIDDEN
:bug#56030
; Package guix
.
Full text available.Received: (at 56030) by debbugs.gnu.org; 21 Jul 2022 15:04:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 21 11:04:09 2022 Received: from localhost ([127.0.0.1]:38611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oEXii-0005ac-Sr for submit <at> debbugs.gnu.org; Thu, 21 Jul 2022 11:04:09 -0400 Received: from knopi.disroot.org ([178.21.23.139]:33366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paren@HIDDEN>) id 1oEXig-0005aS-Ot for 56030 <at> debbugs.gnu.org; Thu, 21 Jul 2022 11:04:07 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3F3CD40DDC; Thu, 21 Jul 2022 17:04:05 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id hzyvk-6xtbCx; Thu, 21 Jul 2022 17:04:03 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1658415800; bh=2/18bGfoq+QgHPuAmUkE+DwWjhMWe8+CqDowYTXCBfQ=; h=Date:To:Subject:From:References:In-Reply-To; b=S4cYbe4JcH+a3qKN4syh60aH526Y7qxoSnP4yLAaULNT1mJbtaJ+vckjv7TOWHrmS 4TfSBVWTZyiG/ng6IsDYtzagspsL89sqRt8mpNyy+LRQ0ZtxO4xYbFt0ORbjeUbkXE bL3x55RemBvBqi/Cg5edwDQx2B1q0ssbh33fPFuhs792AuJNtf1865Y2USNhxH/zY/ bH3BM3bhVHpV5M6vB//kZjwDzk2k5cXF9v8FQXcykUxfZr3+Mt6jiUvEX6KY1WaZmV 5w8NAdZ64ivBnMtB1ZRXUkihWwBpxL5O1ai9WADMhuY4YEP1H+X+Hjk9l5BzZZUuCe DHztGbPb/v7RA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Jul 2022 16:03:19 +0100 Message-Id: <CLLFC4MVAX97.3PQ5GEUIKALJW@guix-aspire> To: "Maxime Devos" <maximedevos@HIDDEN>, "Julien Lepiller" <julien@HIDDEN>, <56030 <at> debbugs.gnu.org> Subject: Re: bug#56030: The guix pull profile is too big From: "(" <paren@HIDDEN> References: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> <d644f79a-f0e3-6166-23cc-db867577f048@HIDDEN> In-Reply-To: <d644f79a-f0e3-6166-23cc-db867577f048@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 56030 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu Jul 21, 2022 at 3:52 PM BST, Maxime Devos wrote: > * Add a macro '#define system ...' that calls this variant and inserts > __guix_bin_sh as the shell executable Would this not violate POSIX? Since, as far as I can see, <https://pubs.opengroup.org/onlinepubs/9699919799/functions/system.html> does not give the implementation license to implement system(3) as a macro. We could do ``` int system(const char *command) { return __guix_run_in_shell(command, __guix_bin_sh); } ``` though. -- (
bug-guix@HIDDEN
:bug#56030
; Package guix
.
Full text available.Received: (at 56030) by debbugs.gnu.org; 21 Jul 2022 14:52:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 21 10:52:52 2022 Received: from localhost ([127.0.0.1]:38602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oEXXo-0005Ga-6H for submit <at> debbugs.gnu.org; Thu, 21 Jul 2022 10:52:52 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:52508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maximedevos@HIDDEN>) id 1oEXXj-0005GN-Eh for 56030 <at> debbugs.gnu.org; Thu, 21 Jul 2022 10:52:51 -0400 Received: from [IPV6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16] ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by laurent.telenet-ops.be with bizsmtp id xqsk2700Q20ykKC01qskuW; Thu, 21 Jul 2022 16:52:45 +0200 Message-ID: <d644f79a-f0e3-6166-23cc-db867577f048@HIDDEN> Date: Thu, 21 Jul 2022 16:52:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: Julien Lepiller <julien@HIDDEN>, 56030 <at> debbugs.gnu.org References: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Subject: Re: bug#56030: The guix pull profile is too big In-Reply-To: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------0MoVAEIa0KFQOPBGHHEwECw5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1658415165; bh=F7ELwsFEuRBq3mRiU8hURc52w4tpVQfDXaxL0r+49Us=; h=Date:To:References:From:Subject:In-Reply-To; b=ITgiiPDULBL4oJe39Q8w0pexNEURXdX4Sa6HVjtFKTVoeX8+40nkxu2u3jnm/2v3s JbCkgzu4FYPGWazeSvcymlaQ8DOBIFV2ii0P7Q+RYf5Dj2pqnxoYZAYtr2ogN033tj vjpeCPR2142lAj64EO+ptXw06FIMfU2z9G9LZFVAdf2wVTf4s5MRgdNaorcUX452cN 4F5ORNQ7NG5kmA0tyShdUQ8V5jX+WFupdVJ/qB/KnySBfaI5rcQJhFFepanwVOlQcg //yPVdnvQ+jCHFtWJBqef17v7v67WaeCeyIWw3gM7iNAv/3iJyf/gOk9h7fTnSs6h1 pWxkOMfZ/yqEA== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 56030 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------0MoVAEIa0KFQOPBGHHEwECw5 Content-Type: multipart/mixed; boundary="------------UrBvSBQ1oHVLb4HAC0Y2hRtF"; protected-headers="v1" From: Maxime Devos <maximedevos@HIDDEN> To: Julien Lepiller <julien@HIDDEN>, 56030 <at> debbugs.gnu.org Message-ID: <d644f79a-f0e3-6166-23cc-db867577f048@HIDDEN> Subject: Re: bug#56030: The guix pull profile is too big References: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> In-Reply-To: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> --------------UrBvSBQ1oHVLb4HAC0Y2hRtF Content-Type: multipart/mixed; boundary="------------mOcseaN9eS9cchJXX90fOi10" --------------mOcseaN9eS9cchJXX90fOi10 Content-Type: multipart/alternative; boundary="------------UMbJNYIYfJ9p4Kh2nPyj0HY0" --------------UMbJNYIYfJ9p4Kh2nPyj0HY0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpPbiAxNy0wNi0yMDIyIDA3OjQ4LCBKdWxpZW4gTGVwaWxsZXIgd3JvdGU6DQo+IFdlIGhh dmUgYmFzaC1taW5pbWFsIGFuZCBiYXNoLXN0YXRpYy4gVGhlIGxhdHRlciBpcyBhIGJpdCBi aWdnZXIgdGhhbiANCj4gdGhlIGZvcm1lci4gTWF5YmUgd2UgY2FuIGtlZXAgb25seSBiYXNo LW1pbmltYWw/IA0KDQpiYXNoLXN0YXRpYyBpcyB1c2VkIGJ5IGdsaWJjIChmb3IgdGhlICdz eXN0ZW0nIGZ1bmN0aW9uKSwgaXQncyBub3QgDQpzb21ldGhpbmcgdGhhdCBjYW4gc2ltcGx5 IGJlIHJlcGxhY2VkIHdpdGggYmFzaC1taW5pbWFsIChkdWUgdG8gdGhlIA0KY3ljbGUgYmFz aC1taW5pbWFsIC0+IGdsaWJjIC0+IGJhc2gtbWluaW1hbCB0aGF0IHdvdWxkIHJlc3VsdCku IEkgZG8gDQpoYXZlIGEgcHJvcG9zYWwgZWxpbWluYXRpbmcgdGhlIGJhc2gtc3RhdGljIHJl ZmVyZW5jZSB0aG91Z2g6DQoNCiAgKiByZXBsYWNlIHRoZSAnc3lzdGVtJyBmdW5jdGlvbiBm cm9tIGdsaWJjIGJ5IGEgdmFyaWFudCB0aGF0IGFjY2VwdHMNCiAgICB0aGUgZmlsZSBuYW1l IG9mIHRoZSBzaGVsbCBleGVjdXRhYmxlDQogICogQWRkIGEgbWFjcm8gJyNkZWZpbmUgc3lz dGVtIC4uLicgdGhhdCBjYWxscyB0aGlzIHZhcmlhbnQgYW5kIGluc2VydHMNCiAgICBfX2d1 aXhfYmluX3NoIGFzIHRoZSBzaGVsbCBleGVjdXRhYmxlDQogICogSW4gdGhlIGJ1aWxkIHN5 c3RlbSwgbG9vayBmb3IgYmluL3NoIGluIHRoZSBpbnB1dHMuwqAgSWYgaXQgZXhpc3RzLA0K ICAgIGFkZCAtRF9fZ3VpeF9iaW5fc2g9L2dudS9zdG9yZS8uLi4vYmluL3NoIHRvDQogICAg Q0ZMQUdTIG9yIHN1Y2guDQoNCkdyZWV0aW5ncywNCk1heGltZQ0KDQo= --------------UMbJNYIYfJ9p4Kh2nPyj0HY0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF= -8"> </head> <body> <p><br> </p> <div class=3D"moz-cite-prefix">On 17-06-2022 07:48, Julien Lepiller wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN">We have bash-minimal and bash-static. The latter is a bit bigger than the former. Maybe we can keep only bash-minimal? </blockquote> <p>bash-static is used by glibc (for the 'system' function), it's not something that can simply be replaced with bash-minimal (due to the cycle bash-minimal -> glibc -> bash-minimal that would result). I do have a proposal eliminating the bash-static reference though:</p> <ul> <li>replace the 'system' function from glibc by a variant that accepts the file name of the shell executable<br> </li> <li>Add a macro '#define system ...' that calls this variant and inserts __guix_bin_sh as the shell executable</li> <li>In the build system, look for bin/sh in the inputs.=C2=A0 If it= exists, add -D__guix_bin_sh=3D/gnu/store/.../bin/sh to<br> CFLAGS or such.<br> </li> </ul> <p>Greetings,<br> Maxime<br> </p> </body> </html> --------------UMbJNYIYfJ9p4Kh2nPyj0HY0-- --------------mOcseaN9eS9cchJXX90fOi10 Content-Type: application/pgp-keys; name="OpenPGP_0x49E3EE22191725EE.asc" Content-Disposition: attachment; filename="OpenPGP_0x49E3EE22191725EE.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX4ch6BYJKwYBBAHaRw8BAQdANPb/d6MrGnGi5HyvODCkBUJPRjiFQcRU5V+m xvMaAa/NL01heGltZSBEZXZvcyA8bWF4aW1lLmRldm9zQHN0dWRlbnQua3VsZXV2 ZW4uYmU+wpAEExYIADgWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX4ch6AIbAwUL CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRBJ4+4iGRcl7japAQC3opZ2KGWzWmRc /gIWSu0AAcfMwyinFEEPa/QhUt2CogD/e2RdF4CYAgaRHJJmZ9WU7piKbLZ7llB4 LzgezVDHggzNJU1heGltZSBEZXZvcyA8bWF4aW1lZGV2b3NAdGVsZW5ldC5iZT7C kAQTFggAOBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJf56ycAhsDBQsJCAcDBRUK CQgLBRYCAwEAAh4BAheAAAoJEEnj7iIZFyXujpQBAKV1SwDDl4f24rXciDlB9L8W ycZt30CgbewMSRQk4mvbAP9dFMbVVixYBd6C8cfhR+NsOBGiOJnQABlUmgNuqGFJ Dc44BF+HIegSCisGAQQBl1UBBQEBB0BOlzIWiJzgobMF6/cqwLaLk7jIcFSZ++c0 k9cCNT6YXwMBCAfCeAQYFggAIBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJfhyHo AhsMAAoJEEnj7iIZFyXuMr0BAJc8cl5PGvVmVuSQVKjleNl4DK1/XAaPAYPe34AE fZJPAP9IqLCQhH/FeJanHqBP8gNdGNI2qn8RnnLVfRJgUjZ1BA=3D=3D =3DOVqp -----END PGP PUBLIC KEY BLOCK----- --------------mOcseaN9eS9cchJXX90fOi10-- --------------UrBvSBQ1oHVLb4HAC0Y2hRtF-- --------------0MoVAEIa0KFQOPBGHHEwECw5 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYtloPAUDAAAAAAAKCRBJ4+4iGRcl7vyN AQCWcbKkB5F0LrboacJbEdjKv31z7q2ZAzOcQ4iqxevjfgD+I4kQ3tr5ZNmHdCFg7kcmw2WEM6es mHX6Ii8Yz3eF7gI= =0c8k -----END PGP SIGNATURE----- --------------0MoVAEIa0KFQOPBGHHEwECw5--
bug-guix@HIDDEN
:bug#56030
; Package guix
.
Full text available.Received: (at 56030) by debbugs.gnu.org; 26 Jun 2022 21:20:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 26 17:20:54 2022 Received: from localhost ([127.0.0.1]:49258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o5Zgb-00049o-P0 for submit <at> debbugs.gnu.org; Sun, 26 Jun 2022 17:20:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1o5Zga-00049c-P4 for 56030 <at> debbugs.gnu.org; Sun, 26 Jun 2022 17:20:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1o5ZgU-0006ha-IC; Sun, 26 Jun 2022 17:20:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=UfmVH864dnB9G9/1+TkPzoocSQkkJ6Ke597ly3veJ1s=; b=dtZZlnBdcFiJl1rJmk9z 30gq/jiaJlWKKvLzWyEp3N5yjWhx5RtPmGAuIf1pg9zlzqow7vhDOdAiN4pd7OAae3/xWh+djGGsQ X9kP+ousL1vHRVYy8B/xVU/g7QPZPRRwoU+nt4xdP89o44XLLbcVPd9r3aqJJj+AcXBsQ5bVGPm+E lrfoUUJnSsxtpjxXgY3MV79yVbNJfzA76Mg1aqDNWrPaEqW65KKl5z/gkMU5004oXZzgZOr04oNgC xgtmv7MSkQfksKTPJzbujPofIKRQFWGjZrN10swbjDyfT7tS9E4qLgwdDeHc1BpZahhGWmE7j6ED6 u8HME3KP5wwq3w==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:58245 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1o5ZgU-0004NV-5I; Sun, 26 Jun 2022 17:20:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: Julien Lepiller <julien@HIDDEN> Subject: Re: bug#56030: The guix pull profile is too big References: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> Date: Sun, 26 Jun 2022 23:20:44 +0200 In-Reply-To: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> (Julien Lepiller's message of "Fri, 17 Jun 2022 07:48:28 +0200") Message-ID: <87h747qfyr.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 56030 Cc: 56030 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.8 (--) Hi, Julien Lepiller <julien@HIDDEN> skribis: > I figured out this morning that my guix pull profile ("current") was more= than 1GB. Looking at the closure, I found a few oddities. Specifically: --8<---------------cut here---------------start------------->8--- $ guix describe Generation 219 Jun 20 2022 09:40:20 (current) guix 73761d8 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 73761d8049f483e6685c2c736872d0366e03238a $ guix size $(readlink -f ~/.config/guix/current) store item total s= elf /gnu/store/rfkyfhdj3zq6lzlw7n0y5m36pdcfd2s7-guix-73761d804-modules 554.6 = 220.8 27.5% /gnu/store/249mczqf0jv55a7df9v3a3314mrwjg61-guix-packages-base 123.9 = 123.9 15.5% /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8 130.0 = 53.0 6.6% /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7 129.1 = 52.0 6.5% /gnu/store/jv3gkqapz7fxgpjzp7g6rlpfl3fb2pq9-guix-system 51.2 = 51.2 6.4% /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33 38.3 = 36.6 4.6% /gnu/store/cwxfvi0890wwmhigk84iiq1dh64x0ac9-guix-packages-base-source 34= .2 34.2 4.3% /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib 71.7 = 33.4 4.2% /gnu/store/3db8s5gn3srsdrzrdz4d0xpxpfhlb3h5-guix-extra 25.7 = 25.7 3.2% /gnu/store/bnsf9il448hl5xjavbhq3rcx355svz2v-glib-2.70.2 98.1 = 15.3 1.9% /gnu/store/mw3py6smb1pk8yx298hd9ivz9lzbksqi-glibc-utf8-locales-2.33 13.9= 13.9 1.7% /gnu/store/7nlzk7n90ib3llblxlpz725ym3k05gdj-util-linux-2.37.2-lib 80.7 = 9.0 1.1% /gnu/store/pyaxxsi4207awhpppqf1br6gl03k47pz-guix-package-cache 6.4 = 6.4 0.8% /gnu/store/cyx97f0bx4nki07l52jzw3lng0mzcdcv-guix-cli-core 6.4 = 6.4 0.8% /gnu/store/2rdmiv3k11qxz13fjq5bipljwjz0r6ws-guix-manual 6.0 = 6.0 0.8% /gnu/store/9rrnm5hdjw7cy96a2a9rfgh6y08wsbmf-ncurses-6.2.20210619 77.6 = 5.9 0.7% /gnu/store/zl9wf0zwq2ka9rpmayp53hnp2mn460xf-gnutls-3.7.2 143.4 = 5.6 0.7% /gnu/store/xgp23kc3v9w7l10grjwd0n1a74v3fhx3-openssl-1.1.1n 77.2 = 5.5 0.7% /gnu/store/il571kvl9fs08xag4hyg6x8hm57akscm-guile-git-0.5.2 100.5 = 5.2 0.6% /gnu/store/dyd5gaxzrngl6m9clniq5y1r7yl463h1-guix-system-tests 4.3 = 4.3 0.5% /gnu/store/fg76cjzdk413dfkx50fkcwd3wpbyfpi1-pcre2-10.37 84.6 = 4.0 0.5% /gnu/store/ffynx7n76vb5rby4b14yjcacqwq1w70h-mit-krb5-1.19.2 82.2 = 3.9 0.5% /gnu/store/v06gnr579r0jmr36aha3wkbd1y27ccg7-disarchive-0.4.0 139.1 = 3.8 0.5% /gnu/store/x1jd7pqfn9ilb6x97azcfq1fhjr63p0z-p11-kit-0.23.22 76.4 = 3.4 0.4% /gnu/store/xmzx5mzv4863yw9kmr2ykndgp37p8if0-sqlite-3.36.0 82.3 = 3.2 0.4% /gnu/store/x1x1sw727g7ls93av3i27mkd90s4wgd7-guix-home 3.2 = 3.2 0.4% /gnu/store/jkd4zlfq4rph31xazz132cf0skg6km00-guix-cli 3.1 = 3.1 0.4% /gnu/store/v8raqm2shh9azkl71107p53j55hir306-libxcb-1.14 75.3 = 3.0 0.4% /gnu/store/ssfq7hv5bhas830cs29fk271brcn3vqi-guile-lib-0.2.7 2.9 = 2.9 0.4% /gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34 75.6 = 2.9 0.4% /gnu/store/fa43ijbrb96x08621qigxxiphp503lsi-libx11-1.7.3.1 78.2 = 2.8 0.4% /gnu/store/fwbiihd2sbhai63y1pvvdh0f2bakfzrf-gmp-6.2.1 74.4 = 2.7 0.3% /gnu/store/yqr33jyy81fdqmr8rd4gvbpisbad2w2l-guix-extra-source 2.5 = 2.5 0.3% /gnu/store/4rqq5sl8n85ywfwqdv0f1xjaw9vhgl8k-guix-system-source 2.4 = 2.4 0.3% /gnu/store/hkhbq2q1gfs970gsp2nhsmcqb4vmv2xr-libunistring-0.9.10 74.0 = 2.3 0.3% /gnu/store/f058zn04xla5jndkhxl0s20pbl61bckq-guile-bytestructures-1.0.10 = 2.1 2.1 0.3% /gnu/store/n0sd9hghs18pjsj72023r1spa9wxccc2-libevent-2.1.12 73.8 = 2.1 0.3% /gnu/store/m7vwbbsy3pkpi4rpdnvr8m4jc8y36ckn-libgit2-1.3.0 95.4 = 2.0 0.2% /gnu/store/xggzgd4xwsy5p02wdfngk67j7zpp91gb-guile-ssh-0.15.1 144.9 = 1.9 0.2% /gnu/store/03g49nffc73vrmx5180p4fhr3z4mfk0z-avahi-0.8 111.8 = 1.7 0.2% /gnu/store/r08q5kq8hy5621y3yk0c7zrxb9s514z4-guix-locale-guix 1.7 = 1.7 0.2% /gnu/store/720rj90bch716isd8z7lcwrnvz28ap4y-bash-static-5.1.8 1.7 = 1.7 0.2% /gnu/store/di5bqb45hi5lvp2q08hlxqjdcl9phjb1-pcre-8.45 73.4 = 1.7 0.2% /gnu/store/wcwls45278gzpjvwlvrrs1y7h30g44xh-readline-8.1.1 79.0 = 1.4 0.2% /gnu/store/3kl94m3ksm45a880b6lnn3kagk857lj9-libgcrypt-1.8.8 75.1 = 1.4 0.2% /gnu/store/60jl4xry9c93j9l0rr7nkvbw7dihjz4k-guile-gcrypt-0.3.0 76.5 = 1.4 0.2% /gnu/store/3x3dl71d4xm6y4hjwq110hmfyfx0xc6j-zstd-1.5.0-lib 72.9 = 1.2 0.2% /gnu/store/2b3blhwbag1ial0dhxw7wh4zjxl0cqpk-pkg-config-0.29.2 72.8 = 1.1 0.1% /gnu/store/yl859fgb86zgl0zsvbhxdpms945aazip-dbus-1.12.20 79.6 = 1.1 0.1% /gnu/store/aggsb6j1svxp70xlll4rqnx5f2pzz794-xz-5.2.5 73.7 = 1.1 0.1% /gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5 73.7 = 1.1 0.1% [=E2=80=A6] /gnu/store/vjf3hvajws01wmm5rwbkgw7z0jvl6v3h-guix-command 788.6 = 0.0 0.0% /gnu/store/hsynjf6csram52x9ampnb90ysdbipdk2-emacs-subdirs 0.0 = 0.0 0.0% /gnu/store/yyqqi3kp61r9sjqhhay85in0h5s8dzs8-guix-daemon 789.4 = 0.0 0.0% total: 802.0 MiB --8<---------------cut here---------------end--------------->8--- 50% goes into Guix modules. There=E2=80=99s prolly room for improvement be= cause the =E2=80=98guix-COMMIT-modules=E2=80=99, which is #1, is actually the uni= on of all the other guix-*-modules. > There's gcc in there, which is the second most important contributor afte= r guix-*-modules (150 MB). It's referenced by gcc-toolchain, itself only re= ferenced by the guile-wrapper we build in (guix self). Can we get rid of it? I think you fixed that one in 319b8331b2357e12ec9edb9665513c32bef56622. \o/ > There are three versions of guile (50 MB each). Can we settle for only on= e? I think that=E2=80=99s (@ (gnu packages commencement) guile-final), guile-3= .0, and guile-3.0-latest. However I see only two of them here. --8<---------------cut here---------------start------------->8--- $ guix graph --path -t references $(readlink -f ~/.config/guix/current) /gn= u/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8 /gnu/store/njzk97pz238fcjjpjk2vzdv5rgs6s54v-profile /gnu/store/vp1m80lj2g6391xi95f056yra7xfb47i-guix-73761d804 /gnu/store/vjf3hvajws01wmm5rwbkgw7z0jvl6v3h-guix-command /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8 $ guix graph --path -t references $(readlink -f ~/.config/guix/current) /gn= u/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7 /gnu/store/njzk97pz238fcjjpjk2vzdv5rgs6s54v-profile /gnu/store/vp1m80lj2g6391xi95f056yra7xfb47i-guix-73761d804 /gnu/store/yyqqi3kp61r9sjqhhay85in0h5s8dzs8-guix-daemon /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7 $ head -3 /gnu/store/yyqqi3kp61r9sjqhhay85in0h5s8dzs8-guix-daemon #!/gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7/bin/guile --no-au= to-compile !# (begin (setenv "GUIX" "/gnu/store/vjf3hvajws01wmm5rwbkgw7z0jvl6v3h-guix-com= mand") (unless (getenv "GUIX_STATE_DIRECTORY") (setenv "GUIX_STATE_DIRECTOR= Y" "/var/guix")) (unless (getenv "GUIX_CONFIGURATION_DIRECTORY") (setenv "G= UIX_CONFIGURATION_DIRECTORY" "/etc/guix")) (unless (getenv "NIX_STORE_DIR")= (setenv "NIX_STORE_DIR" "/gnu/store")) (apply execl "/gnu/store/jmqzsqpgnx= rvzpdyx4dglvz9f40b81xm-guix-daemon-1.3.0-27.598f728/bin/guix-daemon" "guix-= daemon" (cdr (command-line)))) --8<---------------cut here---------------end--------------->8--- Fixed this one in commit d418031a8cbdea4e2bc5c52ea1b29ad369579bae. But then, =E2=80=98guile-3.0=E2=80=99 being the default, it=E2=80=99s used = in a number of places, like: --8<---------------cut here---------------start------------->8--- $ guix graph -t references --path /gnu/store/6f58rzr1xi8h43l6l8gsm4paravqnn= jz-guix-20220626.13 /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7 /gnu/store/6f58rzr1xi8h43l6l8gsm4paravqnnjz-guix-20220626.13 /gnu/store/00kkky8qxa73qv8g8y60y5gjz0l4hpmk-guix-command /gnu/store/m3pdqa0crnvblllvkdjbda42k0rwxn9c-guix-module-union /gnu/store/v06gnr579r0jmr36aha3wkbd1y27ccg7-disarchive-0.4.0 /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7 --8<---------------cut here---------------end--------------->8--- I can=E2=80=99t think of a good solution to this. > Then maybe less important because they're small: > > There are two libffi, gzip, zlib, libgc, bash-minimal, xz, pkg-config and= libunistring. > > We have bash-minimal and bash-static. The latter is a bit bigger than the= former. Maybe we can keep only bash-minimal? That=E2=80=99s probably due to the fact that there are multiple Guile varia= nts; annoying. It=E2=80=99s worth keeping in mind that thanks to deduplication, this costs= much less than it seems in terms of disk space, but it does cost in terms of bandwidth usage. Thanks, Ludo=E2=80=99.
bug-guix@HIDDEN
:bug#56030
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 17 Jun 2022 05:50:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 17 01:50:01 2022 Received: from localhost ([127.0.0.1]:43549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o24rp-0002Xc-9k for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 01:50:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:54524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <julien@HIDDEN>) id 1o24rm-0002XN-Ia for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 01:50:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <julien@HIDDEN>) id 1o24rd-000327-Lu for bug-guix@HIDDEN; Fri, 17 Jun 2022 01:49:53 -0400 Received: from lepiller.eu ([89.234.186.109]:38580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <julien@HIDDEN>) id 1o24rX-0004B3-Ry for bug-guix@HIDDEN; Fri, 17 Jun 2022 01:49:49 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 036726c0 for <bug-guix@HIDDEN>; Fri, 17 Jun 2022 05:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=dkim; bh=7V+FhLRhvlyt0ymhz9+gBqrwn qsCLqysaXjFm3U4Y60=; b=QOh3GqiEeQnWGI7AJvvz0yOqQ4j3GSHy7xaZcBI4G CpdciWt1v8lUAremWSE1ZEPhLQJqbwVnqPAnJxq9iztvsiRQg7QU8TNtqrk0hkXh ZSqtJVP3KYrkzFgGGlfWHkNBUS8tuCLXioHQjsDCtxplxSSuK39b9KHJZzFxFdXy gqn0Lkyy5TKUPcl00CdUsDFs4FakmMO8ws+qKEsdj1S0P/GtDAzNx2ONrH2gAnCb ZobykeMbnO6EY4NiGGQ1mawjSnrDswHMk21YTMIZcGKYf/gqmuNqD0ZFuSNVexO9 TimWVR+iQhhRqIoF302Xhjp1SPTL/OIyYFykaaTCFNyNw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 841d6743 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <bug-guix@HIDDEN>; Fri, 17 Jun 2022 05:48:30 +0000 (UTC) Date: Fri, 17 Jun 2022 07:48:28 +0200 From: Julien Lepiller <julien@HIDDEN> To: bug-guix@HIDDEN Subject: The guix pull profile is too big User-Agent: K-9 Mail for Android Message-ID: <2C6CCC4B-BC71-4CA4-9B7B-086C14713DCD@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----OJMFAH88D55M4M081TLXKBTXP4E1B0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@HIDDEN; helo=lepiller.eu 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) ------OJMFAH88D55M4M081TLXKBTXP4E1B0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Guix! I figured out this morning that my guix pull profile ("current") was more = than 1GB=2E Looking at the closure, I found a few oddities=2E There's gcc in there, which is the second most important contributor after= guix-*-modules (150 MB)=2E It's referenced by gcc-toolchain, itself only r= eferenced by the guile-wrapper we build in (guix self)=2E Can we get rid of= it? There are three versions of guile (50 MB each)=2E Can we settle for only o= ne? Then maybe less important because they're small: There are two libffi, gzip, zlib, libgc, bash-minimal, xz, pkg-config and = libunistring=2E We have bash-minimal and bash-static=2E The latter is a bit bigger than th= e former=2E Maybe we can keep only bash-minimal? ------OJMFAH88D55M4M081TLXKBTXP4E1B0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html><html><body>Hi Guix!<br><br>I figured out this morning that = my guix pull profile ("current") was more than 1GB=2E Looking at the closur= e, I found a few oddities=2E<br><br>There's gcc in there, which is the seco= nd most important contributor after guix-*-modules (150 MB)=2E It's referen= ced by gcc-toolchain, itself only referenced by the guile-wrapper we build = in (guix self)=2E Can we get rid of it?<br><br>There are three versions of = guile (50 MB each)=2E Can we settle for only one?<br><br>Then maybe less im= portant because they're small:<br><br>There are two libffi, gzip, zlib, lib= gc, bash-minimal, xz, pkg-config and libunistring=2E<br><br>We have bash-mi= nimal and bash-static=2E The latter is a bit bigger than the former=2E Mayb= e we can keep only bash-minimal?</body></html> ------OJMFAH88D55M4M081TLXKBTXP4E1B0--
Julien Lepiller <julien@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#56030
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.