From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: make packagers life easier Date: Mon, 16 Mar 2015 18:01:15 +0100 Message-ID: <874mpk3mhw.fsf@gnu.org> References: <20150315170032.GA14849@venom> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXYOH-0001Xx-0t for guix-devel@gnu.org; Mon, 16 Mar 2015 13:01:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXYOD-0003II-Q7 for guix-devel@gnu.org; Mon, 16 Mar 2015 13:01:20 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXYOD-0003IE-NI for guix-devel@gnu.org; Mon, 16 Mar 2015 13:01:17 -0400 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:43048 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YXYOD-00080K-9w for guix-devel@gnu.org; Mon, 16 Mar 2015 13:01:17 -0400 In-Reply-To: <20150315170032.GA14849@venom> (=?utf-8?B?IlRvbcOhxaEgxIxl?= =?utf-8?B?Y2giJ3M=?= message of "Sun, 15 Mar 2015 18:00:33 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hi! Tom=C3=A1=C5=A1 =C4=8Cech skribis: > Stop after/before phase > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > What it can help with? > > - download sources of package without constructing URL > - prepare sources for creating or applying patch I think =E2=80=98guix build -S foo=E2=80=99 does exactly that, doesn=E2=80= =99t it? > - when preparing configure parameters you can stop right after > configuration phase > > How to implement? > - inject always failing phase into phases list I=E2=80=99d like to read what others think because I=E2=80=99m probably bia= sed, but my first reaction is that (1) I=E2=80=99ve rarely if ever felt the need for th= is, (2) adding a failing phase is easy to do by hand, and (3) it would be hard to implement this generically currently (phases are not exposed.) > Ommit developed package from generations > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Hmm, what do you mean? For a package to end up in your profile, you have to explicitly install it. So I=E2=80=99m really not sure what you mean here. > When I work on packages I have to take care of handling generations > even when I don't care. It complicates removing old package builds > using `guix gc -d' and it is unwanted burden. I rarely do =E2=80=98guix gc -d=E2=80=99; I rather let the GC collect garba= ge by itself, once it a while. :-) > Improve output of the build > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > > What I miss? > > Mostly one particular and obvious thing - after successful build print > the path of newly created store in well visible, easy-to-mouse and > easy-to-parse way. Successful =E2=80=98guix build=E2=80=99 invocations always print the result= ing file name(s) as the last line(s) to stdout, such that one can always do things like: ls $(guix build foo) Is it what you want, or did you mean something else? Thanks for the suggestions! Ludo=E2=80=99.