From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: Building many packages in order Date: Fri, 21 Oct 2016 14:23:17 +0200 Message-ID: <580A08B5.3020504@crazy-compilers.com> References: <5809F448.5030508@crazy-compilers.com> <20161021115302.GA26768@macbook42.flashner.co.il> 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]:34394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxYrA-0005UZ-JM for guix-devel@gnu.org; Fri, 21 Oct 2016 08:23:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxYr7-0006j7-Di for guix-devel@gnu.org; Fri, 21 Oct 2016 08:23:28 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:39973) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bxYr7-0006i9-7m for guix-devel@gnu.org; Fri, 21 Oct 2016 08:23:25 -0400 In-Reply-To: <20161021115302.GA26768@macbook42.flashner.co.il> 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" To: Efraim Flashner Cc: guix-devel Am 21.10.2016 um 13:53 schrieb Efraim Flashner: > If you want to build all packages that are python- or python2-, then yo= u > can call 'guix build $(guix package -A ^python | cut -f1)' I was about to answer that this will not work if the length of the arguments string exceeds some limit. This made me re-check my premises and found they are wrong: Both the length of the commands line and the number of arguments to be passed to a new process are *really* big. See [= 1]. So I checked again and my command line is about 18,000 characters long and even xargs calls `guix build` only once. So my premises was irrelevant and my "mass rebuild" script works as expected. > If you want all the packages that rely on python or python-2, then you > can call 'guix build $(guix refresh -l python python@2 | cut -d':' -f2)= ' Thanks for this trick. I'm not used to "guix refresh" and my code for selecting the packages is much more complicated. (I select them by name.) I really have to get more common with these guix subcommands. [1] http://unix.stackexchange.com/questions/120642/what-defines-the-maximum-s= ize-for-a-command-single-argument --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |