Message ID | 4284df7d0499bb5b6a46d29d6e7f858fd3baa896.1706085982.git.romain.garbage@inria.fr |
---|---|
State | New |
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 192F427BBE2; Wed, 24 Jan 2024 08:49:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 7B18027BBE9 for <patchwork@mira.cbaines.net>; Wed, 24 Jan 2024 08:49:14 +0000 (GMT) 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 1rSYwR-00065M-2Z; Wed, 24 Jan 2024 03:49:03 -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 <Debian-debbugs@debbugs.gnu.org>) id 1rSYwP-000650-Bi for guix-patches@gnu.org; Wed, 24 Jan 2024 03:49:01 -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 <Debian-debbugs@debbugs.gnu.org>) id 1rSYwP-000586-3e for guix-patches@gnu.org; Wed, 24 Jan 2024 03:49:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rSYwQ-0002EB-IF; Wed, 24 Jan 2024 03:49:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68682] [PATCH] gnu: maths: arpack-ng: Modify build settings. Resent-From: Romain GARBAGE <romain.garbage@inria.fr> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 24 Jan 2024 08:49:02 +0000 Resent-Message-ID: <handler.68682.B.17060861018380@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68682@debbugs.gnu.org Cc: Romain GARBAGE <romain.garbage@inria.fr>, Andreas Enge <andreas@enge.fr>, Efraim Flashner <efraim@flashner.co.il>, Eric Bavier <bavier@posteo.net>, Sharlatan Hellseher <sharlatanus@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andreas Enge <andreas@enge.fr>, Efraim Flashner <efraim@flashner.co.il>, Eric Bavier <bavier@posteo.net>, Sharlatan Hellseher <sharlatanus@gmail.com> Received: via spool by submit@debbugs.gnu.org id=B.17060861018380 (code B ref -1); Wed, 24 Jan 2024 08:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 08:48:21 +0000 Received: from localhost ([127.0.0.1]:44423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rSYvk-0002B3-Qp for submit@debbugs.gnu.org; Wed, 24 Jan 2024 03:48:21 -0500 Received: from lists.gnu.org ([2001:470:142::17]:49690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <romain.garbage@inria.fr>) id 1rSYvj-0002AM-BE for submit@debbugs.gnu.org; Wed, 24 Jan 2024 03:48:19 -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 <romain.garbage@inria.fr>) id 1rSYvY-00061n-NU for guix-patches@gnu.org; Wed, 24 Jan 2024 03:48:08 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <romain.garbage@inria.fr>) id 1rSYvW-000545-LQ for guix-patches@gnu.org; Wed, 24 Jan 2024 03:48:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4lzVwuFGx0xODNBgy3c87dXAdpB/XxGZqwMFB3Fahk0=; b=QF00zHYSyWbkHG46I9TfvRjF+7G7Chg0lsx8t/Jm52HwmFthahHefcfw 7/vU5WfJiFVRe6zdHrtsG/Lj/I1ZseiibuT+te/1xfxLF0Rt8PCEIcC9z VLoaS4zRml7oP0u0tNK1ygP33PrwEk1Bb4/70YeswfvnrRFlCMrUICNXA w=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=romain.garbage@inria.fr; spf=None smtp.helo=postmaster@guix-A102.bordeaux.inria.fr Received-SPF: SoftFail (mail2-relais-roc.national.inria.fr: domain of romain.garbage@inria.fr is inclined to not designate 193.50.110.153 as permitted sender) identity=mailfrom; client-ip=193.50.110.153; receiver=mail2-relais-roc.national.inria.fr; envelope-from="romain.garbage@inria.fr"; x-sender="romain.garbage@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@guix-A102.bordeaux.inria.fr) identity=helo; client-ip=193.50.110.153; receiver=mail2-relais-roc.national.inria.fr; envelope-from="romain.garbage@inria.fr"; x-sender="postmaster@guix-A102.bordeaux.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.05,216,1701126000"; d="scan'208";a="148329684" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.153]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2024 09:48:00 +0100 From: Romain GARBAGE <romain.garbage@inria.fr> Date: Wed, 24 Jan 2024 09:46:22 +0100 Message-ID: <4284df7d0499bb5b6a46d29d6e7f858fd3baa896.1706085982.git.romain.garbage@inria.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.83; envelope-from=romain.garbage@inria.fr; helo=mail2-relais-roc.national.inria.fr 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 |
[bug#68682] gnu: maths: arpack-ng: Modify build settings.
|
|
Commit Message
Romain GARBAGE
Jan. 24, 2024, 8:46 a.m. UTC
* gnu/packages/maths.scm (arpack-ng): Add configure flags for building the shared library and the iso C bindings. Change-Id: Iddfd67094ffafc3cabd88353e3839e5e903b804a --- gnu/packages/maths.scm | 2 ++ 1 file changed, 2 insertions(+) base-commit: e3f4ab49b1b756d3356b142db935b684e6877346
Comments
Hello Romain, Am Wed, Jan 24, 2024 at 09:46:22AM +0100 schrieb Romain GARBAGE: > * gnu/packages/maths.scm (arpack-ng): Add configure flags for building > the shared library and the iso C bindings. thanks for sending the patch! I see that the ISO C binding flag installs additional headers, but I do not see why the flag for building shared libraries would be needed. In the current arpack-ng, there is already a shared library in the lib/ subdirectory. Could you explain how adding the flag makes a difference? Andreas PS: Concerning the commit message, we usually do not mention the module and just start by "gnu: arpack-ng:" without "maths:".
PPS: There is a new minor version 3.9.1, maybe we could take the opportunity that the QA build farm will build out all dependencies to update in a separate commit with a patchset attached to this bug.
Hi! :-) Andreas Enge <andreas@enge.fr> skribis: > I see that the ISO C binding flag installs additional headers, but I do not > see why the flag for building shared libraries would be needed. In the current > arpack-ng, there is already a shared library in the lib/ subdirectory. > > Could you explain how adding the flag makes a difference? The goal should be to build shared libraries only. If that’s already happening without passing ‘-DBUILD_SHARED_LIBS=ON’, I agree we can drop it, in an effort to keep the package definition minimal. Romain, could you confirm that ‘-DBUILD_SHARED_LIBS=ON’ is indeed unnecessary and send a new version without it if it is? Thanks, Ludo’.
Hello :) ----- Mail original ----- > De: "Ludovic Courtes" <ludovic.courtes@inria.fr> > À: "Andreas Enge" <andreas@enge.fr> > Cc: "Romain Garbage" <romain.garbage@inria.fr>, "Eric Bavier" <bavier@posteo.net>, "Sharlatan Hellseher" > <sharlatanus@gmail.com>, 68682@debbugs.gnu.org, "Efraim Flashner" <efraim@flashner.co.il> > Envoyé: Mercredi 24 Janvier 2024 14:51:52 > Objet: Re: [bug#68682] [PATCH] gnu: maths: arpack-ng: Modify build settings. > Hi! :-) > > Andreas Enge <andreas@enge.fr> skribis: > >> I see that the ISO C binding flag installs additional headers, but I do not >> see why the flag for building shared libraries would be needed. In the current >> arpack-ng, there is already a shared library in the lib/ subdirectory. >> >> Could you explain how adding the flag makes a difference? > > The goal should be to build shared libraries only. If that’s already > happening without passing ‘-DBUILD_SHARED_LIBS=ON’, I agree we can drop > it, in an effort to keep the package definition minimal. > > Romain, could you confirm that ‘-DBUILD_SHARED_LIBS=ON’ is indeed > unnecessary and send a new version without it if it is? I built the package with and without '-DBUILD_SHARED_LIBS=ON' and compared the outputs: ``` $ diff -r /gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0 /gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0 Binary files /gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0/lib/libarpack.so and /gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0/lib/libarpack.so differ Binary files /gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0/lib/libarpack.so.2 and /gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0/lib/libarpack.so.2 differ Binary files /gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0/lib/libarpack.so.2.1.0 and /gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0/lib/libarpack.so.2.1.0 differ diff -r /gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0/lib/pkgconfig/arpack.pc /gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0/lib/pkgconfig/arpack.pc 1c1 < prefix=/gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0 --- > prefix=/gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0 3,4c3,4 < libdir=/gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0/lib < includedir=/gnu/store/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng-3.9.0/include/arpack-ng --- > libdir=/gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0/lib > includedir=/gnu/store/5hbj4pza16d0vbmam0rmyx5h6z50fgqi-arpack-ng-3.9.0/include/arpack-ng $ diff -u /tmp/*arpack-ng # these files contain the output of 'ldd /gnu/store/*arpack-ng/lib/libarpack.so' +++ /tmp/wsx55w6bbak6sa3g6c8lwm3bliipkhy1-arpack-ng 2024-01-24 16:53:44.805910227 +0100 @@ -1,9 +1,9 @@ - linux-vdso.so.1 (0x00007ffe84d4b000) - libblas.so.3 => /gnu/store/p34bwhh7lb9lsa8vd5w7bs5v599iayag-lapack-3.9.0/lib/libblas.so.3 (0x00007f9208982000) - liblapack.so.3 => /gnu/store/p34bwhh7lb9lsa8vd5w7bs5v599iayag-lapack-3.9.0/lib/liblapack.so.3 (0x00007f9208200000) - libgfortran.so.5 => /gnu/store/ldkp6a8cpl35vfs8bgnirhw12f76q414-gfortran-11.3.0-lib/lib/libgfortran.so.5 (0x00007f9207e00000) - libm.so.6 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libm.so.6 (0x00007f92088a5000) - libgcc_s.so.1 => /gnu/store/ldkp6a8cpl35vfs8bgnirhw12f76q414-gfortran-11.3.0-lib/lib/libgcc_s.so.1 (0x00007f92081e6000) - libquadmath.so.0 => /gnu/store/ldkp6a8cpl35vfs8bgnirhw12f76q414-gfortran-11.3.0-lib/lib/libquadmath.so.0 (0x00007f920819d000) - libc.so.6 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libc.so.6 (0x00007f9207c04000) - /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/ld-linux-x86-64.so.2 (0x00007f9208a22000) + linux-vdso.so.1 (0x00007ffdb2fb5000) + libblas.so.3 => /gnu/store/p34bwhh7lb9lsa8vd5w7bs5v599iayag-lapack-3.9.0/lib/libblas.so.3 (0x00007f0e9f582000) + liblapack.so.3 => /gnu/store/p34bwhh7lb9lsa8vd5w7bs5v599iayag-lapack-3.9.0/lib/liblapack.so.3 (0x00007f0e9ee00000) + libgfortran.so.5 => /gnu/store/ldkp6a8cpl35vfs8bgnirhw12f76q414-gfortran-11.3.0-lib/lib/libgfortran.so.5 (0x00007f0e9ea00000) + libm.so.6 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libm.so.6 (0x00007f0e9f4a5000) + libgcc_s.so.1 => /gnu/store/ldkp6a8cpl35vfs8bgnirhw12f76q414-gfortran-11.3.0-lib/lib/libgcc_s.so.1 (0x00007f0e9ede6000) + libquadmath.so.0 => /gnu/store/ldkp6a8cpl35vfs8bgnirhw12f76q414-gfortran-11.3.0-lib/lib/libquadmath.so.0 (0x00007f0e9ed9d000) + libc.so.6 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libc.so.6 (0x00007f0e9e804000) + /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/ld-linux-x86-64.so.2 (0x00007f0e9f622000) ``` To me, it doesn't seem that the '-DBUILD_SHARED_LIBS=ON' option is necessary, but I might miss something. What do you think? Cheers, Romain
Am Wed, Jan 24, 2024 at 05:04:50PM +0100 schrieb Romain Garbage: > To me, it doesn't seem that the '-DBUILD_SHARED_LIBS=ON' option is necessary, but I might miss something. > What do you think? I agree it is not necessary; in Changes concerning arpack-ng 3.8.0: * Only build shared libraries by default. To build static libraries, use --enable-static (autotools) or -DBUILD_SHARED_LIBS=OFF (cmake). I will send a modified patch to this bug, and although I think this change is completely harmless, I would suggest to let QA build the dependent packages before applying it. Andreas
Indeed the package and its dependencies are fine on most architectures, just i686 lags behind on QA. So I have just pushed the patch. Thanks! Andreas
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ada828cb3f..7d92dbcdaf 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1064,6 +1064,8 @@ (define-public arpack-ng "09smxilyn8v9xs3kpx3nlj2s7ql3v8z40mpc09kccbb6smyd35iv")) (patches (search-patches "arpack-ng-propagate-rng-state.patch")))) (build-system cmake-build-system) + (arguments + '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DICB=ON"))) (native-inputs (list pkg-config)) (inputs