From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Required packages Date: Tue, 05 Feb 2013 17:50:12 +0100 Message-ID: <87ehgur9h7.fsf@gnu.org> References: <201302041952.22425.andreas@enge.fr> <87lib3pwa6.fsf@gnu.org> <201302042328.11563.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2ljT-0002yJ-M7 for bug-guix@gnu.org; Tue, 05 Feb 2013 11:51:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2lio-0008Ur-9T for bug-guix@gnu.org; Tue, 05 Feb 2013 11:50:55 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2lio-0008SP-3W for bug-guix@gnu.org; Tue, 05 Feb 2013 11:50:14 -0500 In-Reply-To: <201302042328.11563.andreas@enge.fr> (Andreas Enge's message of "Mon, 4 Feb 2013 23:28:11 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > Am Montag, 4. Februar 2013 schrieb Ludovic Court=C3=A8s: >> Andreas Enge skribis: >> > A question related to my previous posting, but also of independent >> > justification: Should we maybe implement somthing similar to the >> > "depends" field of Debian packages? >> What=E2=80=99s this? > > When A "depends on" B in debian jargon, then installing A automatically=20 > also installs B. In our case, a user issuing "guix-package -i mpc" would= =20 > end up with gmp, mpfr and mpc in the profile. OK. That=E2=80=99s =E2=80=9Cuser-environment-propagated-inputs=E2=80=9D. = We could achieve that by just changing guix-profile to install propagated inputs. That=E2=80=99s probably the right thing to do anyway. [...] >> Yes, but mpfr.h and gmp.h still need to be in the user=E2=80=99s CPATH, = which >> contains ~/.guix-profile/include. So putting them in the user=E2=80=99s= profile >> seems unavoidable. > > Probably so; come to think of it, the cases where one wants to link again= st=20 > a dynamic library, but not write source code using the headers, should be= =20 > really rare (linking a compiled program against a newer version of the=20 > library would be a possible case, which is somewhat contrary to the guix= =20 > philosophy). Yes. >> I think you=E2=80=99re concerned about cluttering the user=E2=80=99s pro= file, right? > > Not really. I just wonder what we should do, and what a user would expect= .=20 > For instance, in debian, gcc depends on binutils and the glibc. So when y= ou=20 > install gcc, you also get the other two packages. Is this what we want or= =20 > not? In the general case, I think so, yes. Installing MPC should definitely install MPFR and GMP. Similarly for Guile 2.0, whose public headers refer to libgc=E2=80=99s. For GCC, the situation is more complicated, because GCC has a loose tie to Binutils and libc. For instance, it happily takes whichever =E2=80=98ld= =E2=80=99 program is in $PATH. It=E2=80=99s more closely tied to libc, though, becau= se we explicitly patch its spec strings to refer to it; so at least libc should be a propagated input of GCC. WDYT? Thanks, Ludo=E2=80=99.