From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: Re: guix build--rounds=N does not behave as expected Date: Mon, 31 Dec 2018 18:23:56 +0100 Message-ID: References: <87pnthg9ti.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ge1C1-0004kB-8u for guix-devel@gnu.org; Mon, 31 Dec 2018 12:17:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ge1By-00020C-0Z for guix-devel@gnu.org; Mon, 31 Dec 2018 12:17:33 -0500 Received: from mx1.riseup.net ([198.252.153.129]:60888) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ge1Bp-0001os-Hu for guix-devel@gnu.org; Mon, 31 Dec 2018 12:17:27 -0500 In-Reply-To: <87pnthg9ti.fsf@elephly.net> Content-Language: en-US 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: Ricardo Wurmus Cc: guix-devel On 2018-12-31 13:27, Ricardo Wurmus wrote: >=20 > Hi swedebugia, >=20 > =E2=80=9Cguix build --rounds=3DN=E2=80=9D builds the package N times if= it hasn=E2=80=99t already > been built. With grafts enabled this would be the graft derivation, > which isn=E2=80=99t very useful. >=20 > If the package has previously been built, however, it won=E2=80=99t reb= uild the > package. That=E2=80=99s why we have =E2=80=9C--check=E2=80=9D. >=20 >> I really think we should signal a helpful error to the user if only >> --rounds=3DN is specified and --check is missing. >=20 > Using =E2=80=9C--rounds=E2=80=9D without =E2=80=9C--check=E2=80=9D is c= orrect. There should not be an > error or a warning in that case. Rounds does not seem to work. E.g. I ran this: $ guix build automake --check --rounds=3D2 and the result was this: phase `compress-documentation' succeeded after 0.1 seconds /gnu/store/k7gymsw2xfp20fv30x5niilwnxpj2d2k-automake-1.16.1 I think this is a bug. Rounds should ignore the item in store and swallow check so that it does=20 what the user expects. Right now it seems that check swallows rounds and rounds alone fail=20 because the item is already in the store. Alternatively I would like that guix ask me if I want to build the=20 rounds EVEN THOUGH it is in the store. But that would be less nice. --=20 Cheers Swedebugia