From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: 02/05: guix package: -A and -s take supported systems into account. Date: Thu, 23 Apr 2015 11:47:51 +0200 Message-ID: <87lhhji3aw.fsf@gnu.org> References: <20150419213459.12473.29783@vcs.savannah.gnu.org> <87h9s87mv9.fsf@netris.org> 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]:36278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlDjj-0000XB-M8 for guix-devel@gnu.org; Thu, 23 Apr 2015 05:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlDje-0005Kh-8e for guix-devel@gnu.org; Thu, 23 Apr 2015 05:47:59 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlDje-0005Kd-5t for guix-devel@gnu.org; Thu, 23 Apr 2015 05:47:54 -0400 In-Reply-To: <87h9s87mv9.fsf@netris.org> (Mark H. Weaver's message of "Wed, 22 Apr 2015 01:28:26 -0400") 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: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > Ludovic Court=C3=A8s writes: > >> commit 5763ad9266ec7682d53b87a874fc6ae04f92b6c4 >> Author: Ludovic Court=C3=A8s >> Date: Sun Apr 19 19:12:22 2015 +0200 >> >> guix package: -A and -s take supported systems into account. >>=20=20=20=20=20 >> * guix/scripts/package.scm (guix-package)[process-query] >> : Restrict results to packages matching >> 'supported-package?". > > This breaks "guix package -A" on armhf, because it is not in > %supported-systems. If we add it to %supported-systems, then > 'hydra-jobs' in build-aux/hydra/gnu-system.scm will create jobs for > armhf which will all fail. As discussed on IRC, the right thing is what you did, namely adding a %hydra-supported-systems for use by Hydra. > Also, this commit does not appear to make "guix package -s" take > supported systems into account. That command still works on armhf. The subject line of the commit was misleading: -s actually still reports all the available packages, but with an added =E2=80=98systems:=E2=80=99 li= ne. > Anyway, it's not clear to me that guix package -A and -s _should_ take > supported systems into account. Very often, I will use those commands > to look for an existing package before adding it. If no results are > printed, I assume that I will need to add the package. If the package > exists but is not supported on my platform, I'd still like to know that > it exists and to see where its definition can be found. > > What do you think? I thought it might be helpful for -A/--list-available to only list packages that are really =E2=80=9Cavailable=E2=80=9D in the sense that they= can be built, to avoid deluding users. Now, I=E2=80=99m open to suggestions. If that is considered rather unhelpf= ul, we can still change it back. Thanks, Ludo=E2=80=99.