From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EGdGOF3jl2W9aQEAkFu2QA (envelope-from ) for ; Fri, 05 Jan 2024 12:09:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8O15NF3jl2XsEgEAqHPOHw (envelope-from ) for ; Fri, 05 Jan 2024 12:09:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=EtwFOvrw; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704452957; 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=ea3Y5lVIEGTcW3mA5cisb4XJaA9RVdj4Nq/29CWXBPU=; b=UJ7bcOI/acKETsvaVMjylBYyyIWySkNOOHuk2cNvk5eCYEuR1PYIUDailOu0znvJ76Lt9E AW1ViPQa1f5e/U6tykoCzJG3HZxQXNg+hreD+0PfNhd5Ayd83IBjI7uuGM6/9Z1RsLR5Jq iWnwUFrej30gqO9vt0OtqWZfQLzL42SC74exrqOPNQvUaBMrSPTy5sDjSN0Xw/MXwXwncu 7hitqG4zeWbsNcryxK/XBFE5WK+IqFO5KU4hihHw+lNr2RMLAvxi0bJc1otboISzSYxEsg tu93gR0bfrDSctaqPEk3XTcqrPGui22xFeI4mgPbroCfTtdlLhd+OiEo+Ir4Lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704452957; a=rsa-sha256; cv=none; b=ouPONWoOthWbmHKFJHDefgdjgbKu8TCyF4+d1rPEz2vTU1ZQRgmXFK2E4qWHDHb8Op7Y3Y kI54C6Bn0gYNR/CenbEPpJrl9El5YmMFiUiwt+qCnRt64G5gZyJ1/FH+E43KFRzvLej3ol gE9njxgxReAx+i/q3jdMjKSJtILhIxj7+TFVnVWBXbi6VKXhaKwZ/cvrDgCE8WYkkSRLSG w14SYj6QEwxCAYSO5BtYSOQVfIo8j6nyU/6xY9QSdtVfYcmzUhNMftaAtiGQqJn5XzRndA NN0XVa/MTufpG6aSc5le1c5so8avB9BOtKKUcVNEoJA4Ztbli21V94acRi3orA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=EtwFOvrw; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 A3AEC1F7DC for ; Fri, 5 Jan 2024 12:09:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLi4W-00075u-1s; Fri, 05 Jan 2024 06:09:04 -0500 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 1rLi4Q-000743-Jb for guix-patches@gnu.org; Fri, 05 Jan 2024 06:08:58 -0500 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 1rLi4Q-0003JI-BE for guix-patches@gnu.org; Fri, 05 Jan 2024 06:08:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLi4U-00058Q-Hf for guix-patches@gnu.org; Fri, 05 Jan 2024 06:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67822] [PATCH v3] gnu: maths: petsc: Reduce closure size. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Jan 2024 11:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67822 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars Bilke Cc: 67822@debbugs.gnu.org, Andreas Enge , Efraim Flashner , Eric Bavier Received: via spool by 67822-submit@debbugs.gnu.org id=B67822.170445293919730 (code B ref 67822); Fri, 05 Jan 2024 11:09:02 +0000 Received: (at 67822) by debbugs.gnu.org; 5 Jan 2024 11:08:59 +0000 Received: from localhost ([127.0.0.1]:56506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLi4R-000589-6O for submit@debbugs.gnu.org; Fri, 05 Jan 2024 06:08:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLi4P-00057w-OK for 67822@debbugs.gnu.org; Fri, 05 Jan 2024 06:08:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLi4C-0003Hx-86; Fri, 05 Jan 2024 06:08:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ea3Y5lVIEGTcW3mA5cisb4XJaA9RVdj4Nq/29CWXBPU=; b=EtwFOvrw+kEOQfVPxrUB b+czi8/pE50pFe2mjl9b4snBB6HCPeRQVAdaSoN4y5jLKhOWuvSsVJGGZni+vgMGBcf+z8oFya3+z gZpmbTQHrF8B7AmMhLvbjyEAOpHRFSdU4j3zBjUn03ThpCJmZZy+5CcYAEbGfsiKuvHxLfZMRfR7o 29JyLxHcAvAsGOaQbwp/4kRlfv5SDQ2vjEKo+D3QN3M3u8Dygh/Q1xr4mN6d3H+FFjOYjqRqgcEHz LIzMuHDiS0dE6XDVpPmFGs6mS4NXZo0A3XF+G2zgXE8eB6QlTFbGZEXo0tmsN13Xb/nRjOQ0AS5H9 aY+GNF1cVeButA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <6a6413853ce16af65e143bd727715be6dd7d6048.1702630557.git.lars.bilke@ufz.de> (Lars Bilke's message of "Fri, 15 Dec 2023 09:55:57 +0100") References: <9ba967c61c66acea4b4c3b1db6e1a446ad9e827e.1702558568.git.lars.bilke@ufz.de> <6a6413853ce16af65e143bd727715be6dd7d6048.1702630557.git.lars.bilke@ufz.de> Date: Fri, 05 Jan 2024 12:08:40 +0100 Message-ID: <878r54f35z.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.99 X-Spam-Score: -6.99 X-Migadu-Queue-Id: A3AEC1F7DC X-Migadu-Scanner: mx12.migadu.com X-TUID: +8DhTKATLx6q Hi Lars, Lars Bilke skribis: > Reduces closure size by around 350 MB by removing refernces to build depe= ndencies (e.g. gcc). Woow, nice! > + (add-after 'clean-install 'clear-reference-to-compiler > + (lambda* (#:key inputs outputs #:allow-other-keys) > + ;; Do not retain a reference to GCC and other build only i= nputs. > + (let ((out (assoc-ref outputs "out"))) > + (substitute* (string-append out "/lib/petsc/conf/petscvari= ables") > + (("/gnu/store/.*/bin/gcc") "gcc") > + (("/gnu/store/.*/bin/g\\+\\+") "g++") > + (("/gnu/store/.*/bin/make") "make") > + (("/gnu/store/.*/bin/diff") "diff") > + (("/gnu/store/.*/bin/sed") "sed") Can we instead patch the thing that creates =E2=80=98petscvariables=E2=80= =99 in the first place? The reason I=E2=80=99m suggesting it is because in general we avoid hardcod= ing /gnu/store in substitution patterns because it=E2=80=99s possible to config= ure Guix with a different store directory. Thanks, and apologies for the delay! Ludo=E2=80=99.