Message ID | cover.1695246169.git.david.elsing@posteo.net |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4539027BBE9; Wed, 20 Sep 2023 23:07:47 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 808A527BBE2 for <patchwork@mira.cbaines.net>; Wed, 20 Sep 2023 23:07:46 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1qj5Lu-0006YU-Jj; Wed, 20 Sep 2023 18:07:22 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1qj5Lo-0006V1-EI for guix-patches@gnu.org; Wed, 20 Sep 2023 18:07:16 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1qj5LR-0004mT-6b for guix-patches@gnu.org; Wed, 20 Sep 2023 18:07:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qj5La-0005Md-2e for guix-patches@gnu.org; Wed, 20 Sep 2023 18:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH 00/20] Split SuiteSparse into subpackages Resent-From: David Elsing <david.elsing@posteo.net> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Sep 2023 22:07:01 +0000 Resent-Message-ID: <handler.66129.B.169524759520581@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing <david.elsing@posteo.net> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169524759520581 (code B ref -1); Wed, 20 Sep 2023 22:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2023 22:06:35 +0000 Received: from localhost ([127.0.0.1]:60474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qj5L8-0005Lt-JV for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:06:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <david.elsing@posteo.net>) id 1qj5L3-0005Ld-I9 for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:06:32 -0400 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 <david.elsing@posteo.net>) id 1qj5Ko-0006HE-Kc for guix-patches@gnu.org; Wed, 20 Sep 2023 18:06:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <david.elsing@posteo.net>) id 1qj5Km-0004fY-AZ for guix-patches@gnu.org; Wed, 20 Sep 2023 18:06:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 09BAA240027 for <guix-patches@gnu.org>; Thu, 21 Sep 2023 00:06:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247568; bh=EkTcMOPC+x7l4cARphz4ph0ar5GV7rTHlV10vS9LfbI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=PGAbpuTwikXlqmtW7Ut0jjd2ej7HAQXQs3wircylvYaJfsJVuycuS0SidJH/azxN2 lVmVfathQFwwt+TuG9D/OUCJmnuLd2a8H+1QJzBHxcs06pbmCpOGMnn0RZgbzp4Jw/ u9ydmfChK2vguvOsO+Hj7J4yAuzajAjSe8nnumH3JoqdK1TtoRqLEo1DAPYSAKfy/L SsoUS30eBIIVU+FtjdOwvBtW9yrs7R3M2u2DDnXLSo83ZLgsDb7/OKodkue+ZsZ/m0 X7sax+Tub1oteh3WvuNY5r/jdpKv3hjQR6GAtesUXruSbrPLBnHOAaotrOcCfcYlZc R28fpFWwEGX+w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXfl3PY5z9rxF; Thu, 21 Sep 2023 00:06:07 +0200 (CEST) From: David Elsing <david.elsing@posteo.net> Date: Wed, 20 Sep 2023 22:05:16 +0000 Message-ID: <cover.1695246169.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=david.elsing@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Split SuiteSparse into subpackages
|
|
Message
David Elsing
Sept. 20, 2023, 10:05 p.m. UTC
This patch series adds the individual SuiteSparse packages (as in Gentoo: https://packages.gentoo.org/packages/sci-libs/suitesparse/dependencies), with autogenerated files and bundled libraries removed. The GraphBLAS library is not yet included, but AFAICT it is not required by any other package. It also makes up by far the most space of the suitesparse package, e.g. on x86_64-linux, libgraphblas.so.7.2.0 is 196 MB of the 201 MB SuiteSparse package. I think it would be best to keep the full suitesparse package until all of its dependencies are updated and the GraphBLAS package is added, as replacing them all at once would make the patch series quite large. Is the use of (@@ (guix packages) computed-origin-method) ok for creating the individual origins or is there another alternative? David Elsing (20): gnu: suitesparse: Tweak description. gnu: Add suitesparse-config. gnu: Add suitesparse-amd. gnu: Add suitesparse-btf. gnu: Add suitesparse-camd. gnu: Add suitesparse-colamd. gnu: Add suitesparse-ccolamd. gnu: Add gklib. gnu: Add metis-5.2. gnu: Add gklib-suitesparse. gnu: Add metis-suitesparse. gnu: Add suitesparse-cholmod. gnu: Add suitesparse-cxsparse. gnu: Add suitesparse-klu. gnu: Add suitesparse-ldl. gnu: Add suitesparse-rbio. gnu: Add suitesparse-mongoose. gnu: Add suitesparse-spex. gnu: Add suitesparse-spqr. gnu: Add suitesparse-umfpack. gnu/packages/maths.scm | 922 ++++++++++++++++++- gnu/packages/patches/gklib-suitesparse.patch | 65 ++ 2 files changed, 986 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/gklib-suitesparse.patch
Comments
Hi David, David Elsing <david.elsing@posteo.net> skribis: > This patch series adds the individual SuiteSparse packages (as in > Gentoo: > https://packages.gentoo.org/packages/sci-libs/suitesparse/dependencies), > with autogenerated files and bundled libraries removed. Nice! > The GraphBLAS library is not yet included, but AFAICT it is not required > by any other package. It also makes up by far the most space of the > suitesparse package, e.g. on x86_64-linux, libgraphblas.so.7.2.0 is 196 > MB of the 201 MB SuiteSparse package. > > I think it would be best to keep the full suitesparse package until all > of its dependencies are updated and the GraphBLAS package is added, as > replacing them all at once would make the patch series quite large. > > Is the use of (@@ (guix packages) computed-origin-method) ok for > creating the individual origins or is there another alternative? Instead of: +(define (suitesparse-package-src name path) + (origin + (method (@@ (guix packages) computed-origin-method)) + (file-name + (string-append name "-" suitesparse-version)) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-recursively + (string-append #$suitesparse-src "/" #$path) #$output))))))) I’d suggest this: (define (suitesparse-package-source name directory) (computed-file (string-append name "-" suitesparse-version ".tar.xz") (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) (copy-recursively (string-append #$suitesparse-src "/" #$directory) #$output))))) That way we have something simple that doesn’t rely on a private procedure. > gnu: suitesparse: Tweak description. > gnu: Add suitesparse-config. > gnu: Add suitesparse-amd. > gnu: Add suitesparse-btf. > gnu: Add suitesparse-camd. > gnu: Add suitesparse-colamd. > gnu: Add suitesparse-ccolamd. > gnu: Add gklib. > gnu: Add metis-5.2. > gnu: Add gklib-suitesparse. > gnu: Add metis-suitesparse. > gnu: Add suitesparse-cholmod. > gnu: Add suitesparse-cxsparse. > gnu: Add suitesparse-klu. > gnu: Add suitesparse-ldl. > gnu: Add suitesparse-rbio. > gnu: Add suitesparse-mongoose. > gnu: Add suitesparse-spex. > gnu: Add suitesparse-spqr. > gnu: Add suitesparse-umfpack. Apart from the trick above, this looks great to me! Could you send an updated version? Thanks, Ludo’.
Ludovic Courtès <ludovic.courtes@inria.fr> skribis: > (define (suitesparse-package-source name directory) > (computed-file (string-append name "-" suitesparse-version ".tar.xz") > (with-imported-modules '((guix build utils)) > #~(begin > (use-modules (guix build utils)) > (copy-recursively > (string-append #$suitesparse-src "/" #$directory) > #$output))))) Now that I think about it, we might just as well keep the same source for each sub-package along with a phase that does (chdir DIR). The advantage is that we would not spend CPU time and storage space building one tarball per package. The downside is that it might make package definitions less concise. Your call! Ludo’.
Ludovic Courtès <ludovic.courtes@inria.fr> writes: Hello, > Now that I think about it, we might just as well keep the same source > for each sub-package along with a phase that does (chdir DIR). > > The advantage is that we would not spend CPU time and storage space > building one tarball per package. The downside is that it might make > package definitions less concise. I changed the packages to use the same source. With the autogenerated files removed, it is somewhat less unwieldy than the original checkout (90 MB instead of 165 MB). > Ludo’. Cheers, David
Hi David, David Elsing <david.elsing@posteo.net> skribis: > I changed the packages to use the same source. With the autogenerated > files removed, it is somewhat less unwieldy than the original checkout > (90 MB instead of 165 MB). Awesome. I pushed the whole series as 1b5067c0d002c5d019ab69c5fbc22fac68acda3d. Thanks, Ludo’.