From unknown Sun Jun 22 00:19:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36084: ghc-tasty/ghc-clock circular dependency breaking is broken Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 04 Jun 2019 00:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36084 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36084@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155960800529043 (code B ref -1); Tue, 04 Jun 2019 00:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jun 2019 00:26:45 +0000 Received: from localhost ([127.0.0.1]:43452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXxHp-0007YM-G0 for submit@debbugs.gnu.org; Mon, 03 Jun 2019 20:26:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXxHl-0007Y7-Fc for submit@debbugs.gnu.org; Mon, 03 Jun 2019 20:26:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:41871) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXxHf-00018b-Bw for submit@debbugs.gnu.org; Mon, 03 Jun 2019 20:26:36 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 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) X-Virus-Scanned: amavisd-new at heinlein-support.de 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) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> Date: Tue, 4 Jun 2019 02:26:04 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050:104:0:2:25:2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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?) From unknown Sun Jun 22 00:19:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36084: ghc-tasty/ghc-clock circular dependency breaking is broken Resent-From: Timothy Sample Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 16 Jul 2019 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36084 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Robert Vollmert Cc: 36084@debbugs.gnu.org Received: via spool by 36084-submit@debbugs.gnu.org id=B36084.156328969212783 (code B ref 36084); Tue, 16 Jul 2019 15:09:01 +0000 Received: (at 36084) by debbugs.gnu.org; 16 Jul 2019 15:08:12 +0000 Received: from localhost ([127.0.0.1]:50978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnP3s-0003K4-0X for submit@debbugs.gnu.org; Tue, 16 Jul 2019 11:08:12 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnP3q-0003Js-9B for 36084@debbugs.gnu.org; Tue, 16 Jul 2019 11:08:10 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 09A022208E; Tue, 16 Jul 2019 11:08:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 16 Jul 2019 11:08:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=OT3F1kko9qZjE6aH8c4va8+NZ4kk0odzkj0h6qtqr ME=; b=WwUNO8rDS1sKbxN/Y7ToTVKbOSu1PRDuWREJxJViYoU2ferdoXBzs9Vmw GYTjA/SSlfbtgq8b/YocN+Ft79xPvt6bNvTgRd/pLNSlfdDUtSnUTj+uTqt6TX1U PUMrV1zvW51Vw1Y9BPvWnmVefChQ/JOLJDjUNWfM2YW387NNs5NnJKpxNZSpIJCw atHWHsvx/Sy04sjodBA+3pWdzjwM9zuNzQewfdxEU7vIR2BmZzlHcf9sOT/KKVn/ 95xDqYIdByPJo1FMgk/kPfBhg51iMcBRe5bEhjLohhd/7DWsjJGsDTuo8uLU1lC2 +w3LYUn8j98s8CAAZ8lA3AkpnWI5A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedtgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtgfesthhqre dttderjeenucfhrhhomhepvfhimhhothhhhicuufgrmhhplhgvuceoshgrmhhplhgvthes nhhghihrohdrtghomheqnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeejgedrud duiedrudekiedrgeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmphhlvghtsehn ghihrhhordgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A6F2380084; Tue, 16 Jul 2019 11:08:04 -0400 (EDT) From: Timothy Sample References: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> Date: Tue, 16 Jul 2019 11:08:04 -0400 In-Reply-To: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> (Robert Vollmert's message of "Tue, 4 Jun 2019 02:26:04 +0200") Message-ID: <87ef2qdnl7.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Robert, Robert Vollmert writes: > 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 p= otentially broken, > e.g.: > > Warning: > This package indirectly depends on multiple versions of the same pack= age. 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) requir= es 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 mysteri= ous silently hanging guild and guix build > processes =E2=80=94 possibly some cyclic dependencies which are noticed?) After looking at this and your patch at , I=E2=80=99m wondering if it works as long as we make sure the versions matc= h. Can we just inherit the current =E2=80=9Cghc-clock=E2=80=9D, disable its te= sts, and call it =E2=80=9Cghc-clock-bootstrap=E2=80=9D? Is the Cabal consistency checkin= g too clever for that? If that doesn=E2=80=99t work, can you explain why the method you proposed a= bove doesn=E2=80=98t work? It seems a little simpler than your patch. In fact, maybe we could live with the main =E2=80=9Cghc-tasty=E2=80=9D package being= built without =E2=80=9Cghc-clock=E2=80=9D (via the flag you mentioned). Sorry for taking so long to get to this, BTW. :( -- Tim From unknown Sun Jun 22 00:19:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36084: ghc-tasty/ghc-clock circular dependency breaking is broken Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 16 Jul 2019 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36084 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Timothy Sample Cc: 36084@debbugs.gnu.org Received: via spool by 36084-submit@debbugs.gnu.org id=B36084.156329386121019 (code B ref 36084); Tue, 16 Jul 2019 16:18:02 +0000 Received: (at 36084) by debbugs.gnu.org; 16 Jul 2019 16:17:41 +0000 Received: from localhost ([127.0.0.1]:51045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQ96-0005Su-F3 for submit@debbugs.gnu.org; Tue, 16 Jul 2019 12:17:40 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:39714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQ94-0005Se-0F for 36084@debbugs.gnu.org; Tue, 16 Jul 2019 12:17:38 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 83BA35097A; Tue, 16 Jul 2019 18:17:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id Q7mivKRDtf-p; Tue, 16 Jul 2019 18:17:27 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Robert Vollmert In-Reply-To: <87ef2qdnl7.fsf@ngyro.com> Date: Tue, 16 Jul 2019 18:17:26 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9C66C61B-16D7-4A01-A35D-85984FF819C4@vllmrt.net> References: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> <87ef2qdnl7.fsf@ngyro.com> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > On 16. Jul 2019, at 17:08, Timothy Sample wrote: >=20 > Hi Robert, >=20 > After looking at this and your patch at , > I=E2=80=99m wondering if it works as long as we make sure the versions = match. > Can we just inherit the current =E2=80=9Cghc-clock=E2=80=9D, disable = its tests, and call > it =E2=80=9Cghc-clock-bootstrap=E2=80=9D? Is the Cabal consistency = checking too clever > for that? >=20 > If that doesn=E2=80=99t work, can you explain why the method you = proposed above > doesn=E2=80=98t work? It seems a little simpler than your patch. In = fact, > maybe we could live with the main =E2=80=9Cghc-tasty=E2=80=9D package = being built > without =E2=80=9Cghc-clock=E2=80=9D (via the flag you mentioned). I tried the direct approach again, and this time it worked. Posted an updated patch. I believe this should be fine, since GHCs builds should be = deterministic. Cheers Robert From unknown Sun Jun 22 00:19:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Robert Vollmert Subject: bug#36084: closed (Re: bug#36084: ghc-tasty/ghc-clock circular dependency breaking is broken) Message-ID: References: <87a7dddccb.fsf@ngyro.com> <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> X-Gnu-PR-Message: they-closed 36084 X-Gnu-PR-Package: guix Reply-To: 36084@debbugs.gnu.org Date: Tue, 16 Jul 2019 19:12:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1563304321-8363-1" This is a multi-part message in MIME format... ------------=_1563304321-8363-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36084: ghc-tasty/ghc-clock circular dependency breaking is broken which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36084@debbugs.gnu.org. --=20 36084: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36084 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1563304321-8363-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36084-done) by debbugs.gnu.org; 16 Jul 2019 19:11:08 +0000 Received: from localhost ([127.0.0.1]:51153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSqy-000296-FA for submit@debbugs.gnu.org; Tue, 16 Jul 2019 15:11:08 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSqw-00028n-Jp for 36084-done@debbugs.gnu.org; Tue, 16 Jul 2019 15:11:06 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8C01E2220E; Tue, 16 Jul 2019 15:11:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 16 Jul 2019 15:11:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=7LcULqUZ1z0UuUKEUEL7M5VG512JtzrkV7oOVzEMm AI=; b=DnRVkg/QKVUwS+3aFySa0gsxVKJ6MG/maiw2LbloZKC9SwpAh9NvAIDp9 +uQ8a9TdWD+bFkLG64SNITqriNQn7W3i5J5k1fB2VXt4sV0mKLAC7RvO2BG6n+NX 3UCkt33Yo1PcDfYrcEZ39/MpOXG0uY/OE1ffcthtKnDpp0/rB5R2EwwjkTDmsppQ gG92SW4yrJ1RAaM/d05AH6YbvXd31ZiWsrUVUzQjLu2OPxpxSz5VfdFMtBqkSWq7 f6wSLJjHbA5xCa8B8Du/As5mhfcV4W5hhELYPhsPDUyZWDRvNvQZFAezVCMYEl4L O3xpDhiSoQgxK6Xtn4u8XSYivHcFw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedtgddufeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgfgsehtqh ertddtreejnecuhfhrohhmpefvihhmohhthhihucfurghmphhlvgcuoehsrghmphhlvght sehnghihrhhordgtohhmqeenucffohhmrghinhepghhnuhdrohhrghenucfkphepjeegrd duudeirddukeeirdeggeenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhplhgvthes nhhghihrohdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id A992380060; Tue, 16 Jul 2019 15:11:00 -0400 (EDT) From: Timothy Sample To: Robert Vollmert Subject: Re: bug#36084: ghc-tasty/ghc-clock circular dependency breaking is broken References: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> <87ef2qdnl7.fsf@ngyro.com> <9C66C61B-16D7-4A01-A35D-85984FF819C4@vllmrt.net> Date: Tue, 16 Jul 2019 15:11:00 -0400 In-Reply-To: <9C66C61B-16D7-4A01-A35D-85984FF819C4@vllmrt.net> (Robert Vollmert's message of "Tue, 16 Jul 2019 18:17:26 +0200") Message-ID: <87a7dddccb.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36084-done Cc: 36084-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Robert Vollmert writes: >> On 16. Jul 2019, at 17:08, Timothy Sample wrote: >>=20 >> Hi Robert, >>=20 >> After looking at this and your patch at , >> I=E2=80=99m wondering if it works as long as we make sure the versions m= atch. >> Can we just inherit the current =E2=80=9Cghc-clock=E2=80=9D, disable its= tests, and call >> it =E2=80=9Cghc-clock-bootstrap=E2=80=9D? Is the Cabal consistency chec= king too clever >> for that? >>=20 >> If that doesn=E2=80=99t work, can you explain why the method you propose= d above >> doesn=E2=80=98t work? It seems a little simpler than your patch. In fa= ct, >> maybe we could live with the main =E2=80=9Cghc-tasty=E2=80=9D package be= ing built >> without =E2=80=9Cghc-clock=E2=80=9D (via the flag you mentioned). > > I tried the direct approach again, and this time it worked. Posted an > updated patch. > > I believe this should be fine, since GHCs builds should be deterministic. It looks like this is a common idiom for us, so I=E2=80=99m pretty confiden= t, too. Fixed in 71e5d425c9b9e108ebdd06d13de45b56dddd9ef5. Thanks! -- Tim ------------=_1563304321-8363-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jun 2019 00:26:45 +0000 Received: from localhost ([127.0.0.1]:43452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXxHp-0007YM-G0 for submit@debbugs.gnu.org; Mon, 03 Jun 2019 20:26:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXxHl-0007Y7-Fc for submit@debbugs.gnu.org; Mon, 03 Jun 2019 20:26:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:41871) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXxHf-00018b-Bw for submit@debbugs.gnu.org; Mon, 03 Jun 2019 20:26:36 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 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) X-Virus-Scanned: amavisd-new at heinlein-support.de 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) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: ghc-tasty/ghc-clock circular dependency breaking is broken Message-Id: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> Date: Tue, 4 Jun 2019 02:26:04 +0200 To: bug-guix@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050:104:0:2:25:2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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?) ------------=_1563304321-8363-1-- From unknown Sun Jun 22 00:19:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36084: not really fixed? References: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> In-Reply-To: <4CEAB7EC-5859-4915-B381-C0AFFD93ABC5@vllmrt.net> Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 17 Jul 2019 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36084 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36084@debbugs.gnu.org Cc: Timothy Sample Received: via spool by 36084-submit@debbugs.gnu.org id=B36084.156337285425452 (code B ref 36084); Wed, 17 Jul 2019 14:15:02 +0000 Received: (at 36084) by debbugs.gnu.org; 17 Jul 2019 14:14:14 +0000 Received: from localhost ([127.0.0.1]:52775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnkhC-0006cS-21 for submit@debbugs.gnu.org; Wed, 17 Jul 2019 10:14:14 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:52294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnkh9-0006cF-MZ for 36084@debbugs.gnu.org; Wed, 17 Jul 2019 10:14:12 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 095ABA0174; Wed, 17 Jul 2019 16:14:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id sVXddI64oNRd; Wed, 17 Jul 2019 16:14:02 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <0391998F-36A9-48D8-8DE9-FE4997E513C3@vllmrt.net> Date: Wed, 17 Jul 2019 16:13:59 +0200 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) It seems the two clock packages are still subtly different, apparently due to the tested variant pulling in a dependency on the test libraries. Compare https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36705. Configuring tasty-hspec-1.1.5.1... Warning: This package indirectly depends on multiple versions of the same = package. This is very likely to cause a compile failure. package hspec-core (hspec-core-2.5.5-H06vLnMfEeIEsZFdji6h0O) = requires clock-0.7.2-9qwmBbNbGzEOSffjlyarp package tasty (tasty-1.1.0.3-I8Vu9v0lHj8Jlg3jpKXavp) requires = clock-0.7.2-Cf9UTsaN2AjEpBnoMpmgkU It=E2=80=99s possible that this warning is really just a warning, and = that there=E2=80=99s no real problem here because the packages are really the same, but=E2=80=A6= I don=E2=80=99t like it.