From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EFknBgCUnWWMtAAAkFu2QA (envelope-from ) for ; Tue, 09 Jan 2024 19:44:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eLJWAQCUnWX5TQAA62LTzQ (envelope-from ) for ; Tue, 09 Jan 2024 19:44:16 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704824243; 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; bh=ORR/eUD+WA6y1kNQ06lUU1jQ+DX/8dCvsJMTzAan3dQ=; b=ruhGQdeRfUxsBTlDJhW3XqaEBh5UDehg1iBoul5ydM5xLZ+MMzuZ1dhwd/JuoYYmHf1tpM bO4tgD1S6dp3dNRJyTvJBcXD8D7SzjuJylaravibGt4DI5QAZvKsGQdFmYDiOjrp3Rigkk jOC5agfDBDotv470MVuCypHyRaPvVliBjqxc2JIQXqlE+iQqx/WAEM2FhfBVslkQUSWNXR Inp+TIS3TIebv5M3WabgOdoS+hs6AwesGv+R1zKsCTSFs8vP7K4F+YdKOyxanQW3s12i2w IHPN+jZRHekkoxRNRcoudXZ3pYCsa12QHhcAh2gUQq2FgQbwTVOdHX3uCTXGSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704824243; a=rsa-sha256; cv=none; b=hpt63x338CiVIJNEwM/tzJs6BTgXNZqpErs8+gAelqFOiXfZ96J/TEerit0hOI7vpOhZUI XoqHci58LeP02Fl6z8jL9R4yo10FKDJ4j+8keZe3UJVZ0dk7hfuNBDaWA0YIXDF6x4hkLF bs5VTDumlM+z6eY2aM98+uTmdEDzVaUX66hosfjJPk3PVk2w9vRnpNHHQHc3rrq8B0jB2X p5DLoZVE13vnHmVqFP7CxUF2fE494uSBctxH3RCCFpv1Titke3m477hZmn/kFrFYzRtWeN IrNQ3vFKedYwx2VRCSCdb4N610F5ODV/stxfkmaI9bYbao2K92Zs8YVWh7xoRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none 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 508C5DD09 for ; Tue, 9 Jan 2024 19:17:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNGeq-0006tp-8o; Tue, 09 Jan 2024 13:17:00 -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 1rNGen-0006tI-LT for guix-patches@gnu.org; Tue, 09 Jan 2024 13:16: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 1rNGen-0007du-7E for guix-patches@gnu.org; Tue, 09 Jan 2024 13:16:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNGes-0007md-Cq; Tue, 09 Jan 2024 13:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67822] [PATCH v4] gnu: maths: petsc: Reduce closure size. References: <9ba967c61c66acea4b4c3b1db6e1a446ad9e827e.1702558568.git.lars.bilke@ufz.de> In-Reply-To: <9ba967c61c66acea4b4c3b1db6e1a446ad9e827e.1702558568.git.lars.bilke@ufz.de> Resent-From: Lars Bilke Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net, guix-patches@gnu.org Resent-Date: Tue, 09 Jan 2024 18:17: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: 67822@debbugs.gnu.org Cc: Lars Bilke , Andreas Enge , Efraim Flashner , Eric Bavier X-Debbugs-Original-Xcc: Andreas Enge , Efraim Flashner , Eric Bavier Received: via spool by 67822-submit@debbugs.gnu.org id=B67822.170482416728022 (code B ref 67822); Tue, 09 Jan 2024 18:17:02 +0000 Received: (at 67822) by debbugs.gnu.org; 9 Jan 2024 18:16:07 +0000 Received: from localhost ([127.0.0.1]:40893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNGdv-0007CQ-Q5 for submit@debbugs.gnu.org; Tue, 09 Jan 2024 13:16:07 -0500 Received: from mailgate4.ufz.de ([141.65.7.211]:59272 helo=mailgate.ufz.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNGdt-0006xo-31 for 67822@debbugs.gnu.org; Tue, 09 Jan 2024 13:16:02 -0500 Received: from imap.intranet.ufz.de (dcs1.intranet.ufz.de [141.65.125.135]) by mailgate.ufz.de (Mailgate4-UFZ) with ESMTP id 3465A16002F for <67822@debbugs.gnu.org>; Tue, 9 Jan 2024 19:15:47 +0100 (CET) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from conversion-daemon.imap.intranet.ufz.de by imap.intranet.ufz.de (Oracle Communications Messaging Server 8.0.2.6.20200227 64bit (built Feb 27 2020)) id <0S7000D00A75ZE00@imap.intranet.ufz.de> for 67822@debbugs.gnu.org; Tue, 09 Jan 2024 19:15:47 +0100 (CET) Received: from smtp2.ufz.de ([141.65.7.217]) by imap.intranet.ufz.de (Oracle Communications Messaging Server 8.0.2.6.20200227 64bit (built Feb 27 2020)) with ESMTPS id <0S70003RHAQBUI90@imap.intranet.ufz.de> for 67822@debbugs.gnu.org; Tue, 09 Jan 2024 19:15:47 +0100 (CET) Received: from envinf4.minotaur-alpha.ts.net (unknown [141.65.34.85]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp2.ufz.de (smtp2-UFZ) with ESMTPSA id 0DAC7E004F; Tue, 9 Jan 2024 19:15:47 +0100 (CET) Date: Tue, 09 Jan 2024 19:15:04 +0100 From: Lars Bilke Message-id: X-Mailer: git-send-email 2.43.0 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-Queue-Id: 508C5DD09 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -3.31 X-Spam-Score: -3.31 X-TUID: jY1XXJMCriOX Reduces closure size by around 350 MB by removing refernces to build dependencies (e.g. gcc). New ion v4: Used proposed :graph: syntax. Also removed gfortran reference. Change-Id: I2e6900747b2118546f0a39ceb109b3f2f90e6949 --- gnu/packages/maths.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index adc7beb655..7dc93ce8ee 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -3484,8 +3484,21 @@ (define-public petsc '("configure.log" "make.log" "gmake.log" "test.log" "error.log" "RDict.db" "PETScBuildInternal.cmake" + "configure-hash" ;; Once installed, should uninstall with Guix "uninstall.py"))))) + (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 inputs. + (let ((out (assoc-ref outputs "out"))) + (substitute* (string-append out "/lib/petsc/conf/petscvariables") + (("([[:graph:]]+)/bin/gcc") "gcc") + (("([[:graph:]]+)/bin/g\\+\\+") "g++") + (("([[:graph:]]+)/bin/make") "make") + (("([[:graph:]]+)/bin/diff") "diff") + (("([[:graph:]]+)/bin/sed") "sed") + (("([[:graph:]]+)/bin/gfortran") "gfortran") + )))) (add-after 'install 'move-examples (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) base-commit: a1a645337a76cf5fb55d20ee694fcb6a52fcf11b -- 2.43.0