From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KD1UFOYgSGfTaQAA62LTzQ:P1 (envelope-from ) for ; Thu, 28 Nov 2024 07:51:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KD1UFOYgSGfTaQAA62LTzQ (envelope-from ) for ; Thu, 28 Nov 2024 08:51:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JeeYcW4a; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JG8kCNWY; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732780262; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=JxR2maOSSbrOcy5cB9e/8CV9U4tqvlwdWLsoAVtRByA=; b=R9bZf5CFIxow3C0PQCxYyLw3hIhu8ODdLboDIIsp7eGRPUjrjvfafdnOdhdgO8nJEQ6nxy v5A6AtS1HYP3xrlmwwKGvcus7mWvRCaRRJLK1+vgzSra70zsdD/f0/8K38W4DXn5DmgahW AcU7UOHufv2CTyElBSIAcsUWf7028uvZvwjmuvNWO9qLqs2+02grovYooYajr9Tvpo54vZ 3cJFFPaNh7d/oqiM+CvHFVrp2yB6zhkLo3iVNsgy8L+CTjlmqKmh5NY5ZWz0t8JlTpS0Oq WBb0U3Fb5RGYjTegY8kzAXZCq4h/qiTNk8KpI/koD8ygfs08W5PYYkXZDUUF/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JeeYcW4a; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JG8kCNWY; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732780262; a=rsa-sha256; cv=none; b=G26lAHmuVD2hGCKg+AbXu8K1miJrpKJxqxzcs7mtk92iZBGQ0yekE4pvAI8wXvlGhujapC i2CwgMtxK/T7XsY1G0KV0mp6RT29agk15Xr391e9unBHEbdE8SXsaJukVF+mcDNqBA37zN VCJmyypA67vz+8dr9Mit1ir0cabRmv6MSHZVAy89arA85f58nXjHIG4iaTAncYUXG8DbWK g/WQ3h9ka4rK+MWLCIcS9jIocOOH+atODUT6lmhTF5rcVZXMEQ72M0LN78bXls8u+hJO5h hsqKBa0RRUhIaq8igiwsQlMk3o5Igivv+uRANZ5S0F9Xf6n4JN4CmV6ek3HyAA== 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 23A2C7D4B0 for ; Thu, 28 Nov 2024 08:51:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGZHt-00078J-Ne; Thu, 28 Nov 2024 02:50:09 -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 1tGZHq-00075o-Sl for guix-patches@gnu.org; Thu, 28 Nov 2024 02:50:07 -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 1tGZHp-00012R-C0 for guix-patches@gnu.org; Thu, 28 Nov 2024 02:50:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=JxR2maOSSbrOcy5cB9e/8CV9U4tqvlwdWLsoAVtRByA=; b=JeeYcW4a+6JziZujaM1IOiMxAz7qZp26/zKuwvDwsykmdtKspBhL4Vh7nihPf1nbCNPpTl98GIeJ+B1Wz7TekpfBRlRx9cm4+upqEylAZHXuJ3zvFLB7HI/ZqSYq8cCAbF8fCjk8KyH/404GANebiO2PtQ3bOVR0v1tQr7g9BfBYuvLKhs3h2xCCySer047lE6mWtsf0HWQjiRo5ybxSRpg+Yk5dAAI463PU5Q9yZeQ4bBp0jrTMAdZy/+iPRT3cABzOhJOMEkyK0n4u0Ibnkx9m8p0ATCcJ5suKy1FCClOEhBaf0afrXEfJZ+82eOLFzh60+4xdkC306DxN3VV47Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGZHp-0001FQ-6Q; Thu, 28 Nov 2024 02:50:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74572] [PATCH 6/6] gnu: openmpi-5: Streamline source and do not install HTML doc. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 28 Nov 2024 07:50:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74572 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74572@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer X-Debbugs-Original-Xcc: Maxim Cournoyer Received: via spool by 74572-submit@debbugs.gnu.org id=B74572.17327801914720 (code B ref 74572); Thu, 28 Nov 2024 07:50:05 +0000 Received: (at 74572) by debbugs.gnu.org; 28 Nov 2024 07:49:51 +0000 Received: from localhost ([127.0.0.1]:36318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGZHa-0001Dy-E9 for submit@debbugs.gnu.org; Thu, 28 Nov 2024 02:49:50 -0500 Received: from mail-pj1-f48.google.com ([209.85.216.48]:57469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGZHU-0001DQ-Uj for 74572@debbugs.gnu.org; Thu, 28 Nov 2024 02:49:45 -0500 Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2eade1cad26so439224a91.2 for <74572@debbugs.gnu.org>; Wed, 27 Nov 2024 23:49:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732780119; x=1733384919; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JxR2maOSSbrOcy5cB9e/8CV9U4tqvlwdWLsoAVtRByA=; b=JG8kCNWYjut/6eNjt6Dc/oot47JWv4gnCDVlz5jD8scUsAfHvaGMtjrP174DTvOj7j zdZ+3SFWoCR2y+c42cRXAcyIg2vEC3dMzAy9Yo2rkSLQe9h8UTyWFfYvu/GHji0gd7gq yLYh2OaoKWQLUHcZDnFuW+hzLKWKstiQr/5qwTeycKPVsBcxSkczgzPWXSNlxs7CTSGk kh3ZPQbkWO7pretwXpfEYAIOSNgpWpb/P2h3Im5hfUXVS34aNe6k0+jijTWfcEg5Vinn Fo4HauVaKGLSfhkHBqfmahGAG6WZmE4jvNy4WfN43MYBEGWhC5x08JxBh/fjzD677QYv DcTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732780119; x=1733384919; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JxR2maOSSbrOcy5cB9e/8CV9U4tqvlwdWLsoAVtRByA=; b=DAxWIj6gquyhUfrZbpFLYnVI5SW/zPG56sV1WOZaK5jx1ehxs3aKzTMpcHaNJX/iBv 6eeeLvkmXxpw09oHKbg6z6eKE+eUX7EYMOPsjb8jU3tff3Ikor0lGGoNNKD6mpVpudX1 rRMfhTNXbktPTE3DM9VZnDNUBkqtDhltzUuNs4oVOYNxkEXMAI9o4VMXD2I+gncPINNP tSiBwNWfb/iuLmYLO57yTyxkaYcyiDCWaxvpSKxIkZjwkQWn8PxvQLaMtvKW7pMIU9h3 wZ+JuiR4kx0aK5GhTZ/3yOhZi3xIkNrTfbzh+N6dot06UmOkiaXewhDnT3JzB6ORNkBv po+Q== X-Gm-Message-State: AOJu0YzdluwzN7my2Rt111glUcCcvGovNjKGk87uFO/ESbdag5EV0lKk dItzUaa6GRsoJgsj2wEyYqvqhFLMsJL++a8/tySTDcaPE26m47RqytRZZg== X-Gm-Gg: ASbGncuwbLGZAeAulcGFHlwUKvNuiM93EQ99z76eyqxmepBGk2ZSBPxd/seRxow+Xof mYDm6JyMqdKlmj/LURoZM210KZVEhlq3j1CvWRx3fXJA6dByk2Ewk/5LyTpZKYpPFf8M9u71YUn 1/df4sbwt8mBHcOMfQd/c4W3d9Py287plmonT320TYIRzXummsvSWH8Xg3+bkfVPBKJx5J210y0 M0SA9nI9/NDfHzersA9PqnSexiNX/E/V3WU+fTcog71nJRsRaGgRtIPVIeGfftU0rmJ X-Google-Smtp-Source: AGHT+IHIHNguI3ru0eqh6RZWbvaasas+7H6oEMUHJC0pcN1BnmDHXg04ECcAQChmaa3ep9c319qZbw== X-Received: by 2002:a17:90b:184f:b0:2ea:6d3b:1985 with SMTP id 98e67ed59e1d1-2ee08eb2205mr8088954a91.15.1732780118931; Wed, 27 Nov 2024 23:48:38 -0800 (PST) Received: from localhost.localdomain ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ee0fad03bcsm2822393a91.33.2024.11.27.23.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 23:48:38 -0800 (PST) From: Maxim Cournoyer Date: Thu, 28 Nov 2024 16:47:57 +0900 Message-ID: <040e8d813af84e53e68c61f747059c229b6b70f5.1732774966.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.17 X-Spam-Score: -0.17 X-Migadu-Queue-Id: 23A2C7D4B0 X-TUID: t423pO46cHmC This reduces the installed package size by 63 MiB. * gnu/packages/mpi.scm (openmpi-5) [source]: Add modules, snippet fields. Change-Id: Ie3dc365a2e4e48dc4c385dd447d3c64b7db065ca --- gnu/packages/mpi.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 67e12657db..2f37364ef3 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -325,6 +325,31 @@ (define-public openmpi-5 (uri (string-append "https://www.open-mpi.org/software/ompi/v" (version-major+minor version) "/downloads/openmpi-" version ".tar.bz2")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + '(begin + ;; XXX: 'delete-all-but' is copied from the turbovnc package. + (define (delete-all-but directory . preserve) + (define (directory? x) + (and=> (stat x #f) + (compose (cut eq? 'directory <>) stat:type))) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each (lambda (item) + (if (directory? item) + (delete-file-recursively item) + (delete-file item))) + items)))) + ;; Delete as many bundled libraries as permitted by the build + ;; system. + (delete-all-but "3rd-party" "treematch" "Makefile.in" "Makefile.am") + ;; Do not install 64 MiB worth fo pre-generated HTML + ;; documentation. + (delete-file-recursively "docs/html"))) (sha256 (base32 "0mw1z4ppnlvxngwd58kl5q26qmvf3bgjkd4r8wjpqis3pky86hdx")))) -- 2.46.0