From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:51744) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4OCx-0001um-At for guix-patches@gnu.org; Wed, 19 Feb 2020 07:12:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4OCw-00071p-7V for guix-patches@gnu.org; Wed, 19 Feb 2020 07:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4OCw-00071k-44 for guix-patches@gnu.org; Wed, 19 Feb 2020 07:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4OCw-0003Zr-0M for guix-patches@gnu.org; Wed, 19 Feb 2020 07:12:02 -0500 Subject: [bug#39588] gnu: Add mpich, scalapack-mpich, mumps-mpich, pt-scotch-mpich, python-mpi4py-mpich Resent-Message-ID: MIME-Version: 1.0 References: <87blq2rclk.fsf@inria.fr> <87o8tx3z2q.fsf@gnu.org> <87k14j6amk.fsf@inria.fr> <87eeuqby18.fsf@inria.fr> In-Reply-To: <87eeuqby18.fsf@inria.fr> From: zimoun Date: Wed, 19 Feb 2020 13:11:34 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Maurice =?UTF-8?Q?Br=C3=A9mond?= Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 39588@debbugs.gnu.org Hi Maurice, On Wed, 19 Feb 2020 at 12:46, Maurice Br=C3=A9mond wrote: > >If mumps depends explicitly on openmpi, then '--with-inputs' can > >rewrite the direct dependencies, by providing say mpich instead of > >openmpi. > >If petsc* depends explicitly on openmpi and on mumps (which depends > >explicitly on openmpi too), then '--with-inputs=3Dopenmpi=3Dmpich' will > >*only* rewrite the dependency of petsc but not of mumps. So it ends > >with petsc compiled with mpich and mumps with openmpi. > > > >Still considering this (fictive) example, where: > > - petsc depends on openmpi(1) and mumps > > - mumps depends on openmpi(2) > >The openmpi(2) is an implicit dependency for petsc and '--with-inputs' > >does not work. Sorry for the confusion, because what I said is *wrong*. It is not the definition of an implicit inputs. The definition is: --8<---------------cut here---------------start------------->8--- In addition, this build system ensures that the =E2=80=9Cstandard=E2=80=9D = environment for GNU packages is available. This includes tools such as GCC, libc, Coreutils, Bash, Make, Diffutils, grep, and sed (see the (guix build-system gnu) module for a complete list). We call these the implicit inputs of a package, because package definitions do not have to mention them. --8<---------------cut here---------------end--------------->8--- > Ok thank you for the clarification, I understand better now. > > I misunderstood the documentation: > > https://guix.gnu.org/manual/en/html_node/Package-Transformation-Options.h= tml > > --with-input=3Dpackage=3Dreplacement > [...] > This is a recursive, deep replacement. [...] Well, you understood correctly. It is me that mix and add confusion, sorry. > In the scalapack input I can see: > `(("mpi" ,openmpi) > ("fortran" ,gfortran) > ("lapack" ,lapack))) ;for testing only > > So my assumption is that the --with-input transformation should work > here as neither gfortran or lapack depends on mpi and to just build > scalapack with mpich I tried: > > guix time-machine --commit=3Dc70261bfb993cebc23cd80042de3f52a8b7932a4 -- = build scalapack --with-input=3Dopenmpi=3Dmpich Hum, my MUA trims the long message. Well, my point was: maybe it does not work because of the implicit inputs. Now, mpi has bitten me so I will try this afternoon. :-) Cheers, simon