From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: bug#36084: ghc-tasty/ghc-clock circular dependency breaking is broken Date: Tue, 4 Jun 2019 02:26:04 +0200 Message-ID: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXxIC-0006fN-BX for bug-guix@gnu.org; Mon, 03 Jun 2019 20:27:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXxI9-0001X9-B2 for bug-guix@gnu.org; Mon, 03 Jun 2019 20:27:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXxI8-0001WD-3t for bug-guix@gnu.org; Mon, 03 Jun 2019 20:27:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hXxI7-0007ZK-TB for bug-guix@gnu.org; Mon, 03 Jun 2019 20:27:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:34969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXxHe-0006eQ-Bu for bug-guix@gnu.org; Mon, 03 Jun 2019 20:26:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXxHb-00014Z-8g for bug-guix@gnu.org; Mon, 03 Jun 2019 20:26:32 -0400 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2]:30674 helo=mx2.mailbox.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXxHZ-0000tz-DE for bug-guix@gnu.org; Mon, 03 Jun 2019 20:26:30 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 06022A1A76 for ; Tue, 4 Jun 2019 02:26:22 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id 61GWX7bra5ZK for ; Tue, 4 Jun 2019 02:26:05 +0200 (CEST) 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" To: 36084@debbugs.gnu.org ghc-tasty depends via =E2=80=9Cinputs=E2=80=9D on ghc-clock-bootstrap = (v0.5) which is built without tests, while ghc-clock (v0.7) depends via =E2=80=9Cnative-inputs=E2=80=9D on = ghc-tasty for tests. This means that any package which depends on ghc-tasty and ghc-clock is = potentially broken, e.g.: Warning: This package indirectly depends on multiple versions of the same = package. This is very likely to cause a compile failure. package tasty (tasty-1.1.0.3-98rSghuW4l26JGzzQLN3ha) requires = clock-0.5.1-KAiVgaxjUlIIuEB7RoOIe6 package hspec-core (hspec-core-2.5.5-BSfG8Pnx1al9rTpu1j0PaW) = requires clock-0.7.2-JStwYFlKVmNHl0K1ll1Mx5 I=E2=80=99d suggest breaking the cycle instead by 1. introducing tasty-bootstrap which builds against the `time` module = via the cabal flags: flag clock description: Depend on the clock package for more accurate time measurement default: True This could be done via (arguments `(#:configure-flags (=E2=80=9C=E2=80=94flag=3D-clock=E2=80=9D= ))) as far as I understand. 2. changing ghc-clock to test via tasty-bootstrap (and possibly some = more variant testing packages that would be changed to depend on tasty-bootstrap) 3. changing tasty to test via ghc-clock. (I gave this approach a shot myself, but I=E2=80=99m running into = mysterious silently hanging guild and guix build processes =E2=80=94 possibly some cyclic dependencies which are = noticed?)